|
1 | 1 | import eslint from '@eslint/js' |
2 | 2 | import eslintPluginUnicorn from 'eslint-plugin-unicorn' |
| 3 | +import { defineConfig } from 'eslint/config' |
3 | 4 | import importPlugin from 'eslint-plugin-import' |
4 | 5 | import tseslint from 'typescript-eslint' |
5 | 6 |
|
6 | | -export default tseslint.config( |
| 7 | +export default defineConfig( |
7 | 8 | { |
8 | 9 | ignores: [ |
9 | 10 | 'webpack.config.js', |
@@ -40,44 +41,11 @@ export default tseslint.config( |
40 | 41 |
|
41 | 42 | semi: ['error', 'never'], |
42 | 43 | 'unicorn/no-new-array': 'off', |
43 | | - // 'unicorn/no-empty-file': 'off', |
44 | | - // 'unicorn/prefer-type-error': 'off', |
45 | | - // 'unicorn/prefer-modern-math-apis': 'off', |
46 | | - // 'unicorn/prefer-node-protocol': 'off', |
47 | | - // 'unicorn/no-unreadable-array-destructuring': 'off', |
48 | | - // 'unicorn/no-abusive-eslint-disable': 'off', |
49 | | - // 'unicorn/no-array-callback-reference': 'off', |
50 | | - // 'unicorn/number-literal-case': 'off', |
51 | | - // 'unicorn/prefer-add-event-listener': 'off', |
52 | | - // 'unicorn/prefer-top-level-await': 'off', |
53 | | - // 'unicorn/consistent-function-scoping': 'off', |
54 | | - // 'unicorn/no-await-expression-member': 'off', |
55 | | - // 'unicorn/no-lonely-if': 'off', |
56 | | - // 'unicorn/consistent-destructuring': 'off', |
57 | 44 | 'unicorn/prefer-module': 'off', |
58 | | - // 'unicorn/prefer-optional-catch-binding': 'off', |
59 | | - // 'unicorn/no-useless-undefined': 'off', |
60 | | - // 'unicorn/no-null': 'off', |
61 | | - // 'unicorn/no-nested-ternary': 'off', |
62 | 45 | 'unicorn/filename-case': 'off', |
63 | | - // 'unicorn/catch-error-name': 'off', |
64 | 46 | 'unicorn/prevent-abbreviations': 'off', |
65 | 47 | 'unicorn/prefer-code-point': 'off', |
66 | 48 | 'unicorn/numeric-separators-style': 'off', |
67 | | - // 'unicorn/no-array-for-each': 'off', |
68 | | - // 'unicorn/prefer-spread': 'off', |
69 | | - // 'unicorn/explicit-length-check': 'off', |
70 | | - // 'unicorn/prefer-regexp-test': 'off', |
71 | | - // 'unicorn/relative-url-style': 'off', |
72 | | - // 'unicorn/prefer-math-trunc': 'off', |
73 | | - // 'unicorn/prefer-query-selector': 'off', |
74 | | - // 'unicorn/no-negated-condition': 'off', |
75 | | - // 'unicorn/switch-case-braces': 'off', |
76 | | - // 'unicorn/prefer-switch': 'off', |
77 | | - // 'unicorn/better-regex': 'off', |
78 | | - // 'unicorn/no-for-loop': 'off', |
79 | | - // 'unicorn/escape-case': 'off', |
80 | | - // 'unicorn/prefer-number-properties': 'off', |
81 | 49 |
|
82 | 50 | '@typescript-eslint/no-unused-vars': [ |
83 | 51 | 'warn', |
|
0 commit comments