@@ -10,10 +10,6 @@ module.exports = {
10
10
* Possible errors
11
11
*/
12
12
13
- // Enforce "for" loop update clause moving the counter
14
- // in the right direction
15
- 'for-direction' : 'error' ,
16
-
17
13
// Allow unnecessary parentheses
18
14
'no-extra-parens' : 'off' ,
19
15
@@ -55,77 +51,21 @@ module.exports = {
55
51
* Stylistic issues
56
52
*/
57
53
58
- // Require 'one true brace style', in which the opening brace
59
- // of a block is placed on the same line as its corresponding
60
- // statement or declaration
61
- 'brace-style' : [ 'error' , '1tbs' ] ,
62
-
63
- // Disallow spaces inside of brackets
64
- 'array-bracket-spacing' : [ 'error' , 'never' ] ,
65
-
66
54
// Require CamelCase
67
55
camelcase : [ 'error' , { properties : 'never' } ] ,
68
56
69
- // Require or disallow trailing commas
70
- 'comma-dangle' : [
71
- 'error' ,
72
- {
73
- arrays : 'always-multiline' ,
74
- objects : 'always-multiline' ,
75
- imports : 'always-multiline' ,
76
- exports : 'never' ,
77
- functions : 'never' ,
78
- } ,
79
- ] ,
80
-
81
- // Require space after comma
82
- 'comma-spacing' : [ 'error' , { after : true } ] ,
83
-
84
- // Require newline at the end of files
85
- 'eol-last' : [ 'error' , 'always' ] ,
86
-
87
- // Disallow spacing between function identifiers and their invocations
88
- 'func-call-spacing' : 'error' ,
89
-
90
- // Use tabs as indentation
91
- // Enforce indentation level for case clauses in switch statements
92
- indent : [ 'error' , 'tab' , { SwitchCase : 1 } ] ,
93
-
94
- // Require space after colon in object literal properties
95
- 'key-spacing' : [ 'error' , { afterColon : true } ] ,
96
-
97
- // Require space before and after keywords
98
- 'keyword-spacing' : 'error' ,
99
-
100
- // Require Unix line endings
101
- 'linebreak-style' : [ 'error' , 'unix' ] ,
102
-
103
- // Disallow empty block statements
104
- 'no-empty' : [ 'error' , { allowEmptyCatch : true } ] ,
105
-
106
57
// Disallow `if` statements as the only statement in `else` blocks
107
58
'no-lonely-if' : 'error' ,
108
59
109
- // Disallow multiple spaces
110
- 'no-multi-spaces' : 'error' ,
111
-
112
60
// Disallow nested ternary expressions
113
61
'no-nested-ternary' : 'error' ,
114
62
115
- // Disallow trailing whitespace at the end of lines
116
- 'no-trailing-spaces' : 'error' ,
117
-
118
63
// Disallow ternary operators when simpler alternatives exist
119
64
'no-unneeded-ternary' : 'error' ,
120
65
121
- // Disallow whitespace before properties
122
- 'no-whitespace-before-property' : 'error' ,
123
-
66
+ // Enforce variables to be declared separately in functions
124
67
'one-var' : [ 'error' , 'never' ] ,
125
68
126
- // Require spaces inside curly braces
127
- 'object-curly-spacing' : [ 'error' , 'always' ] ,
128
-
129
69
// Require single quotes
130
70
quotes : [
131
71
'error' ,
@@ -135,34 +75,9 @@ module.exports = {
135
75
} ,
136
76
] ,
137
77
138
- // Require space before blocks
139
- 'space-before-blocks' : [ 'error' , 'always' ] ,
140
-
141
- // Disallow a space before function parenthesis
142
- 'space-before-function-paren' : [
143
- 'error' ,
144
- {
145
- named : 'never' ,
146
- anonymous : 'always' ,
147
- asyncArrow : 'always' ,
148
- } ,
149
- ] ,
150
-
151
- // Disallow spaces inside of parentheses
152
- 'space-in-parens' : 'error' ,
153
-
154
- // Require spacing around infix operators
155
- 'space-infix-ops' : 'error' ,
156
-
157
78
// Enforce consistent spacing after the // or /* in a comment
158
79
'spaced-comment' : 'error' ,
159
80
160
- // Require semicolon at the end of statement
161
- semi : [ 'error' , 'always' ] ,
162
-
163
- // Enforce spacing around colons of switch statements
164
- 'switch-colon-spacing' : [ 'error' , { after : true , before : false } ] ,
165
-
166
81
/*
167
82
* ECMAScript 6
168
83
*/
0 commit comments