-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.json
120 lines (120 loc) · 3.83 KB
/
.eslintrc.json
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"root": true,
"env": {
"browser": true,
"es6": true
},
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:vue/vue3-recommended",
"prettier"
],
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"project": "tsconfig.json",
"extraFileExtensions": [".vue"],
"sourceType": "module"
},
"ignorePatterns": ["dist/", "*.config.js", "node_modules/"],
"plugins": ["@typescript-eslint", "unused-imports"],
"rules": {
"indent": "off",
"semi": "off",
"max-len": "off",
"no-restricted-globals": "off",
"default-case": "off",
"no-undef": "off",
"no-restricted-syntax": "off",
"no-nested-ternary": "off",
"no-use-before-define": "off",
"prefer-destructuring": "off",
"max-classes-per-file": "off",
"class-methods-use-this": "off",
"dot-notation": "off",
"no-else-return": "off",
"import/no-named-default": "off",
"prefer-template": "off",
"no-underscore-dangle": "off",
"no-confusing-arrow": "off",
"new-cap": "off",
"no-plusplus": "off",
"implicit-arrow-linebreak": "off",
"lines-between-class-members": "off",
"quote-props": "off",
"arrow-body-style": "off",
"no-constant-condition": "off",
"no-param-reassign": "off",
"nonblock-statement-body-position": "off",
"operator-linebreak": "off",
"spaced-comment": "warn",
"no-control-regex": "off",
"eqeqeq": "error",
"global-require": "off",
"import/first": "off",
"import/no-unresolved": "off",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"import/extensions": "off",
"unused-imports/no-unused-imports-ts": "warn",
"vue/custom-event-name-casing": ["warn", "kebab-case"],
"vue/no-deprecated-functional-template": "off",
"vue/this-in-template": "error",
"vue/require-default-prop": "off",
"vue/component-tags-order": [
"warn",
{
"order": ["template", "script", "style"]
}
],
"vue/attribute-hyphenation": "off",
"vue/no-v-for-template-key-on-child": "off",
"vue/multi-word-component-names": "off",
"no-console": [
"warn",
{
"allow": ["warn", "error", "trace", "assert"]
}
],
"no-void": "off",
"no-bitwise": "off",
"no-continue": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-unnecessary-condition": "off",
// Used for `require`-ing resources.
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-empty-interface": "off",
// Buggy.
"@typescript-eslint/restrict-plus-operands": "off",
// Also buggy.
"@typescript-eslint/no-unsafe-argument": "off",
// Buggy too.
"@typescript-eslint/no-unnecessary-type-assertion": "off",
// Errors out on `$t` usage.
"@typescript-eslint/no-base-to-string": "off",
// Buggy.
"@typescript-eslint/no-redundant-type-constituents": "off"
},
"overrides": [
{
"files": ["*.vue"],
"rules": {}
}
]
}