Skip to content

Commit

Permalink
upgrade(eslint-plugin-node@5)
Browse files Browse the repository at this point in the history
[Breaking Change] Upgrade eslint-plugin-node
  • Loading branch information
segayuu authored Jul 20, 2018
2 parents e12fbcb + ebddf9f commit 27506a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
15 changes: 4 additions & 11 deletions eslint.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
extends: ['eslint:recommended', 'plugin:node/recommended'],
plugins: ['node'],
rules: {
// override recomennded
'no-console': 'off',
Expand All @@ -18,11 +17,13 @@ module.exports = {
'curly': ['error', 'multi-line'],
'dot-location': ['error', 'property'],
'dot-notation': 'error',
/** eqeqeq Deprecated option. @see https://github.com/hexojs/eslint-config-hexo/issues/8 */
'eqeqeq': ['error', 'allow-null'],
'no-else-return': 'error',
'no-eval': 'error',
'no-extend-native': 'error',
'no-extra-bind': 'error',
'no-extra-label': 'error',
'no-implicit-globals': 'error',
'no-implied-eval': 'error',
'no-lone-blocks': 'error',
Expand Down Expand Up @@ -59,7 +60,6 @@ module.exports = {
'no-use-before-define': ['error', 'nofunc'],
// Node.js and CommonJS
'handle-callback-err': 'error',
'no-mixed-operators': 'error',
'no-path-concat': 'error',
// Stylistic Issues
'array-bracket-spacing': ['error', 'never'],
Expand All @@ -79,13 +79,13 @@ module.exports = {
beforeColon: false,
afterColon: true
}],
'keyword-spacing': ['error', {}],
'keyword-spacing': 'error',
'linebreak-style': ['error', 'unix'],
'lines-around-comment': ['error', { beforeBlockComment: true }],
'new-cap': 'error',
'new-parens': 'error',
'no-array-constructor': 'error',
'no-extra-label': 'error',
'no-mixed-operators': 'error',
'no-multiple-empty-lines': 'error',
'no-nested-ternary': 'error',
'no-new-object': 'error',
Expand Down Expand Up @@ -125,12 +125,5 @@ module.exports = {
'rest-spread-spacing': ['error', 'never'],
'template-curly-spacing': ['error', 'never'],
'yield-star-spacing': ['error', 'after']
},
env: {
node: true,
es6: true
},
parserOptions: {
ecmaVersion: 6
}
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
],
"license": "MIT",
"peerDependencies": {
"eslint": ">= 3.1.0"
"eslint": ">=5.0.0"
},
"dependencies": {
"eslint-plugin-node": "^5.2.1"
"eslint-plugin-node": "^7.0.0"
}
}

0 comments on commit 27506a2

Please sign in to comment.