-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy patheslint.config.js
54 lines (49 loc) · 934 Bytes
/
eslint.config.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
/* eslint-env node */
import js from "@eslint/js";
import ts from "typescript-eslint";
import vue from "eslint-plugin-vue";
import prettier from "eslint-plugin-prettier/recommended";
export default [
{
ignores: ["dist/"],
},
// javascript
js.configs.recommended,
{
rules: {
// "no-unused-vars": "off",
// "no-undef": "off",
},
},
// typescript
...ts.configs.recommended,
{
rules: {
// "@typescript-eslint/no-unused-vars": "warn",
// "@typescript-eslint/no-explicit-any": "warn",
},
},
// vue
...vue.configs["flat/recommended"],
{
files: ["*.vue", "**/*.vue"],
languageOptions: {
parserOptions: {
parser: ts.parser,
},
},
},
{
files: ["src/icons/*.vue"],
rules: {
"vue/multi-word-component-names": "off",
},
},
// prettier
prettier,
{
rules: {
"prettier/prettier": "warn",
},
},
];