1
1
module . exports = {
2
2
extends : [ 'eslint:recommended' , 'plugin:node/recommended' ] ,
3
- plugins : [ 'node' ] ,
4
3
rules : {
5
4
// override recomennded
6
5
'no-console' : 'off' ,
@@ -18,11 +17,13 @@ module.exports = {
18
17
'curly' : [ 'error' , 'multi-line' ] ,
19
18
'dot-location' : [ 'error' , 'property' ] ,
20
19
'dot-notation' : 'error' ,
20
+ /** eqeqeq Deprecated option. @see https://github.com/hexojs/eslint-config-hexo/issues/8 */
21
21
'eqeqeq' : [ 'error' , 'allow-null' ] ,
22
22
'no-else-return' : 'error' ,
23
23
'no-eval' : 'error' ,
24
24
'no-extend-native' : 'error' ,
25
25
'no-extra-bind' : 'error' ,
26
+ 'no-extra-label' : 'error' ,
26
27
'no-implicit-globals' : 'error' ,
27
28
'no-implied-eval' : 'error' ,
28
29
'no-lone-blocks' : 'error' ,
@@ -59,7 +60,6 @@ module.exports = {
59
60
'no-use-before-define' : [ 'error' , 'nofunc' ] ,
60
61
// Node.js and CommonJS
61
62
'handle-callback-err' : 'error' ,
62
- 'no-mixed-operators' : 'error' ,
63
63
'no-path-concat' : 'error' ,
64
64
// Stylistic Issues
65
65
'array-bracket-spacing' : [ 'error' , 'never' ] ,
@@ -79,13 +79,13 @@ module.exports = {
79
79
beforeColon : false ,
80
80
afterColon : true
81
81
} ] ,
82
- 'keyword-spacing' : [ 'error' , { } ] ,
82
+ 'keyword-spacing' : 'error' ,
83
83
'linebreak-style' : [ 'error' , 'unix' ] ,
84
84
'lines-around-comment' : [ 'error' , { beforeBlockComment : true } ] ,
85
85
'new-cap' : 'error' ,
86
86
'new-parens' : 'error' ,
87
87
'no-array-constructor' : 'error' ,
88
- 'no-extra-label ' : 'error' ,
88
+ 'no-mixed-operators ' : 'error' ,
89
89
'no-multiple-empty-lines' : 'error' ,
90
90
'no-nested-ternary' : 'error' ,
91
91
'no-new-object' : 'error' ,
@@ -125,12 +125,5 @@ module.exports = {
125
125
'rest-spread-spacing' : [ 'error' , 'never' ] ,
126
126
'template-curly-spacing' : [ 'error' , 'never' ] ,
127
127
'yield-star-spacing' : [ 'error' , 'after' ]
128
- } ,
129
- env : {
130
- node : true ,
131
- es6 : true
132
- } ,
133
- parserOptions : {
134
- ecmaVersion : 6
135
128
}
136
129
} ;
0 commit comments