|
1 | 1 | {
|
2 |
| - "env": { |
3 |
| - "browser": true, |
4 |
| - "es2021": true |
5 |
| - }, |
6 |
| - "extends": [ |
7 |
| - "eslint:recommended", |
8 |
| - "plugin:@typescript-eslint/recommended", |
9 |
| - "plugin:svelte/base", |
10 |
| - "plugin:svelte/recommended", |
11 |
| - "plugin:svelte/prettier" |
12 |
| - ], |
13 |
| - "parser": "@typescript-eslint/parser", |
14 |
| - "parserOptions": { |
15 |
| - "ecmaVersion": "latest", |
16 |
| - "sourceType": "module", |
17 |
| - "extraFileExtensions": [".svelte"] |
18 |
| - }, |
19 |
| - "overrides": [ |
20 |
| - { |
21 |
| - "files": ["*.svelte"], |
22 |
| - "parser": "svelte-eslint-parser", |
23 |
| - // Parse the `<script>` in `.svelte` as TypeScript by adding the following configuration. |
24 |
| - "parserOptions": { |
25 |
| - "parser": "@typescript-eslint/parser" |
26 |
| - } |
27 |
| - } |
28 |
| - ], |
29 |
| - "plugins": [ |
30 |
| - "@typescript-eslint" |
31 |
| - ], |
32 |
| - "ignorePatterns": ["*.d.ts"], |
33 |
| - "rules": { |
34 |
| - "no-unused-vars": ["warn", { "args": "none" }], |
35 |
| - "@typescript-eslint/no-unused-vars": 0, |
36 |
| - "indent": ["warn", 2], |
37 |
| - "linebreak-style": ["error", "unix"], |
38 |
| - "semi": "warn", |
39 |
| - "@typescript-eslint/ban-ts-comment": "off", |
40 |
| - "@typescript-eslint/no-explicit-any": "off" |
| 2 | + "env": { |
| 3 | + "browser": true, |
| 4 | + "es2021": true, |
| 5 | + "node": true |
| 6 | + }, |
| 7 | + "extends": [ |
| 8 | + "eslint:recommended", |
| 9 | + "plugin:@typescript-eslint/recommended", |
| 10 | + "plugin:svelte/base", |
| 11 | + "plugin:svelte/recommended", |
| 12 | + "plugin:svelte/prettier" |
| 13 | + ], |
| 14 | + "parser": "@typescript-eslint/parser", |
| 15 | + "parserOptions": { |
| 16 | + "ecmaVersion": "latest", |
| 17 | + "sourceType": "module", |
| 18 | + "extraFileExtensions": [".svelte"] |
| 19 | + }, |
| 20 | + "overrides": [ |
| 21 | + { |
| 22 | + "files": ["*.svelte"], |
| 23 | + "parser": "svelte-eslint-parser", |
| 24 | + // Parse the `<script>` in `.svelte` as TypeScript by adding the following configuration. |
| 25 | + "parserOptions": { |
| 26 | + "parser": "@typescript-eslint/parser" |
| 27 | + } |
41 | 28 | }
|
| 29 | + ], |
| 30 | + "plugins": ["@typescript-eslint"], |
| 31 | + "ignorePatterns": ["*.d.ts"], |
| 32 | + "rules": { |
| 33 | + "no-unused-vars": ["warn", { "args": "none" }], |
| 34 | + "@typescript-eslint/no-unused-vars": 0, |
| 35 | + "indent": ["warn", 2], |
| 36 | + "linebreak-style": ["error", "unix"], |
| 37 | + "semi": "warn", |
| 38 | + "@typescript-eslint/ban-ts-comment": "off", |
| 39 | + "@typescript-eslint/no-explicit-any": "off" |
| 40 | + } |
42 | 41 | }
|
0 commit comments