This repository was archived by the owner on Mar 7, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 16 files changed +32
-22
lines changed Expand file tree Collapse file tree 16 files changed +32
-22
lines changed Original file line number Diff line number Diff line change @@ -59,5 +59,5 @@ This software is licensed under the **BSD-3-Clause License**. See the [LICENSE](
59
59
[ eslint-url ] : http://eslint.org
60
60
[ travis-badge ] : https://travis-ci.org/strvcom/js-coding-standards.svg
61
61
[ travis-url ] : https://travis-ci.org/strvcom/js-coding-standards
62
- [ eslint-version ] : https://img.shields.io/badge/ESLint->=3.9.1 -brightgreen.svg
62
+ [ eslint-version ] : https://img.shields.io/badge/ESLint->=3.11.0 -brightgreen.svg
63
63
[ eslint-fixing ] : http://eslint.org/docs/user-guide/command-line-interface#fix
Original file line number Diff line number Diff line change 1
1
/**
2
- * js -coding-standards
2
+ * Js -coding-standards
3
3
*
4
4
* @author Robert Rossmann <rr.rossmann@me.com>
5
5
* @copyright 2016 STRV
@@ -218,6 +218,11 @@ module.exports = {
218
218
// inside for loop conditionals.
219
219
'one-var-declaration-per-line' : 1 ,
220
220
221
+ // Operator Assignment Shorthand
222
+ // This rule enforces use of the shorthand assignment operators by requiring them where
223
+ // possible.
224
+ 'operator-assignment' : [ 1 , 'always' ] ,
225
+
221
226
// Enforce padding within blocks
222
227
// This rule enforces consistent padding within blocks.
223
228
'padded-blocks' : [ 1 , 'never' ] ,
Original file line number Diff line number Diff line change 1
1
/**
2
- * js -coding-standards
2
+ * Js -coding-standards
3
3
*
4
4
* @author Robert Rossmann <rr.rossmann@me.com>
5
5
* @copyright 2016 STRV
Original file line number Diff line number Diff line change 1
1
/**
2
- * js -coding-standards
2
+ * Js -coding-standards
3
3
*
4
4
* @author Robert Rossmann <rr.rossmann@me.com>
5
5
* @copyright 2016 STRV
@@ -15,6 +15,11 @@ module.exports = {
15
15
extends : './fixable.js' ,
16
16
17
17
rules : {
18
+ 'capitalized-comments' : [ 1 , 'always' , {
19
+ ignoreInlineComments : true ,
20
+ ignoreConsecutiveComments : true ,
21
+ } ] ,
22
+
18
23
// This rule enforces consistent use of trailing commas in object and array literals
19
24
// Allow trailing commas for func parameters, array and object literals spread across
20
25
// multiple lines
@@ -167,11 +172,6 @@ module.exports = {
167
172
const : 'never' ,
168
173
} ] ,
169
174
170
- // Operator Assignment Shorthand
171
- // This rule enforces use of the shorthand assignment operators by requiring them where
172
- // possible.
173
- 'operator-assignment' : [ 1 , 'always' ] ,
174
-
175
175
// Operator Linebreak
176
176
// When a statement is too long to fit on a single line, line breaks are generally inserted next
177
177
// to the operators separating expressions. This rule is aimed at enforcing a particular
Original file line number Diff line number Diff line change 1
1
/**
2
- * js -coding-standards
2
+ * Js -coding-standards
3
3
*
4
4
* @author Robert Rossmann <rr.rossmann@me.com>
5
5
* @copyright 2016 STRV
Original file line number Diff line number Diff line change 1
1
/**
2
- * js -coding-standards
2
+ * Js -coding-standards
3
3
*
4
4
* @author Robert Rossmann <rr.rossmann@me.com>
5
5
* @copyright 2016 STRV
Original file line number Diff line number Diff line change 1
1
/**
2
- * js -coding-standards
2
+ * Js -coding-standards
3
3
*
4
4
* @author Robert Rossmann <rr.rossmann@me.com>
5
5
* @copyright 2016 STRV
Original file line number Diff line number Diff line change 1
1
/**
2
- * js -coding-standards
2
+ * Js -coding-standards
3
3
*
4
4
* @author Robert Rossmann <rr.rossmann@me.com>
5
5
* @copyright 2016 STRV
Original file line number Diff line number Diff line change 1
1
/**
2
- * js -coding-standards
2
+ * Js -coding-standards
3
3
*
4
4
* @author Robert Rossmann <rr.rossmann@me.com>
5
5
* @copyright 2016 STRV
Original file line number Diff line number Diff line change 1
1
/**
2
- * js -coding-standards
2
+ * Js -coding-standards
3
3
*
4
4
* @author Robert Rossmann <rr.rossmann@me.com>
5
5
* @copyright 2016 STRV
Original file line number Diff line number Diff line change 1
1
/**
2
- * js -coding-standards
2
+ * Js -coding-standards
3
3
*
4
4
* @author Robert Rossmann <rr.rossmann@me.com>
5
5
* @copyright 2016 STRV
Original file line number Diff line number Diff line change 1
1
/**
2
- * js -coding-standards
2
+ * Js -coding-standards
3
3
*
4
4
* @author Robert Rossmann <rr.rossmann@me.com>
5
5
* @copyright 2016 STRV
Original file line number Diff line number Diff line change 1
1
/**
2
- * js -coding-standards
2
+ * Js -coding-standards
3
3
*
4
4
* @author Robert Rossmann <rr.rossmann@me.com>
5
5
* @copyright 2016 STRV
Original file line number Diff line number Diff line change 1
1
/**
2
- * js -coding-standards
2
+ * Js -coding-standards
3
3
*
4
4
* @author Robert Rossmann <rr.rossmann@me.com>
5
5
* @copyright 2016 STRV
@@ -532,6 +532,11 @@ module.exports = {
532
532
// spread operator.
533
533
'prefer-spread' : 1 ,
534
534
535
+ // Disallow async functions which have no await expression
536
+ // Async functions which have no await expression may be the unintentional result of
537
+ // refactoring.
538
+ 'require-await' : 1 ,
539
+
535
540
// Disallow generator functions that do not have yield
536
541
'require-yield' : 2 ,
537
542
Original file line number Diff line number Diff line change 12
12
"eslint-plugin-react" : " ^6.6.0"
13
13
},
14
14
"devDependencies" : {
15
- "eslint" : " ^3.10 .0"
15
+ "eslint" : " ^3.11 .0"
16
16
},
17
17
"engines" : {},
18
18
"homepage" : " https://github.com/strvcom/js-coding-standards" ,
23
23
"license" : " BSD-3-Clause" ,
24
24
"main" : " default" ,
25
25
"peerDependencies" : {
26
- "eslint" : " ^3.10 .0"
26
+ "eslint" : " ^3.11 .0"
27
27
},
28
28
"repository" : {
29
29
"type" : " git" ,
Original file line number Diff line number Diff line change 1
1
/**
2
- * js -coding-standards
2
+ * Js -coding-standards
3
3
*
4
4
* @author Robert Rossmann <rr.rossmann@me.com>
5
5
* @copyright 2016 STRV
You canβt perform that action at this time.
0 commit comments