| 1 | module.exports = { |
| 2 | 'env': { |
| 3 | node: true, |
| 4 | es6: false, |
| 5 | mocha: true, |
| 6 | browser: true, |
| 7 | }, |
| 8 | 'rules': { |
| 9 | // func-names is annoying when you don't have arrow syntax |
| 10 | 'func-names': 'off', |
| 11 | // To deal with browser environments, we need to have require |
| 12 | // calls inside a conditional |
| 13 | 'global-require': 'off', |
| 14 | 'spaced-comment': ['error', 'always', { 'exceptions': ['*', ','] }], |
| 15 | // This is another rule that doesn't make sense when you don't have block-level |
| 16 | // variable declarations |
| 17 | 'one-var': 'off', |
| 18 | 'one-var-declaration-per-line': 'off', |
| 19 | // We need tests to run without babel on browsers that might not have Object.keys |
| 20 | // and related functions |
| 21 | 'no-restricted-syntax': 'off', |
| 22 | }, |
| 23 | }; |