Skip to content

Commit e1495c4

Browse files
committed
Update lint config
1 parent 11e5491 commit e1495c4

File tree

3 files changed

+301
-316
lines changed

3 files changed

+301
-316
lines changed

eslint.config.mjs

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import eslint from '@eslint/js'
22
import eslintPluginUnicorn from 'eslint-plugin-unicorn'
3+
import { defineConfig } from 'eslint/config'
34
import importPlugin from 'eslint-plugin-import'
45
import tseslint from 'typescript-eslint'
56

6-
export default tseslint.config(
7+
export default defineConfig(
78
{
89
ignores: [
910
'webpack.config.js',
@@ -40,44 +41,11 @@ export default tseslint.config(
4041

4142
semi: ['error', 'never'],
4243
'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',
5744
'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',
6245
'unicorn/filename-case': 'off',
63-
// 'unicorn/catch-error-name': 'off',
6446
'unicorn/prevent-abbreviations': 'off',
6547
'unicorn/prefer-code-point': 'off',
6648
'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',
8149

8250
'@typescript-eslint/no-unused-vars': [
8351
'warn',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"documentation": "^14.0.3",
6464
"eslint": "^9.9.0",
6565
"eslint-plugin-import": "^2.31.0",
66-
"eslint-plugin-unicorn": "^60.0.0",
66+
"eslint-plugin-unicorn": "^61.0.2",
6767
"prettier": "^3.3.3",
6868
"rimraf": "^6.0.1",
6969
"standard-changelog": "^7.0.1",

0 commit comments

Comments
 (0)