Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
first eslint run
  • Loading branch information
43081j committed Jun 5, 2019
commit c3870fa2c8b49af3eefe07a30b22696e1dafe648
33 changes: 27 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"root": true,
"rules": {
"indent": "off",
"no-unused-vars": "off",
"semi": [2, "always"],
"keyword-spacing": [2, { "before": true, "after": true }],
"space-before-blocks": [2, "always"],
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"no-cond-assign": 0,
"no-unused-vars": 2,
"object-shorthand": [2, "always"],
"no-const-assign": 2,
"no-class-assign": 2,
Expand All @@ -22,10 +22,17 @@
"arrow-spacing": 2,
"no-inner-declarations": 0,
"@typescript-eslint/indent": [2, "tab", { "SwitchCase": 1 }],
"@typescript-eslint/explicit-function-return-type": ["error", {
"allowExpressions": true
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/array-type": ["error", "array-simple"],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-unused-vars": ["error", {
"argsIgnorePattern": "^_"
}],
"@typescript-eslint/camelcase": "off"
"@typescript-eslint/no-object-literal-type-assertion": ["error", {
"allowAsParameter": true
}]
},
"env": {
"es6": true,
Expand All @@ -45,6 +52,20 @@
"sourceType": "module"
},
"settings": {
"import/core-modules": ["svelte"]
}
"import/core-modules": [
"svelte",
"svelte/internal",
"svelte/store",
"svelte/easing",
"estree"
]
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
]
}
2 changes: 1 addition & 1 deletion src/compiler/Stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const now = (typeof process !== 'undefined' && process.hrtime)
}
: () => self.performance.now();

type Timing = {
interface Timing {
label: string;
start: number;
end: number;
Expand Down
Loading