-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
128 lines (124 loc) · 5.02 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
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
121
122
123
124
125
126
127
128
/*
👋 Hi! This file was autogenerated by tslint-to-eslint-config.
https://github.com/typescript-eslint/tslint-to-eslint-config
It represents the closest reasonable ESLint configuration to this
project's original TSLint configuration.
We recommend eventually switching this configuration to extend from
the recommended rulesets in typescript-eslint.
https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md
Happy linting! 💖
*/
module.exports = {
"env": {
"browser": true,
"es6": true,
"node": false
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vue/vue3-recommended",
"@vue/eslint-config-standard-with-typescript",
"plugin:prettier/recommended"
],
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"project": "tsconfig.json",
"sourceType": "module",
"extraFileExtensions": [ ".vue" ]
},
"plugins": [
"eslint-plugin-import",
"eslint-plugin-jsdoc",
"eslint-plugin-prefer-arrow",
"eslint-plugin-promise",
"eslint-plugin-node",
"eslint-plugin-vue",
"@typescript-eslint",
"vue",
"prettier"
],
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/adjacent-overload-signatures": "warn",
"@typescript-eslint/array-type": [
"warn",
{
"default": "array-simple"
}
],
"@typescript-eslint/ban-types": [
"warn",
{
"types": {
"Object": {
"message": "Avoid using the `Object` type. Did you mean `object`?"
},
"Function": {
"message": "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
},
"Boolean": {
"message": "Avoid using the `Boolean` type. Did you mean `boolean`?"
},
"Number": {
"message": "Avoid using the `Number` type. Did you mean `number`?"
},
"String": {
"message": "Avoid using the `String` type. Did you mean `string`?"
},
"Symbol": {
"message": "Avoid using the `Symbol` type. Did you mean `symbol`?"
}
}
}
],
"@typescript-eslint/consistent-type-assertions": "warn",
"@typescript-eslint/consistent-type-definitions": "warn",
"@typescript-eslint/dot-notation": "warn",
"@typescript-eslint/explicit-member-accessibility": [
"warn",
{
"accessibility": "explicit"
}
],
"@typescript-eslint/member-delimiter-style": [
"warn",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/quotes": [
"warn",
"double"
],
indent: [
2,
2,
{ SwitchCase: 1}
],
'no-console': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'vue/multi-word-component-names': 'off', // TODO: address this rule and remove this override
'vue/no-deprecated-router-link-tag-prop': 'off', // TODO: address this rule and remove this override
'@typescript-eslint/explicit-function-return-type': 'off', // TODO: address this rule and remove this override
'@typescript-eslint/prefer-nullish-coalescing': 'off', // TODO: address this rule and remove this override
'@typescript-eslint/restrict-plus-operands': 'off', // TODO: address this rule and remove this override
'@typescript-eslint/strict-boolean-expressions': 'off', // TODO: address this rule and remove this override
'@typescript-eslint/method-signature-style': 'off', // TODO: address this rule and remove this override
'@typescript-eslint/promise-function-async': 'off', // TODO: address this rule and remove this override
'@typescript-eslint/no-floating-promises': 'off', // TODO: address this rule and remove this override
'@typescript-eslint/return-await': 'off', // TODO: address this rule and remove this override
'@typescript-eslint/no-misused-promises': 'off', // TODO: address this rule and remove this override
'@typescript-eslint/no-dynamic-delete': 'off', // TODO: address this rule and remove this override
'@typescript-eslint/return-await': 'off', // TODO: address this rule and remove this override
},
};