Skip to content

Commit 69c2e17

Browse files
committed
tools: update eslint config
1 parent 34399fc commit 69c2e17

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

eslint.config.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,9 @@ export default [
8585
js.configs.recommended,
8686
jsdoc.configs['flat/recommended'],
8787
{
88-
files: ['**/*.{js,cjs}'],
88+
files: ['**/*.js'],
8989
languageOptions: {
90-
// The default is `commonjs` but it's not supported by the Babel parser.
91-
sourceType: 'script',
90+
sourceType: 'commonjs',
9291
},
9392
},
9493
{
@@ -256,6 +255,8 @@ export default [
256255

257256
// ESLint recommended rules that we disable.
258257
'no-inner-declarations': 'off',
258+
'no-shadow-restricted-names': 'off',
259+
'no-useless-assignment': 'off',
259260

260261
// JSDoc rules.
261262
'jsdoc/require-jsdoc': 'off',

0 commit comments

Comments
 (0)