11module . exports = {
22 'rules' : {
3+ // enforce line breaks after opening and before closing array brackets
4+ 'array-bracket-newline' : 0 ,
35 // enforce spacing inside array brackets
46 'array-bracket-spacing' : 0 ,
7+ // enforce line breaks after each array element
8+ 'array-element-newline' : 0 ,
59 // enforce consistent spacing inside single-line blocks
610 'block-spacing' : [ 2 , 'always' ] ,
711 // enforce one true brace style
@@ -44,8 +48,6 @@ module.exports = {
4448 'line-comment-position' : 0 ,
4549 // enforces empty lines around comments
4650 'lines-around-comment' : 0 ,
47- // require or disallow newlines around directives
48- 'lines-around-directive' : 0 ,
4951 // disallow mixed 'LF' and 'CRLF' as linebreaks
5052 'linebreak-style' : 0 ,
5153 // enforce a maximum depth that blocks can be nested
@@ -68,10 +70,6 @@ module.exports = {
6870 'new-cap' : [ 2 , { 'newIsCap' : true } ] ,
6971 // disallow the omission of parentheses when invoking a constructor with no arguments
7072 'new-parens' : 2 ,
71- // allow/disallow an empty newline after var statement
72- 'newline-after-var' : 0 ,
73- // require newline before return statement
74- 'newline-before-return' : 0 ,
7573 // disallow use of the Array constructor
7674 'no-array-constructor' : 2 ,
7775 // disallow bitwise operators
@@ -128,6 +126,8 @@ module.exports = {
128126 'operator-linebreak' : 0 ,
129127 // enforce padding within blocks
130128 'padded-blocks' : [ 2 , 'never' ] ,
129+ // require or disallow padding lines between statements
130+ 'padding-line-between-statements' : 0 ,
131131 // require quotes around object literal property names
132132 'quote-props' : 0 ,
133133 // specify whether double or single quotes should be used
@@ -136,10 +136,12 @@ module.exports = {
136136 'require-jsdoc' : 0 ,
137137 // require identifiers to match the provided regular expression
138138 'id-match' : 0 ,
139- // enforce spacing before and after semicolons
140- 'semi-spacing' : [ 2 , { 'before' : false , 'after' : true } ] ,
141139 // require or disallow use of semicolons instead of ASI
142140 'semi' : [ 2 , 'always' ] ,
141+ // enforce spacing before and after semicolons
142+ 'semi-spacing' : [ 2 , { 'before' : false , 'after' : true } ] ,
143+ // enforce location of semicolons
144+ 'semi-style' : [ 2 , 'last' ] ,
143145 // requires object keys to be sorted
144146 'sort-keys' : 0 ,
145147 // sort variables within the same declaration block
@@ -162,6 +164,8 @@ module.exports = {
162164 'exceptions' : [ '-' , '+' ] ,
163165 'markers' : [ '=' , '!' ] // space here to support sprockets directives
164166 } ] ,
167+ // enforce spacing around colons of switch statements
168+ 'switch-colon-spacing' : 2 ,
165169 // Require or disallow spacing between template tags and their literals (template-tag-spacing)
166170 'template-tag-spacing' : [ 2 , 'never' ] ,
167171 // require or disallow the Unicode BOM
0 commit comments