Skip to content

Commit 617ddcc

Browse files
author
Dennis Coorn
committed
Small improvement to our default eslint configuration
1 parent e93c394 commit 617ddcc

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

packages/eslint-config-default/index.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ module.exports = {
1414
'arrow-body-style': 'off',
1515
'class-methods-use-this': 'off',
1616
'max-len': [2, 140, 4],
17-
'indent': ['error', 4, {'SwitchCase': 1}],
17+
'indent': ['error', 4, {
18+
'SwitchCase': 1
19+
}],
1820
'no-continue': 'off',
1921
'no-prototype-builtins': 'off',
2022
'no-underscore-dangle': ['error', {
@@ -24,9 +26,13 @@ module.exports = {
2426
'prefer-destructuring': ['error', {
2527
'array': false
2628
}],
27-
'no-param-reassign': [
28-
"error", { "props": false }
29-
],
30-
'operator-linebreak': 'off'
29+
'no-param-reassign': ['error', {
30+
'props': false
31+
}],
32+
'operator-linebreak': 'off',
33+
'no-multiple-empty-lines': ['error', {
34+
'max': 2,
35+
'maxEOF': 1
36+
}]
3137
}
3238
};

0 commit comments

Comments
 (0)