Skip to content

Commit 14fb60b

Browse files
committed
feat: Support ESLint 7.x
BREAKING CHANGE: Requires Node@^10.12.x || 12.x BREAKING CHANGE: Requires ESLint@^7.x
1 parent 207b3c4 commit 14fb60b

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ cache: npm
33
notifications:
44
email: false
55
node_js:
6-
- 8.10
7-
- 10
6+
- 10.12
87
- 12
98
- 14
109
- node

best-practices.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
complexity: ['error', 14],
99
'consistent-return': 'error',
1010
'default-case': 'error',
11+
'default-case-last': 'error',
1112
'default-param-last': 'off',
1213
'dot-notation': 'error',
1314
eqeqeq: 'off',

es6/best-practices.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module.exports = {
33
rules: {
44
'no-class-assign': 'error',
55
'no-duplicate-imports': 'error',
6+
'no-restricted-exports': 'off', // not applicable for a config preset (should be configured only in projects)
67
'no-restricted-imports': 'off', // not applicable for a config preset (should be configured only in projects)
78
'no-useless-computed-key': 'error',
89
'no-useless-constructor': 'error',

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@
4949
"webpack": "^4.43.0"
5050
},
5151
"peerDependencies": {
52-
"eslint": ">=6"
52+
"eslint": "^7.0.0"
5353
},
5454
"devDependencies": {
55-
"eslint": "^6.8.0",
55+
"eslint": "^7.0.0",
5656
"eslint-find-rules": "^3.4.0",
5757
"kcd-scripts": "^5.11.1",
5858
"npm-run-all": "^4.1.5",
@@ -67,7 +67,7 @@
6767
"dist"
6868
],
6969
"engines": {
70-
"node": ">=8.10",
70+
"node": "^10.12.0 || >=12.0.0",
7171
"npm": ">=6",
7272
"yarn": ">=1"
7373
}

possible-errors.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module.exports = {
3434
'no-unreachable': 'error',
3535
'no-unsafe-finally': 'error',
3636
'no-unsafe-negation': 'error',
37+
'no-useless-backreference': 'error',
3738
'require-atomic-updates': 'off',
3839
'use-isnan': 'error',
3940
'valid-typeof': 'error',

0 commit comments

Comments
 (0)