-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
37 lines (37 loc) · 928 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
import { allFileTypes, tsEslintConfig, vueConfig } from "@alanscodelog/eslint-config"
export default tsEslintConfig(
// https://github.com/AlansCodeLog/eslint-config
...vueConfig,
{
files: [`**/*.{${allFileTypes.join(",")}}`],
languageOptions: {
parserOptions: {
// was causing issues, went back to old usage of separate eslint config
// eslint-disable-next-line camelcase
EXPERIMENTAL_useProjectService: false,
project: "./tsconfig.eslint.json",
tsconfigRootDir: import.meta.dirname,
},
},
},
{
files: [`**/*.stories.*`],
rules: {
"@typescript-eslint/explicit-function-return-type": "off"
}
},
{
files: [`**/*.vue`],
rules: {
"jsdoc/check-tag-names": ["warn", {
definedTags: [
"vue-ignore",
]
}]
}
}
// RULE LINKS
// Eslint: https://eslint.org/docs/rules/
// Typescript: https://typescript-eslint.io/rules/
// Vue: https://eslint.vuejs.org/rules/
)