|
| 1 | +module.exports = { |
| 2 | + plugins: ['import'], |
| 3 | + rules: { |
| 4 | + 'import/default': 'error', |
| 5 | + 'import/export': 'error', |
| 6 | + 'import/extensions': ['error', {js: 'never', json: 'always'}], |
| 7 | + 'import/exports-last': 'off', |
| 8 | + 'import/first': 'error', |
| 9 | + 'import/no-anonymous-default-export': 'off', |
| 10 | + 'import/max-dependencies': 'off', |
| 11 | + 'import/namespace': 'error', |
| 12 | + 'import/named': 'error', |
| 13 | + 'import/newline-after-import': 'warn', |
| 14 | + 'import/no-absolute-path': 'error', |
| 15 | + 'import/no-amd': 'error', |
| 16 | + 'import/no-commonjs': 'error', |
| 17 | + 'import/no-deprecated': 'off', |
| 18 | + 'import/no-duplicates': 'error', |
| 19 | + 'import/no-dynamic-require': 'error', |
| 20 | + 'import/no-extraneous-dependencies': 'error', |
| 21 | + 'import/no-internal-modules': 'off', |
| 22 | + 'import/no-mutable-exports': 'error', |
| 23 | + 'import/no-named-as-default': 'error', |
| 24 | + 'import/no-named-as-default-member': 'error', |
| 25 | + 'import/no-named-default': 'warn', |
| 26 | + 'import/no-namespace': 'off', |
| 27 | + 'import/no-nodejs-modules': 'off', |
| 28 | + 'import/no-restricted-paths': 'off', |
| 29 | + 'import/no-unassigned-import': 'error', |
| 30 | + 'import/no-unresolved': 'error', |
| 31 | + 'import/no-webpack-loader-syntax': 'error', |
| 32 | + 'import/order': 'warn', |
| 33 | + 'import/prefer-default-export': 'warn', |
| 34 | + 'import/unambiguous': 'error' |
| 35 | + }, |
| 36 | + settings: { |
| 37 | + 'import/resolve': { |
| 38 | + extensions: ['.js', '.jsx', '.json'] |
| 39 | + } |
| 40 | + } |
| 41 | +} |
0 commit comments