Skip to content

Commit bee7e24

Browse files
Copilotrajbos
andcommitted
Fix structuredClone compatibility issue for Node.js 16.x
Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
1 parent d52195f commit bee7e24

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

eslint.config.mjs

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,38 @@ export default [
3838
prettier: prettier
3939
},
4040
rules: {
41-
...js.configs.recommended.rules,
41+
// Basic ESLint recommended rules (manually selected to avoid structuredClone dependency)
42+
'no-constant-binary-expression': 'error',
43+
'no-constant-condition': 'error',
44+
'no-control-regex': 'error',
45+
'no-debugger': 'error',
46+
'no-dupe-args': 'error',
47+
'no-dupe-keys': 'error',
48+
'no-duplicate-case': 'error',
49+
'no-empty': 'error',
50+
'no-empty-character-class': 'error',
51+
'no-ex-assign': 'error',
52+
'no-extra-boolean-cast': 'error',
53+
'no-func-assign': 'error',
54+
'no-invalid-regexp': 'error',
55+
'no-irregular-whitespace': 'error',
56+
'no-loss-of-precision': 'error',
57+
'no-misleading-character-class': 'error',
58+
'no-prototype-builtins': 'error',
59+
'no-regex-spaces': 'error',
60+
'no-shadow-restricted-names': 'error',
61+
'no-sparse-arrays': 'error',
62+
'no-unexpected-multiline': 'error',
63+
'no-unreachable': 'error',
64+
'no-unsafe-finally': 'error',
65+
'no-unsafe-negation': 'error',
66+
'no-unused-labels': 'error',
67+
'no-useless-catch': 'error',
68+
'no-useless-escape': 'error',
69+
'no-with': 'error',
70+
'require-yield': 'error',
71+
'use-isnan': 'error',
72+
'valid-typeof': 'error',
4273

4374
// Disable conflicting rules
4475
'i18n-text/no-en': 'off',

0 commit comments

Comments
 (0)