-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
103 lines (90 loc) · 2.61 KB
/
.eslintrc
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
{
"root": true,
"env": {
"browser": true,
"es2021": true,
"node": true
},
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": "latest",
"parser": "@typescript-eslint/parser",
"sourceType": "module",
"extraFileExtensions": [".vue"]
},
"settings": {
"import/resolver": {
"typescript": {}
}
},
"plugins": ["vue", "@typescript-eslint", "sonarjs", "promise", "vuejs-accessibility", "total-functions"],
"extends": [
"eslint:recommended",
"plugin:vue/vue3-recommended",
// https://github.com/vue-a11y/eslint-plugin-vuejs-accessibility
"plugin:vuejs-accessibility/recommended",
// https://github.com/SonarSource/eslint-plugin-sonarjs
"plugin:sonarjs/recommended",
// https://github.com/xjamundx/eslint-plugin-promise
"plugin:promise/recommended",
// https://github.com/freaktechnik/eslint-plugin-array-func
"plugin:array-func/all",
// https://github.com/import-js/eslint-plugin-import
"plugin:import/recommended",
"plugin:import/typescript",
// https://github.com/danielnixon/eslint-plugin-total-functions
"plugin:total-functions/all",
"plugin:@typescript-eslint/recommended",
"@nuxtjs/eslint-config-typescript",
"prettier"
],
"rules": {
// turned off because the rule returns false positives, e.g. select
"vuejs-accessibility/label-has-for": "off",
// destructuring became possible with reactivity transform
"vue/no-setup-props-destructure": "off",
"capitalized-comments": "off",
"prefer-promise-reject-errors": "off",
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/explicit-module-boundary-types": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"no-console": "warn",
"no-debugger": "warn",
"total-functions/no-unsafe-readonly-mutable-assignment": "off",
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal",
"sibling",
"parent",
"index",
"object",
"type"
],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
]
},
"overrides": [
{
"files": [
"platform/framework/components/**/*.vue",
"platform/framework/pages/**/*.vue",
"platform/framework/layouts/**/*.vue",
"platform/framework/app.vue",
"platform/framework/error.vue",
"tools/**/*.vue"
],
"rules": {
"@typescript-eslint/no-unused-vars": "off"
}
}
]
}