Skip to content

Commit 27506a2

Browse files
authored
upgrade(eslint-plugin-node@5)
[Breaking Change] Upgrade eslint-plugin-node
2 parents e12fbcb + ebddf9f commit 27506a2

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

eslint.js

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module.exports = {
22
extends: ['eslint:recommended', 'plugin:node/recommended'],
3-
plugins: ['node'],
43
rules: {
54
// override recomennded
65
'no-console': 'off',
@@ -18,11 +17,13 @@ module.exports = {
1817
'curly': ['error', 'multi-line'],
1918
'dot-location': ['error', 'property'],
2019
'dot-notation': 'error',
20+
/** eqeqeq Deprecated option. @see https://github.com/hexojs/eslint-config-hexo/issues/8 */
2121
'eqeqeq': ['error', 'allow-null'],
2222
'no-else-return': 'error',
2323
'no-eval': 'error',
2424
'no-extend-native': 'error',
2525
'no-extra-bind': 'error',
26+
'no-extra-label': 'error',
2627
'no-implicit-globals': 'error',
2728
'no-implied-eval': 'error',
2829
'no-lone-blocks': 'error',
@@ -59,7 +60,6 @@ module.exports = {
5960
'no-use-before-define': ['error', 'nofunc'],
6061
// Node.js and CommonJS
6162
'handle-callback-err': 'error',
62-
'no-mixed-operators': 'error',
6363
'no-path-concat': 'error',
6464
// Stylistic Issues
6565
'array-bracket-spacing': ['error', 'never'],
@@ -79,13 +79,13 @@ module.exports = {
7979
beforeColon: false,
8080
afterColon: true
8181
}],
82-
'keyword-spacing': ['error', {}],
82+
'keyword-spacing': 'error',
8383
'linebreak-style': ['error', 'unix'],
8484
'lines-around-comment': ['error', { beforeBlockComment: true }],
8585
'new-cap': 'error',
8686
'new-parens': 'error',
8787
'no-array-constructor': 'error',
88-
'no-extra-label': 'error',
88+
'no-mixed-operators': 'error',
8989
'no-multiple-empty-lines': 'error',
9090
'no-nested-ternary': 'error',
9191
'no-new-object': 'error',
@@ -125,12 +125,5 @@ module.exports = {
125125
'rest-spread-spacing': ['error', 'never'],
126126
'template-curly-spacing': ['error', 'never'],
127127
'yield-star-spacing': ['error', 'after']
128-
},
129-
env: {
130-
node: true,
131-
es6: true
132-
},
133-
parserOptions: {
134-
ecmaVersion: 6
135128
}
136129
};

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
],
1616
"license": "MIT",
1717
"peerDependencies": {
18-
"eslint": ">= 3.1.0"
18+
"eslint": ">=5.0.0"
1919
},
2020
"dependencies": {
21-
"eslint-plugin-node": "^5.2.1"
21+
"eslint-plugin-node": "^7.0.0"
2222
}
2323
}

0 commit comments

Comments
 (0)