We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bf72fc commit 7a494d0Copy full SHA for 7a494d0
eslint.config.js
@@ -1,5 +1,26 @@
1
-export default [
+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,
7
{
- 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
25
}
-];
26
+]);
0 commit comments