Skip to content

Commit 16d1560

Browse files
committed
Added no-await-in-loop rule and enforcing no-console rule.
1 parent 653dd8c commit 16d1560

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22

3+
## 2.20.0
4+
- Enforcing errors/no-console rule
5+
- Added errors/no-await-in-loop rule
6+
- Removed best-practices/no-case-declarations rule
7+
38
## 2.19.0
49
- Removed style/id-length rule
510
- Added react/no-array-index-key rule

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-smartthings",
3-
"version": "2.19.0",
3+
"version": "2.20.0",
44
"description": "SmartThings's ESLint config",
55
"main": "index.js",
66
"repository": {

rules/best-practices.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = {
2929
// disallow use of arguments.caller or arguments.callee
3030
'no-caller': 2,
3131
// disallow lexical declarations in case clauses
32-
'no-case-declarations': 2,
32+
'no-case-declarations': 0,
3333
// disallow division operators explicitly at beginning of regular expression
3434
'no-div-regex': 0,
3535
// disallow else after a return in an if

rules/errors.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
module.exports = {
22
'rules': {
3+
// Disallow await inside of loops (no-await-in-loop)
4+
'no-await-in-loop': 2,
35
// disallow assignment in conditional expressions
46
'no-cond-assign': [2, 'always'],
57
// disallow use of console
6-
'no-console': 1,
8+
'no-console': 2,
79
// disallow use of constant expressions in conditions
810
'no-constant-condition': 2,
911
// disallow control characters in regular expressions

0 commit comments

Comments
 (0)