Skip to content

Commit 7a494d0

Browse files
committed
ci: correct ESLint v9 configuration
1 parent 8bf72fc commit 7a494d0

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

eslint.config.js

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
1-
export default [
1+
import { defineConfig } from 'eslint/config';
2+
import js from '@eslint/js';
3+
import globals from 'globals';
4+
5+
export default defineConfig([
6+
js.configs.recommended,
27
{
3-
files: ['_javascript/**/*.js']
8+
languageOptions: {
9+
globals: {
10+
...globals.browser,
11+
ClipboardJS: 'readonly',
12+
GLightbox: 'readonly',
13+
Theme: 'readonly',
14+
dayjs: 'readonly',
15+
mermaid: 'readonly',
16+
tocbot: 'readonly',
17+
importScripts: 'readonly',
18+
swconf: 'readonly'
19+
}
20+
},
21+
rules: {
22+
semi: ['error', 'always'],
23+
quotes: ['error', 'single']
24+
}
425
}
5-
];
26+
]);

0 commit comments

Comments
 (0)