-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
46 lines (42 loc) · 1013 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
35
36
37
38
39
40
41
42
43
44
45
46
import js from '@eslint/js';
import ts from 'typescript-eslint';
import vue from 'eslint-plugin-vue';
export default [
{
languageOptions: {
ecmaVersion: 'latest',
},
},
// js
js.configs.recommended,
// ts
...ts.configs.recommended,
// vue
...vue.configs['flat/recommended'],
{
languageOptions: {
parserOptions: {
parser: ts.parser,
},
},
},
{
rules: {
'no-useless-escape': 'off',
eqeqeq: 'error',
camelcase: 'error',
'vue/eqeqeq': 'error',
'no-async-promise-executor': 'error',
'no-await-in-loop': 'error',
'no-promise-executor-return': 'error',
'require-atomic-updates': 'error',
'max-nested-callbacks': ['warn', 3],
'no-return-await': 'error',
'prefer-promise-reject-errors': 'error',
'prefer-const': 'error',
'vue/singleline-html-element-content-newline': 'off',
'vue/html-self-closing': 'off',
'vue/max-attributes-per-line': 'off',
},
},
];