| OLD | NEW |
| 1 module.exports = { | 1 module.exports = { |
| 2 "root": true, | 2 "root": true, |
| 3 | 3 |
| 4 "env": { | 4 "env": { |
| 5 "browser": true, | 5 "browser": true, |
| 6 "es6": true | 6 "es6": true |
| 7 }, | 7 }, |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * ESLint rules | 10 * ESLint rules |
| 11 * | 11 * |
| 12 * All available rules: http://eslint.org/docs/rules/ | 12 * All available rules: http://eslint.org/docs/rules/ |
| 13 * | 13 * |
| 14 * Rules take the following form: | 14 * Rules take the following form: |
| 15 * "rule-name", [severity, { opts }] | 15 * "rule-name", [severity, { opts }] |
| 16 * Severity: 2 == error, 1 == warning, 0 == off. | 16 * Severity: 2 == error, 1 == warning, 0 == off. |
| 17 */ | 17 */ |
| 18 "rules": { | 18 "rules": { |
| 19 | |
| 20 /** | 19 /** |
| 21 * Enforced rules | 20 * Enforced rules |
| 22 */ | 21 */ |
| 23 | 22 |
| 24 // syntax preferences | 23 // syntax preferences |
| 25 "quotes": [2, "double", { | 24 "quotes": [2, "double", { |
| 26 "avoidEscape": true, | 25 "avoidEscape": true, |
| 27 "allowTemplateLiterals": true | 26 "allowTemplateLiterals": true |
| 28 }], | 27 }], |
| 29 "comma-style": [2, "last"], | 28 "comma-style": [2, "last"], |
| 30 "wrap-iife": [2, "inside"], | 29 "wrap-iife": [2, "inside"], |
| 31 "yoda": [2, "never"], | |
| 32 "spaced-comment": [2, "always", { | 30 "spaced-comment": [2, "always", { |
| 33 "markers": ["*"] | 31 "markers": ["*"] |
| 34 }], | 32 }], |
| 35 "arrow-body-style": [2, "as-needed"], | 33 "arrow-body-style": [2, "as-needed"], |
| 36 "accessor-pairs": [2, { | 34 "accessor-pairs": [2, { |
| 37 "getWithoutSet": false, | 35 "getWithoutSet": false, |
| 38 "setWithoutGet": false | 36 "setWithoutGet": false |
| 39 }], | 37 }], |
| 40 "handle-callback-err": 2, | 38 "handle-callback-err": 2, |
| 41 "id-blacklist": 2, | 39 "id-blacklist": 2, |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 "align": "value" | 113 "align": "value" |
| 116 }], | 114 }], |
| 117 // quote-props is diabled, as property quoting styles are too varied to
enforce. | 115 // quote-props is diabled, as property quoting styles are too varied to
enforce. |
| 118 "quote-props": [0, "as-needed"], | 116 "quote-props": [0, "as-needed"], |
| 119 | 117 |
| 120 // no-implicit-globals will prevent accidental globals | 118 // no-implicit-globals will prevent accidental globals |
| 121 "no-implicit-globals": [0] | 119 "no-implicit-globals": [0] |
| 122 | 120 |
| 123 } | 121 } |
| 124 }; | 122 }; |
| OLD | NEW |