Skip to content

Commit a2537cd

Browse files
committed
eslint.config nits
1 parent b34bce9 commit a2537cd

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.oxlintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"no-extend-native": "off",
1515
"no-new": "off",
1616
"no-self-assign": "off",
17+
"no-undef": "off",
1718
"no-unused-vars": "off"
1819
}
1920
}

eslint.config.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ module.exports = [
8282
// The n/no-unpublished-bin rule does does not support non-trivial glob
8383
// patterns used in package.json "files" fields. In those cases we simplify
8484
// the glob patterns used.
85-
'n/no-unpublished-bin': ['error'],
86-
'n/no-unsupported-features/es-builtins': ['error'],
87-
'n/no-unsupported-features/es-syntax': ['error'],
85+
'n/no-unpublished-bin': 'error',
86+
'n/no-unsupported-features/es-builtins': 'error',
87+
'n/no-unsupported-features/es-syntax': 'error',
8888
'n/no-unsupported-features/node-builtins': [
8989
'error',
9090
{
@@ -93,7 +93,7 @@ module.exports = [
9393
version: constants.maintainedNodeVersions.previous
9494
}
9595
],
96-
'n/prefer-node-protocol': ['error']
96+
'n/prefer-node-protocol': 'error'
9797
}
9898
},
9999
{
@@ -104,19 +104,20 @@ module.exports = [
104104
},
105105
rules: {
106106
...js.configs.recommended.rules,
107-
'no-await-in-loop': ['error'],
108-
'no-control-regex': ['error'],
107+
'no-await-in-loop': 'error',
108+
'no-control-regex': 'error',
109109
'no-empty': ['error', { allowEmptyCatch: true }],
110-
'no-new': ['error'],
111-
'no-proto': ['error'],
110+
'no-new': 'error',
111+
'no-proto': 'error',
112+
'no-undef': 'error',
112113
'no-unused-vars': [
113114
'error',
114115
{ argsIgnorePattern: '^_|^this$', ignoreRestSiblings: true }
115116
],
116117
'no-warning-comments': ['warn', { terms: ['fixme'] }],
117-
'sort-destructure-keys/sort-destructure-keys': ['error'],
118+
'sort-destructure-keys/sort-destructure-keys': 'error',
118119
'sort-imports': ['error', { ignoreDeclarationSort: true }],
119-
'unicorn/consistent-function-scoping': ['error']
120+
'unicorn/consistent-function-scoping': 'error'
120121
}
121122
}
122123
]

0 commit comments

Comments
 (0)