Skip to content

Commit 7c5704d

Browse files
committed
Upgrade eslint to 10.0.0
1 parent e16160a commit 7c5704d

3 files changed

Lines changed: 148 additions & 289 deletions

File tree

eslint.config.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,18 @@ import stylisticJs from '@stylistic/eslint-plugin';
22

33
import globals from 'globals';
44

5-
import js from "@eslint/js"
5+
import { defineConfig } from 'eslint/config';
66

7-
export default [
8-
js.configs.recommended,
7+
export default defineConfig([
98
{
109
languageOptions: {
1110
ecmaVersion: 'latest',
1211
sourceType: 'module',
1312
globals: {
14-
...globals.browser,
15-
...globals.node,
16-
MathJax: 'readonly'
17-
}
13+
...globals.browser,
14+
...globals.node,
15+
MathJax: 'readonly'
16+
}
1817
},
1918
plugins: {
2019
'@stylistic/js': stylisticJs
@@ -139,5 +138,5 @@ export default [
139138
'@stylistic/js/template-curly-spacing': 'error'
140139
}
141140
}
142-
];
141+
]);
143142

0 commit comments

Comments
 (0)