-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
50 lines (49 loc) · 1.44 KB
/
.eslintrc.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
47
48
49
50
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'eslint:recommended',
'@vue/eslint-config-typescript/recommended',
'plugin:vue/vue3-recommended',
],
parserOptions: {
parser: "@typescript-eslint/parser",
ecmaVersion: 2021,
},
rules: {
'no-console': process.env.NODE_ENV === 'production'
? 'warn'
: 'off',
'no-debugger': process.env.NODE_ENV === 'production'
? 'warn'
: 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'vue/component-definition-name-casing': 'off',
'vue/html-closing-bracket-newline': 'off',
'vue/max-attributes-per-line': 'off',
'vue/multi-word-component-names': 'off',
'vue/multiline-html-element-content-newline': 'off',
'vue/require-default-prop': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/valid-next-tick': 'off',
'vue/component-tags-order': ['error', {
order: ['template', 'style', 'script'],
}],
'space-before-function-paren': ['error', 'never'],
semi: ['error', 'always'],
camelcase: 'off',
'comma-dangle': [
'error',
'always-multiline',
],
indent: ['error', 2, { CallExpression: { arguments: 'first' }, SwitchCase: 1 }],
'no-return-assign': ['error', 'except-parens'],
eqeqeq: 'off',
},
};