|
1 | 1 | module.exports = {
|
2 |
| - root: true, |
3 |
| - extends: '@sveltejs', |
4 |
| - plugins: ['import'], |
5 |
| - env: { |
6 |
| - node: true |
7 |
| - }, |
8 |
| - rules: { |
9 |
| - // enabling these rules makes the linting extremely slow. |
10 |
| - // (it's conceivable some subset of them could be enabled without impacting speed) |
11 |
| - // see https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/FAQ.md#eslint-plugin-import |
12 |
| - 'import/named': 'off', |
13 |
| - 'import/namespace': 'off', |
14 |
| - 'import/default': 'off', |
15 |
| - 'import/no-named-as-default-member': 'off', |
16 |
| - 'import/no-named-as-default': 'off', |
17 |
| - 'import/no-cycle': 'off', |
18 |
| - 'import/no-unused-modules': 'off', |
19 |
| - 'import/no-deprecated': 'off', |
20 |
| - // project-specific settings |
21 |
| - 'max-len': ['error', { code: 100, ignoreComments: true, ignoreStrings: true }], |
22 |
| - 'no-trailing-spaces': 'error', |
23 |
| - 'one-var': ['error', 'never'], |
24 |
| - '@typescript-eslint/no-unused-vars': ['error', { args: 'none' }], |
25 |
| - '@typescript-eslint/no-namespace': 'warn', |
26 |
| - '@typescript-eslint/no-non-null-assertion': 'warn', |
27 |
| - // exclude workspace dependencies |
28 |
| - 'import/no-unresolved': [2, { ignore: ['svelte-language-server'] }] |
29 |
| - } |
| 2 | + root: true, |
| 3 | + extends: '@sveltejs', |
| 4 | + plugins: ['import'], |
| 5 | + env: { |
| 6 | + node: true |
| 7 | + }, |
| 8 | + rules: { |
| 9 | + // enabling these rules makes the linting extremely slow. |
| 10 | + // (it's conceivable some subset of them could be enabled without impacting speed) |
| 11 | + // see https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/FAQ.md#eslint-plugin-import |
| 12 | + 'import/named': 'off', |
| 13 | + 'import/namespace': 'off', |
| 14 | + 'import/default': 'off', |
| 15 | + 'import/no-named-as-default-member': 'off', |
| 16 | + 'import/no-named-as-default': 'off', |
| 17 | + 'import/no-cycle': 'off', |
| 18 | + 'import/no-unused-modules': 'off', |
| 19 | + 'import/no-deprecated': 'off', |
| 20 | + // project-specific settings |
| 21 | + 'max-len': ['error', { code: 100, ignoreComments: true, ignoreStrings: true }], |
| 22 | + 'no-trailing-spaces': 'error', |
| 23 | + 'one-var': ['error', 'never'], |
| 24 | + '@typescript-eslint/no-unused-vars': ['error', { args: 'none' }], |
| 25 | + '@typescript-eslint/no-namespace': 'warn', |
| 26 | + '@typescript-eslint/no-non-null-assertion': 'warn', |
| 27 | + // exclude workspace dependencies |
| 28 | + 'import/no-unresolved': [2, { ignore: ['svelte-language-server'] }] |
| 29 | + } |
30 | 30 | };
|
0 commit comments