-
Notifications
You must be signed in to change notification settings - Fork 114
/
.eslintrc.cjs
65 lines (65 loc) · 2.14 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:vue/vue3-recommended',
'plugin:@typescript-eslint/recommended',
// "plugin:@typescript-eslint/recommended-requiring-type-checking",
'@vue/typescript/recommended',
],
plugins: ['@typescript-eslint'],
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module',
ecmaVersion: 2022,
tsconfigRootDir: __dirname,
project: ['./tsconfig.json', './tsconfig.node.json'],
extraFileExtensions: ['.vue'],
},
root: true,
rules: {
'no-console': 'off',
indent: 'off',
'linebreak-style': ['warn', 'unix'],
quotes: ['warn', 'single'],
semi: ['warn', 'never'],
'no-const-assign': 'warn',
'no-this-before-super': 'warn',
'no-undef': 'error',
'no-unreachable': 'error',
'no-unused-vars': 'off',
'constructor-super': 'warn',
'valid-typeof': 'warn',
'no-extra-semi': 'warn',
'no-return-await': 'error',
'vue/multi-word-component-names': 'off',
'vue/max-attributes-per-line': 'off',
'vue/html-indent': 'off',
'vue/first-attribute-linebreak': 'off',
'vue/closing-bracket-newline': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/html-closing-bracket-newline': 'off',
'@typescript-eslint/ban-ts-comment': [
'error',
{
'ts-expect-error': 'allow-with-description',
'ts-ignore': 'allow-with-description',
'ts-nocheck': 'allow-with-description',
'ts-check': 'allow-with-description',
},
],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-misused-promises': 'off',
},
globals: {
__BUILD_TIMESTAMP__: 'readonly',
},
}