|
1 | 1 | module.exports = { |
2 | 2 | rules: { |
3 | | - // require trailing commas in multiline object literals |
4 | | - 'comma-dangle': ['error', { |
5 | | - arrays: 'always-multiline', |
6 | | - objects: 'always-multiline', |
7 | | - imports: 'always-multiline', |
8 | | - exports: 'always-multiline', |
9 | | - functions: 'always-multiline', |
10 | | - }], |
| 3 | + // Enforce “for” loop update clause moving the counter in the right direction |
| 4 | + // http://eslint.org/docs/rules/for-direction |
| 5 | + 'for-direction': 'error', |
| 6 | + |
| 7 | + // Enforces that a return statement is present in property getters |
| 8 | + // http://eslint.org/docs/rules/getter-return |
| 9 | + 'getter-return': ['error', { allowImplicit: true }], |
11 | 10 |
|
12 | 11 | // Disallow await inside of loops |
13 | 12 | // http://eslint.org/docs/rules/no-await-in-loop |
14 | 13 | 'no-await-in-loop': 'error', |
15 | 14 |
|
16 | 15 | // Disallow comparisons to negative zero |
17 | 16 | // http://eslint.org/docs/rules/no-compare-neg-zero |
18 | | - // TODO: enable (semver-major) |
19 | | - 'no-compare-neg-zero': 'off', |
| 17 | + 'no-compare-neg-zero': 'error', |
20 | 18 |
|
21 | 19 | // disallow assignment in conditional expressions |
22 | 20 | 'no-cond-assign': ['error', 'always'], |
@@ -61,6 +59,8 @@ module.exports = { |
61 | 59 | conditionalAssign: true, |
62 | 60 | nestedBinaryExpressions: false, |
63 | 61 | returnAssign: false, |
| 62 | + ignoreJSX: 'all', // delegate to eslint-plugin-react |
| 63 | + enforceForArrowConditionals: false, |
64 | 64 | }], |
65 | 65 |
|
66 | 66 | // disallow unnecessary semicolons |
|
0 commit comments