-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslint.config.js
34 lines (32 loc) · 914 Bytes
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import globals from 'globals';
import js from '@eslint/js';
/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
{
languageOptions: {
globals: {
...globals.browser,
...globals.commonjs,
...globals.jquery,
},
parserOptions: {
...js.configs.recommended.parserOptions,
ecmaVersion: 'latest',
ecmaFeatures: {
impliedStrict: true,
},
sourceType: 'module',
},
},
rules: {
...js.configs.recommended.rules,
indent: ['error', 4],
quotes: ['error', 'single', {
avoidEscape: true,
allowTemplateLiterals: true
}],
semi: [2, 'always'],
'no-unused-vars': 'off',
},
}
];