-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslint.config.mjs
41 lines (40 loc) · 1.09 KB
/
eslint.config.mjs
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
35
36
37
38
39
40
41
import pluginJs from '@eslint/js';
import globals from 'globals';
export default [
{
files: ['**/*.js'],
ignores: [
'assets/js/index.js',
'assets/js/katex.js',
'assets/js/vendor',
'node_modules'
],
languageOptions: {
globals: {
...globals.browser,
...globals.commonjs,
...globals.es6,
...globals.node,
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
ecmaVersion: 2018,
sourceType: 'module'
}
},
{
...pluginJs.configs.recommended,
rules: {
'no-console': 0,
'quotes': [
'error',
'double',
{ avoidEscape: true, allowTemplateLiterals: false }
],
'semi': [`error`, `always`],
'multiline-ternary': [`error`, `always-multiline`],
'no-multi-spaces': [`error`],
'array-element-newline': ['error', 'consistent']
}
}
];