-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
35 lines (35 loc) · 972 Bytes
/
.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
{
"env": {
"es2020": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020
},
"plugins": ["@typescript-eslint", "prettier", "simple-import-sort", "import"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
"plugin:import/typescript",
"plugin:jest/recommended"
],
"rules": {
"curly": ["error", "multi-line", "consistent"],
"no-console": ["error", { "allow": ["error", "info", "warn"] }],
"no-param-reassign": "error",
"no-shadow": "error",
"prefer-const": "error",
"spaced-comment": "error",
"import/no-cycle": "error",
"simple-import-sort/sort": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }
],
"@typescript-eslint/no-use-before-define": "error"
}
}