-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
47 lines (46 loc) · 1.57 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:perfectionist/recommended-natural"
],
"rules": {
"prettier/prettier": ["warn", {
"arrowParens": "avoid",
"bracketSpacing": true,
"embeddedLanguageFormatting": "auto",
"endOfLine": "auto",
"printWidth": 120,
"quoteProps": "consistent",
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5"
}, { "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"
},
"plugins": ["@typescript-eslint", "perfectionist" ]
}