-
Notifications
You must be signed in to change notification settings - Fork 17
/
.eslintrc
41 lines (41 loc) · 1.05 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
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:import/recommended", "prettier"],
"overrides": [
{
"files": "*.vue",
"parser": "vue-eslint-parser",
"extends": [
"plugin:vue/vue3-recommended",
"eslint:recommended",
"plugin:import/recommended",
"prettier"
],
"plugins": ["vue", "@typescript-eslint", "simple-import-sort"],
"rules": {
// FIXME: Causes problems with imports from Vue
"import/named": "off"
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": "latest",
"sourceType": "module",
"extraFileExtensions": [".vue"]
},
"plugins": ["@typescript-eslint", "simple-import-sort"],
"rules": {
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"import/first": "error",
"import/named": "off",
"import/newline-after-import": "error",
"import/no-duplicates": "error"
}
}