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,7 +1,7 @@
{ {
"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"],
@ -20,7 +20,9 @@
"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 }],
"@typescript-eslint/camelcase": "off"
}, },
"env": { "env": {
"es6": true, "es6": true,
@ -31,7 +33,9 @@
"extends": [ "extends": [
"eslint:recommended", "eslint:recommended",
"plugin:import/errors", "plugin:import/errors",
"plugin:import/warnings" "plugin:import/warnings",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended"
], ],
"parserOptions": { "parserOptions": {
"ecmaVersion": 9, "ecmaVersion": 9,

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