OLD | NEW |
(Empty) | |
| 1 module.exports = { |
| 2 'env': { |
| 3 'browser': true, |
| 4 'es6': true |
| 5 }, |
| 6 'extends': 'eslint:recommended', |
| 7 'rules': { |
| 8 // Disabled checks. |
| 9 'no-case-declarations': 'off', |
| 10 'no-dupe-keys': 'off', |
| 11 'no-extra-boolean-cast': 'off', |
| 12 'no-inner-declarations': 'off', |
| 13 'no-redeclare': 'off', |
| 14 'no-undef': 'off', |
| 15 'no-unused-vars': 'off', |
| 16 'no-useless-escape': 'off', |
| 17 |
| 18 // Enabled checks. |
| 19 'comma-dangle': ['error', 'only-multiline'], |
| 20 'linebreak-style': ['error', 'unix'], |
| 21 'max-len': ['error', 80], |
| 22 'no-console': ['error', { allow: ['warn', 'error'] }], |
| 23 'no-constant-condition': ['error', {checkLoops: false}], |
| 24 'no-trailing-spaces': 'error', |
| 25 'object-curly-spacing': ['error', 'never'], |
| 26 'quotes': ['error', 'single', {avoidEscape: true}], |
| 27 'semi': ['error', 'always'], |
| 28 } |
| 29 }; |
OLD | NEW |