-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
42 lines (42 loc) · 1.12 KB
/
.eslintrc.cjs
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
module.exports = {
plugins: [
"@typescript-eslint/eslint-plugin",
"eslint-plugin-tsdoc",
"jsdoc",
],
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:svelte/recommended",
"plugin:svelte/prettier",
"eslint-config-prettier",
"prettier",
"plugin:jsdoc/recommended-typescript-error",
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.json",
extraFileExtensions: [".svelte"],
},
overrides: [
{
files: ["*.svelte"],
parser: "svelte-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
},
},
],
settings: {
"svelte/typescript": import("typescript"),
},
rules: {
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/explicit-function-return-type": [
"error",
{ allowExpressions: true },
],
"svelte/no-at-html-tags": "off",
"jsdoc/check-syntax": 2,
"jsdoc/check-param-names": 2,
},
};