introduce eslint

pull/2958/head
James Garbutt 6 years ago
parent 77bb111770
commit ca9a01db76

@ -1,7 +1,2 @@
src/shared
shared.js
store.js
test/test.js
test/setup.js
**/_actual.js **/_actual.js
**/expected.js **/expected.js

@ -1,43 +1,47 @@
{ {
"root": true, "root": true,
"rules": { "rules": {
"indent": [2, "tab", { "SwitchCase": 1 }], "indent": "off",
"semi": [2, "always"], "semi": [2, "always"],
"keyword-spacing": [2, { "before": true, "after": true }], "keyword-spacing": [2, { "before": true, "after": true }],
"space-before-blocks": [2, "always"], "space-before-blocks": [2, "always"],
"no-mixed-spaces-and-tabs": [2, "smart-tabs"], "no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"no-cond-assign": 0, "no-cond-assign": 0,
"no-unused-vars": 2, "no-unused-vars": 2,
"object-shorthand": [2, "always"], "object-shorthand": [2, "always"],
"no-const-assign": 2, "no-const-assign": 2,
"no-class-assign": 2, "no-class-assign": 2,
"no-this-before-super": 2, "no-this-before-super": 2,
"no-var": 2, "no-var": 2,
"no-unreachable": 2, "no-unreachable": 2,
"valid-typeof": 2, "valid-typeof": 2,
"quote-props": [2, "as-needed"], "quote-props": [2, "as-needed"],
"one-var": [2, "never"], "one-var": [2, "never"],
"prefer-arrow-callback": 2, "prefer-arrow-callback": 2,
"prefer-const": [2, { "destructuring": "all" }], "prefer-const": [2, { "destructuring": "all" }],
"arrow-spacing": 2, "arrow-spacing": 2,
"no-inner-declarations": 0 "no-inner-declarations": 0,
}, "@typescript-eslint/indent": [2, "tab", { "SwitchCase": 1 }],
"env": { "@typescript-eslint/camelcase": "off"
"es6": true, },
"browser": true, "env": {
"node": true, "es6": true,
"mocha": true "browser": true,
}, "node": true,
"extends": [ "mocha": true
"eslint:recommended", },
"plugin:import/errors", "extends": [
"plugin:import/warnings" "eslint:recommended",
], "plugin:import/errors",
"parserOptions": { "plugin:import/warnings",
"ecmaVersion": 9, "plugin:import/typescript",
"sourceType": "module" "plugin:@typescript-eslint/recommended"
}, ],
"settings": { "parserOptions": {
"import/core-modules": ["svelte"] "ecmaVersion": 9,
} "sourceType": "module"
},
"settings": {
"import/core-modules": ["svelte"]
}
} }

941
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -57,12 +57,16 @@
"@sveltejs/svelte-repl": "0.0.5", "@sveltejs/svelte-repl": "0.0.5",
"@types/mocha": "^5.2.0", "@types/mocha": "^5.2.0",
"@types/node": "^10.5.5", "@types/node": "^10.5.5",
"@typescript-eslint/eslint-plugin": "^1.9.0",
"@typescript-eslint/parser": "^1.9.0",
"acorn": "^6.1.1", "acorn": "^6.1.1",
"acorn-dynamic-import": "^4.0.0", "acorn-dynamic-import": "^4.0.0",
"agadoo": "^1.0.1", "agadoo": "^1.0.1",
"c8": "^3.4.0", "c8": "^3.4.0",
"codecov": "^3.0.0", "codecov": "^3.0.0",
"css-tree": "1.0.0-alpha22", "css-tree": "1.0.0-alpha22",
"eslint": "^5.16.0",
"eslint-plugin-import": "^2.17.3",
"estree-walker": "^0.6.1", "estree-walker": "^0.6.1",
"is-reference": "^1.1.1", "is-reference": "^1.1.1",
"jsdom": "^12.2.0", "jsdom": "^12.2.0",

Loading…
Cancel
Save