|
1 | | -import js from "@eslint/js"; |
2 | | -import typescript from "@typescript-eslint/eslint-plugin"; |
3 | | -import typescriptParser from "@typescript-eslint/parser"; |
4 | | -import prettier from "eslint-plugin-prettier"; |
5 | | -import prettierConfig from "eslint-config-prettier"; |
| 1 | +import js from '@eslint/js'; |
| 2 | +import typescript from '@typescript-eslint/eslint-plugin'; |
| 3 | +import typescriptParser from '@typescript-eslint/parser'; |
| 4 | +import prettier from 'eslint-plugin-prettier'; |
| 5 | +import prettierConfig from 'eslint-config-prettier'; |
6 | 6 |
|
7 | 7 | export default [ |
8 | 8 | js.configs.recommended, |
9 | 9 | prettierConfig, |
10 | 10 | { |
11 | | - files: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"], |
| 11 | + files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'], |
12 | 12 | languageOptions: { |
13 | 13 | parser: typescriptParser, |
14 | 14 | parserOptions: { |
15 | | - ecmaVersion: "latest", |
16 | | - sourceType: "module", |
| 15 | + ecmaVersion: 'latest', |
| 16 | + sourceType: 'module', |
17 | 17 | ecmaFeatures: { |
18 | 18 | jsx: true, |
19 | 19 | }, |
20 | 20 | }, |
21 | 21 | globals: { |
22 | | - console: "readonly", |
23 | | - document: "readonly", |
24 | | - window: "readonly", |
25 | | - fetch: "readonly", |
26 | | - FormData: "readonly", |
27 | | - File: "readonly", |
28 | | - setTimeout: "readonly", |
29 | | - clearTimeout: "readonly", |
30 | | - localStorage: "readonly", |
31 | | - sessionStorage: "readonly", |
32 | | - URL: "readonly", |
33 | | - Blob: "readonly", |
34 | | - FileReader: "readonly", |
| 22 | + console: 'readonly', |
| 23 | + document: 'readonly', |
| 24 | + window: 'readonly', |
| 25 | + fetch: 'readonly', |
| 26 | + FormData: 'readonly', |
| 27 | + File: 'readonly', |
| 28 | + setTimeout: 'readonly', |
| 29 | + clearTimeout: 'readonly', |
| 30 | + localStorage: 'readonly', |
| 31 | + sessionStorage: 'readonly', |
| 32 | + URL: 'readonly', |
| 33 | + Blob: 'readonly', |
| 34 | + FileReader: 'readonly', |
35 | 35 | }, |
36 | 36 | }, |
37 | 37 | plugins: { |
38 | | - "@typescript-eslint": typescript, |
| 38 | + '@typescript-eslint': typescript, |
39 | 39 | prettier: prettier, |
40 | 40 | }, |
41 | 41 | rules: { |
42 | | - "prettier/prettier": "error", |
43 | | - "@typescript-eslint/no-explicit-any": "warn", |
44 | | - "@typescript-eslint/no-unused-vars": [ |
45 | | - "error", |
| 42 | + 'prettier/prettier': 'error', |
| 43 | + '@typescript-eslint/no-explicit-any': 'warn', |
| 44 | + '@typescript-eslint/no-unused-vars': [ |
| 45 | + 'error', |
46 | 46 | { |
47 | | - argsIgnorePattern: "^_", |
48 | | - varsIgnorePattern: "^_", |
| 47 | + argsIgnorePattern: '^_', |
| 48 | + varsIgnorePattern: '^_', |
49 | 49 | }, |
50 | 50 | ], |
51 | | - "no-undef": "off", |
52 | | - "no-unused-vars": "off", |
| 51 | + 'no-undef': 'off', |
| 52 | + 'no-unused-vars': 'off', |
53 | 53 | }, |
54 | 54 | settings: { |
55 | 55 | react: { |
56 | | - version: "detect", |
| 56 | + version: 'detect', |
57 | 57 | }, |
58 | 58 | }, |
59 | 59 | }, |
|
0 commit comments