-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
62 lines (60 loc) · 1.85 KB
/
.eslintrc.json
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
55
56
57
58
59
60
61
62
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"root": true,
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:perfectionist/recommended-natural"
],
"settings": {
"svelte3/typescript": "typescript"
},
"rules": {
"prettier/prettier": [
"warn",
{
"arrowParens": "avoid",
"bracketSpacing": true,
"embeddedLanguageFormatting": "auto",
"endOfLine": "auto",
"printWidth": 120,
"quoteProps": "consistent",
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": true,
"plugins": ["prettier-plugin-svelte"],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
},
{ "fileInfoOptions": { "withNodeModules": false } }
],
"@typescript-eslint/no-explicit-any": "off"
// "vuln-regex-detector/no-vuln-regex": 2
// "quotes": ["warn", "double"],
// "max-len": ["warn", { "code": 120, "ignoreComments": true, "ignoreUrls": true, "ignoreStrings": true, "ignoreTemplateLiterals": true }],
// "no-trailing-spaces": "error",
// "arrow-parens": ["warn", "always"],
// "array-bracket-newline": ["warn", "consistent"],
// "semi": ["warn", "always"],
// "comma-dangle": ["warn", "always-multiline"],
// "no-multiple-empty-lines": ["warn", { "max": 1 }],
// "padded-blocks": ["warn", "never"],
// "function-paren-newline": ["warn", "multiline-arguments"],
// "newline-per-chained-call": ["warn", { "ignoreChainWithDepth": 2 }],
// "indent": ["warn", 2]
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"ignorePatterns": ["*.cjs"],
// "overrides": [{ "files": ["*.svelte"], "processor": "svelte3/svelte3", "env": { "es6": true} }],
"plugins": ["@typescript-eslint", "perfectionist", "svelte3"]
}