-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy path.eslintrc
35 lines (35 loc) · 1.06 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
{
"env": { "es2021": true },
"plugins": ["import"],
"extends": ["eslint:recommended"],
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"ignorePatterns": ["@types/", "node_modules/"],
"rules": {
"quotes": ["error", "single"],
"no-tabs": "off",
"indent": ["error", "tab"],
"semi": ["error", "never"],
"arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }],
"no-trailing-spaces": "error",
"comma-dangle": ["error", "always-multiline"],
"newline-before-return": "error",
"no-underscore-dangle": ["error", { "allowAfterThis": true, "allowAfterSuper": true }],
"no-unused-vars": "error",
"eol-last": ["error", "always"],
"strict": "off",
"no-plusplus": "off",
"max-len": ["error", 120],
"import/extensions": 0,
"import/newline-after-import": ["error", { "count": 2 }],
"import/no-unresolved": [2, { "ignore": ["^(resource|gi)"] }],
"no-warning-comments": ["error", { "terms": ["fixme"], "location": "anywhere" }]
},
"globals": {
"log": "readonly",
"logError": "readonly",
"TextDecoder": "readonly"
}
}