This repository was archived by the owner on Mar 7, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +21
-2
lines changed Expand file tree Collapse file tree 4 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,12 @@ module.exports = {
168168 // This rule is aimed at increasing code clarity by discouraging deeply nesting callbacks.
169169 'max-nested-callbacks' : [ 1 , 4 ] ,
170170
171+ // Specify the Maximum Number of Statements Allowed per Line
172+ // A line of code containing too many statements can be difficult to read. Code is generally
173+ // read from the top down, especially when scanning, so limiting the number of statements
174+ // allowed on a single line can be very beneficial for readability and maintainability.
175+ 'max-statements-per-line' : 1 ,
176+
171177 // Require Constructors to Use Initial Caps
172178 // This rule is aimed at helping to distinguish regular functions from constructor functions. As
173179 // such, it warns whenever it sees new followed by an identifier that isn't capitalized or
Original file line number Diff line number Diff line change 1717 "license" : " BSD-3-Clause" ,
1818 "main" : " default" ,
1919 "peerDependencies" : {
20- "eslint" : " ^2.2.0 "
20+ "eslint" : " ^2.5.1 "
2121 },
2222 "repository" : {
2323 "type" : " git" ,
2727 "lint" : " eslint standard environments coding-styles unused.js default.js"
2828 },
2929 "devDependencies" : {
30- "eslint" : " ^2.2.0 "
30+ "eslint" : " ^2.5.1 "
3131 }
3232}
Original file line number Diff line number Diff line change @@ -92,6 +92,14 @@ module.exports = {
9292 // loop without filtering the results in the loop.
9393 'guard-for-in' : 1 ,
9494
95+ // Disallow duplicate exports/imports
96+ // An ES6/ES2015 import can be spread over multiple lines, but this takes up unneeded
97+ // whitespace. This rules validates that all imports from a single module exists in a single
98+ // import statement.
99+ 'no-duplicate-imports' : [ 1 , {
100+ includeExports : true
101+ } ] ,
102+
95103 // Disallow eval()
96104 // This rule is aimed at preventing potentially dangerous, unnecessary, and slow code by
97105 // disallowing the use of the eval() function.
Original file line number Diff line number Diff line change @@ -144,6 +144,11 @@ module.exports = {
144144 // class.
145145 'no-useless-constructor' : 2 ,
146146
147+ // Disallow unnecessary escape usage
148+ // Escaping non-special characters in strings and regular expressions doesn’t have any effects
149+ // on results. This rule flags escapes that can be safely removed without changing behavior.
150+ 'no-useless-escape' : 2 ,
151+
147152 // Suggest using the rest parameters instead of `arguments`
148153 // This rule is aimed to flag usage of `arguments` variables.
149154 'prefer-rest-params' : 2 ,
You can’t perform that action at this time.
0 commit comments