-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
46 lines (46 loc) · 1.39 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
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:@typescript-eslint/recommended',
'@vue/eslint-config-typescript',
'plugin:vue/recommended',
'prettier',
'prettier/vue',
'prettier/@typescript-eslint',
],
plugins: ['@typescript-eslint'],
rules: {
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/camelcase': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/explicit-member-accessibility': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-explicit-any': 1,
'@typescript-eslint/no-inferrable-types': 1,
'@typescript-eslint/no-object-literal-type-assertion': 0,
'@typescript-eslint/no-var-requires': 0,
'array-bracket-spacing': 0,
camelcase: 0,
curly: 0,
'import/named': 0,
'no-case-declarations': 1,
'no-extend-native': 0,
'no-undef': 0,
'no-unused-vars': 0,
'no-use-before-define': 1,
'no-var-requires': 0,
'promise/always-return': 0,
'require-await': 0,
semi: [2, 'never'],
'space-before-function-paren': 0,
'vue/html-self-closing': 0,
'vue/max-attributes-per-line': 0,
'vue/no-v-html': 0,
'vue/one-component-per-file': 0,
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
},
}