|
1 | 1 | module.exports = { |
2 | | - root: true, |
3 | | - parser: '@typescript-eslint/parser', |
4 | | - extends: [ |
5 | | - 'plugin:import/recommended', |
6 | | - 'plugin:import/typescript', |
7 | | - 'plugin:tailwindcss/recommended', |
8 | | - 'eslint:recommended', |
9 | | - 'airbnb-typescript/base', |
10 | | - 'plugin:@typescript-eslint/recommended', |
11 | | - 'prettier' |
12 | | - ], |
13 | | - plugins: ['svelte3', '@typescript-eslint', 'tailwindcss'], |
14 | | - ignorePatterns: ['*.cjs'], |
15 | | - overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }], |
16 | | - settings: { |
17 | | - 'svelte3/typescript': () => require('typescript') |
18 | | - }, |
19 | | - parserOptions: { |
20 | | - project: 'tsconfig.json', |
21 | | - sourceType: 'module', |
22 | | - ecmaVersion: 2020 |
23 | | - }, |
24 | | - env: { |
25 | | - browser: true, |
26 | | - es2017: true, |
27 | | - node: true |
28 | | - } |
| 2 | + root: true, |
| 3 | + extends: ['plugin:import/recommended', 'eslint:recommended'], |
| 4 | + plugins: ['svelte3', '@typescript-eslint', 'tailwindcss'], |
| 5 | + ignorePatterns: ['*.cjs'], |
| 6 | + overrides: [ |
| 7 | + { |
| 8 | + files: ['*.svelte'], |
| 9 | + processor: 'svelte3/svelte3', |
| 10 | + parser: '@typescript-eslint/parser', |
| 11 | + extends: [ |
| 12 | + 'plugin:import/typescript', |
| 13 | + 'airbnb-typescript/base', |
| 14 | + 'plugin:tailwindcss/recommended', |
| 15 | + 'plugin:@typescript-eslint/recommended', |
| 16 | + 'prettier', |
| 17 | + ], |
| 18 | + rules: { |
| 19 | + '@typescript-eslint/indent': 'off', |
| 20 | + }, |
| 21 | + }, |
| 22 | + { |
| 23 | + files: ['*.ts'], |
| 24 | + parser: '@typescript-eslint/parser', |
| 25 | + extends: [ |
| 26 | + 'plugin:import/typescript', |
| 27 | + 'airbnb-typescript/base', |
| 28 | + 'plugin:@typescript-eslint/recommended', |
| 29 | + 'prettier', |
| 30 | + ], |
| 31 | + rules: { |
| 32 | + '@typescript-eslint/indent': 'off', |
| 33 | + }, |
| 34 | + }, |
| 35 | + ], |
| 36 | + settings: { |
| 37 | + 'svelte3/typescript': () => require('typescript'), |
| 38 | + }, |
| 39 | + parserOptions: { |
| 40 | + project: 'tsconfig.json', |
| 41 | + sourceType: 'module', |
| 42 | + ecmaVersion: 2020, |
| 43 | + }, |
| 44 | + env: { |
| 45 | + browser: true, |
| 46 | + es2017: true, |
| 47 | + node: true, |
| 48 | + }, |
29 | 49 | }; |
0 commit comments