Skip to content

Commit

Permalink
feat: Support ESLint 7.x
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Requires Node@^10.12.x || 12.x
BREAKING CHANGE: Requires ESLint@^7.x
  • Loading branch information
MichaelDeBoey committed May 8, 2020
1 parent 207b3c4 commit 14fb60b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Expand Up @@ -3,8 +3,7 @@ cache: npm
notifications:
email: false
node_js:
- 8.10
- 10
- 10.12
- 12
- 14
- node
Expand Down
1 change: 1 addition & 0 deletions best-practices.js
Expand Up @@ -8,6 +8,7 @@ module.exports = {
complexity: ['error', 14],
'consistent-return': 'error',
'default-case': 'error',
'default-case-last': 'error',
'default-param-last': 'off',
'dot-notation': 'error',
eqeqeq: 'off',
Expand Down
1 change: 1 addition & 0 deletions es6/best-practices.js
Expand Up @@ -3,6 +3,7 @@ module.exports = {
rules: {
'no-class-assign': 'error',
'no-duplicate-imports': 'error',
'no-restricted-exports': 'off', // not applicable for a config preset (should be configured only in projects)
'no-restricted-imports': 'off', // not applicable for a config preset (should be configured only in projects)
'no-useless-computed-key': 'error',
'no-useless-constructor': 'error',
Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -49,10 +49,10 @@
"webpack": "^4.43.0"
},
"peerDependencies": {
"eslint": ">=6"
"eslint": "^7.0.0"
},
"devDependencies": {
"eslint": "^6.8.0",
"eslint": "^7.0.0",
"eslint-find-rules": "^3.4.0",
"kcd-scripts": "^5.11.1",
"npm-run-all": "^4.1.5",
Expand All @@ -67,7 +67,7 @@
"dist"
],
"engines": {
"node": ">=8.10",
"node": "^10.12.0 || >=12.0.0",
"npm": ">=6",
"yarn": ">=1"
}
Expand Down
1 change: 1 addition & 0 deletions possible-errors.js
Expand Up @@ -34,6 +34,7 @@ module.exports = {
'no-unreachable': 'error',
'no-unsafe-finally': 'error',
'no-unsafe-negation': 'error',
'no-useless-backreference': 'error',
'require-atomic-updates': 'off',
'use-isnan': 'error',
'valid-typeof': 'error',
Expand Down

0 comments on commit 14fb60b

Please sign in to comment.