-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
96 lines (96 loc) · 2.31 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
{
"env": {
"browser": true,
"es2021": true
},
"parser": "vue-eslint-parser",
"plugins": ["eslint-plugin-import", "vue"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:vue/vue3-recommended",
"plugin:vue-pug/vue3-recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"ignorePatterns": ["auto-imports.d.ts", "components.d.ts", "fifteen-sdk/*"],
"overrides": [
{
"files": ["src/components/views/**/*.vue"],
"rules": {
"vue/multi-word-component-names": 0
}
},
{
"files": ["**/*.ts", "**/*.d.ts"],
"parser": "@typescript-eslint/parser",
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".d.ts"]
}
},
"rules": {
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "variableLike",
"format": ["camelCase", "UPPER_CASE", "PascalCase"],
"leadingUnderscore": "allowSingleOrDouble"
},
{
"selector": ["typeLike", "enumMember"],
"format": ["PascalCase"]
}
]
}
}
],
"parserOptions": {
"parser": {
"ts": "@typescript-eslint/parser",
"<template>": "espree"
}
},
"rules": {
"@typescript-eslint/no-unused-vars": [
"warn",
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }
],
"vue/component-tags-order": [
"error",
{
"order": ["template", "style", "script"]
}
],
"vue/no-v-html": "off",
"import/order": [
1,
{
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index",
"object",
"unknown",
"type"
],
"pathGroups": [{ "pattern": "@@/**/*", "group": "internal" }],
"pathGroupsExcludedImportTypes": [],
"newlines-between": "always"
}
],
"@typescript-eslint/explicit-function-return-type": [
1,
{
"allowExpressions": true,
"allowTypedFunctionExpressions": true
}
],
"import/no-unresolved": "off",
"vue/require-toggle-inside-transition": "off",
"curly": ["warn", "multi-line", "consistent"]
}
}