Skip to content

Commit aaf53a8

Browse files
committed
update to eslint.config.mjs
1 parent 2fdfda3 commit aaf53a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eslint.config.js renamed to eslint.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ import tseslint from '@typescript-eslint/eslint-plugin';
33
import tsParser from '@typescript-eslint/parser';
44
import noOnlyTests from 'eslint-plugin-no-only-tests';
55
import prettier from 'eslint-config-prettier';
6+
import js from '@eslint/js';
67

78
export default [
9+
js.configs.recommended,
810
{
911
languageOptions: {
1012
parser: tsParser,
@@ -13,7 +15,7 @@ export default [
1315
sourceType: 'module',
1416
},
1517
globals: {
16-
...eslint.configs.node.globals,
18+
...js.configs.recommended.languageOptions.globals,
1719
mocha: true,
1820
},
1921
},

0 commit comments

Comments
 (0)