Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Commit f2ff4ac

Browse files
Update ruleset for ESLint 3.11 πŸŽ‰
1 parent 270437d commit f2ff4ac

File tree

16 files changed

+32
-22
lines changed

16 files changed

+32
-22
lines changed

β€ŽREADME.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ This software is licensed under the **BSD-3-Clause License**. See the [LICENSE](
5959
[eslint-url]: http://eslint.org
6060
[travis-badge]: https://travis-ci.org/strvcom/js-coding-standards.svg
6161
[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
6363
[eslint-fixing]: http://eslint.org/docs/user-guide/command-line-interface#fix

β€Žcoding-styles/fixable.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* js-coding-standards
2+
* Js-coding-standards
33
*
44
* @author Robert Rossmann <rr.rossmann@me.com>
55
* @copyright 2016 STRV
@@ -218,6 +218,11 @@ module.exports = {
218218
// inside for loop conditionals.
219219
'one-var-declaration-per-line': 1,
220220

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+
221226
// Enforce padding within blocks
222227
// This rule enforces consistent padding within blocks.
223228
'padded-blocks': [1, 'never'],

β€Žcoding-styles/react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* js-coding-standards
2+
* Js-coding-standards
33
*
44
* @author Robert Rossmann <rr.rossmann@me.com>
55
* @copyright 2016 STRV

β€Žcoding-styles/recommended.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* js-coding-standards
2+
* Js-coding-standards
33
*
44
* @author Robert Rossmann <rr.rossmann@me.com>
55
* @copyright 2016 STRV
@@ -15,6 +15,11 @@ module.exports = {
1515
extends: './fixable.js',
1616

1717
rules: {
18+
'capitalized-comments': [1, 'always', {
19+
ignoreInlineComments: true,
20+
ignoreConsecutiveComments: true,
21+
}],
22+
1823
// This rule enforces consistent use of trailing commas in object and array literals
1924
// Allow trailing commas for func parameters, array and object literals spread across
2025
// multiple lines
@@ -167,11 +172,6 @@ module.exports = {
167172
const: 'never',
168173
}],
169174

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-
175175
// Operator Linebreak
176176
// When a statement is too long to fit on a single line, line breaks are generally inserted next
177177
// to the operators separating expressions. This rule is aimed at enforcing a particular

β€Žcoding-styles/torment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* js-coding-standards
2+
* Js-coding-standards
33
*
44
* @author Robert Rossmann <rr.rossmann@me.com>
55
* @copyright 2016 STRV

β€Ženvironments/nodejs/optional.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* js-coding-standards
2+
* Js-coding-standards
33
*
44
* @author Robert Rossmann <rr.rossmann@me.com>
55
* @copyright 2016 STRV

β€Ženvironments/nodejs/recommended.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* js-coding-standards
2+
* Js-coding-standards
33
*
44
* @author Robert Rossmann <rr.rossmann@me.com>
55
* @copyright 2016 STRV

β€Ženvironments/nodejs/v6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* js-coding-standards
2+
* Js-coding-standards
33
*
44
* @author Robert Rossmann <rr.rossmann@me.com>
55
* @copyright 2016 STRV

β€Ženvironments/nodejs/v7.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* js-coding-standards
2+
* Js-coding-standards
33
*
44
* @author Robert Rossmann <rr.rossmann@me.com>
55
* @copyright 2016 STRV

β€Ženvironments/react/optional.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* js-coding-standards
2+
* Js-coding-standards
33
*
44
* @author Robert Rossmann <rr.rossmann@me.com>
55
* @copyright 2016 STRV

β€Ženvironments/react/recommended.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* js-coding-standards
2+
* Js-coding-standards
33
*
44
* @author Robert Rossmann <rr.rossmann@me.com>
55
* @copyright 2016 STRV

β€Ženvironments/react/v15.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* js-coding-standards
2+
* Js-coding-standards
33
*
44
* @author Robert Rossmann <rr.rossmann@me.com>
55
* @copyright 2016 STRV

β€Ženvironments/shared/optional.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* js-coding-standards
2+
* Js-coding-standards
33
*
44
* @author Robert Rossmann <rr.rossmann@me.com>
55
* @copyright 2016 STRV

β€Ženvironments/shared/recommended.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* js-coding-standards
2+
* Js-coding-standards
33
*
44
* @author Robert Rossmann <rr.rossmann@me.com>
55
* @copyright 2016 STRV
@@ -532,6 +532,11 @@ module.exports = {
532532
// spread operator.
533533
'prefer-spread': 1,
534534

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+
535540
// Disallow generator functions that do not have yield
536541
'require-yield': 2,
537542

β€Žpackage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"eslint-plugin-react": "^6.6.0"
1313
},
1414
"devDependencies": {
15-
"eslint": "^3.10.0"
15+
"eslint": "^3.11.0"
1616
},
1717
"engines": {},
1818
"homepage": "https://github.com/strvcom/js-coding-standards",
@@ -23,7 +23,7 @@
2323
"license": "BSD-3-Clause",
2424
"main": "default",
2525
"peerDependencies": {
26-
"eslint": "^3.10.0"
26+
"eslint": "^3.11.0"
2727
},
2828
"repository": {
2929
"type": "git",

β€Žunused.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* js-coding-standards
2+
* Js-coding-standards
33
*
44
* @author Robert Rossmann <rr.rossmann@me.com>
55
* @copyright 2016 STRV

0 commit comments

Comments
Β (0)