-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.eslintrc.json
80 lines (80 loc) · 2.57 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
{
"root": true,
"env": {
"node": true,
"browser": true,
"vue/setup-compiler-macros": true
},
"extends": [
"plugin:vue/vue3-strongly-recommended",
"eslint:recommended",
/** @see https://github.com/typescript-eslint/typescript-eslint/tree/master/src/eslint-plugin#recommended-configs */
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"parser": "@typescript-eslint/parser",
"ecmaVersion": 12,
"sourceType": "module",
"project": ["tsconfig.json"],
"extraFileExtensions": [".vue", ".svelte"]
},
"plugins": ["vue","svelte3", "@typescript-eslint"],
"overrides": [
{
"files": ["*.svelte"],
"processor": "svelte3/svelte3"
},
{
"files": ["*.vue"],
"parser": "vue-eslint-parser",
"rules": {
"vue/html-indent": ["error", 4],
"vue/singleline-html-element-content-newline": ["off"],
"vue/attributes-order": ["error", {
"order": [
"DEFINITION",
"LIST_RENDERING",
"CONDITIONALS",
"RENDER_MODIFIERS",
"GLOBAL",
"UNIQUE",
"TWO_WAY_BINDING",
"OTHER_DIRECTIVES",
"OTHER_ATTR",
"EVENTS",
"CONTENT"
]
}]
}
}
],
"ignorePatterns": ["types/env.d.ts", "node_modules/**", "**/dist/**", "**/components.d.ts", "**/*.css.d.ts"],
"settings": {
"svelte3/typescript": true // load TypeScript as peer dependency
},
"rules": {
"svelte/unused-export-let": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/consistent-type-imports": "error",
"semi": ["error", "always"],
"comma-dangle": ["error", "always-multiline"],
"quotes": ["error", "single"],
"no-undef": "error",
"indent": ["error", 4],
"no-console": "error",
"no-debugger": "error",
"vue/valid-template-root": "off",
"vue/max-attributes-per-line": "off"
},
"globals": {
"CSSModuleClasses": true
}
}