forked from ShadowySupercode/gitcitadel-online
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
44 lines (44 loc) · 1.17 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
42
43
44
// eslint-plugin-svelte
// https://sveltejs.github.io/eslint-plugin-svelte/user-guide/
{
"root": true,
"extends": [
// add more generic rule sets here, such as:
// 'eslint:recommended',
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:svelte/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
// ...
"project": "./tsconfig.json",
"extraFileExtensions": [".svelte"] // This is a required setting in `@typescript-eslint/parser` v4.24.0.
},
"plugins": ["@typescript-eslint", "prettier"],
"rules": {
"no-console": 1,
"prettier/prettier": 2,
"comma-dangle": [2, "always-multiline"],
"no-alert": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
]
// 'svelte/rule-name': 'error'
},
"overrides": [
{
"files": ["*.svelte"],
"parser": "svelte-eslint-parser",
// Parse the `<script>` in `.svelte` as TypeScript by adding the following configuration.
"parserOptions": {
"parser": "@typescript-eslint/parser"
}
}
]
}