|
1 | 1 | module.exports = { |
2 | | - "extends": "airbnb", |
3 | | - "rules": { |
4 | | - "arrow-body-style": 1, // Sometimes we don't want to keep doing this |
5 | | - "no-extra-parens": 0, // Interferes with jsx |
6 | | - "no-underscore-dangle": 0, // Mongo _id |
7 | | - "max-len": 1, // Sometimes necessary to have long strings and not risk whitespace |
8 | | - "no-param-reassign": [2, { "props": false }], // Allows assignment of new properties |
9 | | - "new-cap": 1, // Warning is good enough - we don't have any control over external packages doing this |
10 | | - "import/named": 2, // Ensure named imports correspond to a named export in the remote file |
11 | | - "import/no-extraneous-dependencies": 0, // https://github.com/benmosher/eslint-plugin-import/issues/479 |
12 | | - "import/extensions": ["off", "never"], // https://github.com/benmosher/eslint-plugin-import/issues/593 |
13 | | - "no-mixed-operators": 0, // Allow && || usage. e.g: const foo = a && a.foo || undefined; |
| 2 | + extends: 'airbnb', |
| 3 | + rules: { |
| 4 | + 'function-paren-newline': 'off', |
| 5 | + 'import/extensions': ['off', 'never'], // https://github.com/benmosher/eslint-plugin-import/issues/593 |
| 6 | + 'import/named': 'error', // Ensure named imports correspond to a named export in the remote file |
| 7 | + 'import/no-extraneous-dependencies': 'off', // https://github.com/benmosher/eslint-plugin-import/issues/479 |
| 8 | + 'new-cap': 'warn', // Warning is good enough - we don't have any control over external packages doing this |
| 9 | + 'no-mixed-operators': 'off', // Allow && || usage. e.g: const foo = a && a.foo || undefined; |
| 10 | + 'no-param-reassign': ['error', { props: false }], // Allows assignment of new properties |
| 11 | + 'no-underscore-dangle': 'off', // Mongo _id |
14 | 12 | }, |
15 | | -} |
| 13 | +}; |
0 commit comments