-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.eslintrc.cjs
43 lines (43 loc) · 1.07 KB
/
.eslintrc.cjs
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
module.exports = {
parser: 'vue-eslint-parser',
parserOptions: {
ecmaVersion: 2020,
parser: {
ts: '@typescript-eslint/parser',
},
},
env: {
node: true,
browser: true,
commonjs: true,
jest: true,
es6: true,
},
extends: ['plugin:vue/vue3-recommended'],
ignorePatterns: ['dist/', 'node_modules/', '*.json', '.temp/', 'cache/'],
rules: {
// Rules to ignore
'vue/no-setup-props-destructure': 'off',
'vue/multi-word-component-names': 'off',
'no-case-declarations': 'off',
'no-console': 'off',
'no-control-regex': 'off',
'no-empty': 'off',
'no-eq-null': 'off',
'no-prototype-builtins': 'off',
'no-useless-escape': 'off',
'no-unused-vars': 'off',
'guard-for-in': 'off',
// Rules to warn
indent: ['warn', 2, { SwitchCase: 1 }],
// Rules to error
curly: 'error',
'semi-spacing': 'error',
'no-unneeded-ternary': 'error',
'no-useless-concat': 'error',
'no-useless-return': 'error',
'no-multi-spaces': 'error',
'no-alert': 'error',
'no-eval': 'error',
},
};