Skip to content

Commit 348889b

Browse files
authored
Chore/update eslint dependencies (#43)
* chore: update eslint dependencies - update to lastest eslint version - replace babel-eslint (deprecated) with @babel/eslint-parser * tests: update tests to use updated ESLint
1 parent a647f93 commit 348889b

File tree

4 files changed

+5666
-3167
lines changed

4 files changed

+5666
-3167
lines changed

index.js

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
11
module.exports = {
2-
"extends": "airbnb",
3-
"parser": "babel-eslint",
4-
"plugins": [
5-
"react",
6-
"jsx-a11y",
7-
"import"
8-
],
9-
"env": {
10-
"node": true,
11-
"browser": true
12-
},
13-
"rules": {
14-
"react/jsx-filename-extension": [0, { "extensions": [".js", ".jsx"] }],
15-
"react/require-extension": 0,
16-
"arrow-body-style": [2, "as-needed"],
17-
"react/no-did-mount-set-state": 0,
18-
"import/no-mutable-exports": 0,
19-
"import/no-extraneous-dependencies": 0,
20-
"no-console": 0,
21-
"strict": 0,
22-
"new-cap": [2, {"capIsNewExceptions": ["Router"]}],
23-
"import/extensions": 0,
24-
"import/prefer-default-export": 0
25-
}
2+
"extends": "airbnb",
3+
"parserOptions": {
4+
"parser": '@babel/eslint-parser',
5+
"requireConfigFile": false,
6+
},
7+
"plugins": [
8+
"react",
9+
"jsx-a11y",
10+
"import"
11+
],
12+
"env": {
13+
"node": true,
14+
"browser": true
15+
},
16+
"rules": {
17+
"react/jsx-filename-extension": [0, { "extensions": [".js", ".jsx"] }],
18+
"react/require-extension": 0,
19+
"arrow-body-style": [2, "as-needed"],
20+
"react/no-did-mount-set-state": 0,
21+
"import/no-mutable-exports": 0,
22+
"import/no-extraneous-dependencies": 0,
23+
"no-console": 0,
24+
"strict": 0,
25+
"new-cap": [2, { "capIsNewExceptions": ["Router"] }],
26+
"import/extensions": 0,
27+
"import/prefer-default-export": 0
28+
}
2629
}

0 commit comments

Comments
 (0)