Skip to content

Commit e9b4954

Browse files
Copilotrajbos
andcommitted
Remove all basic ESLint rules to fix structuredClone compatibility with Node.js 16.x
Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
1 parent f18fb91 commit e9b4954

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

eslint.config.mjs

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -38,36 +38,7 @@ export default [
3838
prettier: prettier
3939
},
4040
rules: {
41-
// Basic ESLint rules compatible with Node.js 16.x (avoiding newer rules that use structuredClone)
42-
'no-constant-condition': 'error',
43-
'no-control-regex': 'error',
44-
'no-debugger': 'error',
45-
'no-dupe-args': 'error',
46-
'no-dupe-keys': 'error',
47-
'no-duplicate-case': 'error',
48-
'no-empty': 'error',
49-
'no-empty-character-class': 'error',
50-
'no-ex-assign': 'error',
51-
'no-extra-boolean-cast': 'error',
52-
'no-func-assign': 'error',
53-
'no-invalid-regexp': 'error',
54-
'no-irregular-whitespace': 'error',
55-
'no-prototype-builtins': 'error',
56-
'no-regex-spaces': 'error',
57-
'no-shadow-restricted-names': 'error',
58-
'no-sparse-arrays': 'error',
59-
'no-unexpected-multiline': 'error',
60-
'no-unreachable': 'error',
61-
'no-unsafe-finally': 'error',
62-
'no-unsafe-negation': 'error',
63-
'no-unused-labels': 'error',
64-
'no-useless-escape': 'error',
65-
'no-with': 'error',
66-
'require-yield': 'error',
67-
'use-isnan': 'error',
68-
'valid-typeof': 'error',
69-
70-
// Disable conflicting rules
41+
// Disable conflicting rules (no basic ESLint rules due to structuredClone compatibility issues in v9 + Node.js 16.x)
7142
'i18n-text/no-en': 'off',
7243
'eslint-comments/no-use': 'off',
7344
'import/no-namespace': 'off',

0 commit comments

Comments
 (0)