Skip to content

Commit f18fb91

Browse files
Copilotrajbos
andcommitted
Remove newer ESLint rules that require structuredClone for Node.js 16.x compatibility
Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
1 parent bee7e24 commit f18fb91

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

eslint.config.mjs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ export default [
3838
prettier: prettier
3939
},
4040
rules: {
41-
// Basic ESLint recommended rules (manually selected to avoid structuredClone dependency)
42-
'no-constant-binary-expression': 'error',
41+
// Basic ESLint rules compatible with Node.js 16.x (avoiding newer rules that use structuredClone)
4342
'no-constant-condition': 'error',
4443
'no-control-regex': 'error',
4544
'no-debugger': 'error',
@@ -53,8 +52,6 @@ export default [
5352
'no-func-assign': 'error',
5453
'no-invalid-regexp': 'error',
5554
'no-irregular-whitespace': 'error',
56-
'no-loss-of-precision': 'error',
57-
'no-misleading-character-class': 'error',
5855
'no-prototype-builtins': 'error',
5956
'no-regex-spaces': 'error',
6057
'no-shadow-restricted-names': 'error',
@@ -64,7 +61,6 @@ export default [
6461
'no-unsafe-finally': 'error',
6562
'no-unsafe-negation': 'error',
6663
'no-unused-labels': 'error',
67-
'no-useless-catch': 'error',
6864
'no-useless-escape': 'error',
6965
'no-with': 'error',
7066
'require-yield': 'error',

0 commit comments

Comments
 (0)