Skip to content

Commit 139c99d

Browse files
authored
chore: upgrade to ESLint 8 (#1786)
- New babel parser package - Drops (dev) support for Node 10
1 parent 7dcb1b0 commit 139c99d

File tree

5 files changed

+2302
-2168
lines changed

5 files changed

+2302
-2168
lines changed

.eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist/
2+
docs/
3+
support/jsdoc/theme/

.eslintrc

-50
This file was deleted.

.eslintrc.json

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"node": true,
5+
"es6": true
6+
},
7+
"parser": "@babel/eslint-parser",
8+
"parserOptions": {
9+
"ecmaVersion": 8,
10+
"sourceType": "module"
11+
},
12+
"extends": "eslint:recommended",
13+
"rules": {
14+
"guard-for-in": 2,
15+
"indent": [
16+
2,
17+
4,
18+
{
19+
"SwitchCase": 1
20+
}
21+
],
22+
"no-caller": 2,
23+
"no-undef": 2,
24+
"no-unused-vars": 2,
25+
"no-shadow": 2,
26+
"no-eval": 2,
27+
"comma-style": [
28+
2,
29+
"last"
30+
],
31+
"prefer-arrow-callback": 2,
32+
"arrow-spacing": 2,
33+
"object-shorthand": 2,
34+
"prefer-destructuring": 2,
35+
"no-loop-func": 2,
36+
"no-trailing-spaces": 2,
37+
"valid-jsdoc": [
38+
"error",
39+
{
40+
"requireReturn": false,
41+
"requireReturnDescription": false,
42+
"requireReturnType": false
43+
}
44+
]
45+
},
46+
"overrides": [
47+
{
48+
"files": [
49+
"support/build.test.js",
50+
"test/**/*.js"
51+
],
52+
"env": {
53+
"mocha": true
54+
}
55+
}
56+
]
57+
}

0 commit comments

Comments
 (0)