-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
32 lines (32 loc) · 887 Bytes
/
.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
{
"env": {
"browser": true,
"es2021": true,
"node": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:json/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module",
"project": ["tsconfig.json"]
},
"plugins": [
"@typescript-eslint"
],
"ignorePatterns": [ "jest.config.*", "dotenv.config.*", "build", "dist" ],
"rules": {
"indent": [ "error", 2 ],
"linebreak-style": [ "error", "unix" ],
"quotes": [ "error", "single" ],
"semi": [ "error", "always" ],
"eol-last": 1,
"max-len": ["warn", { "code": 120, "ignoreComments": true }],
"@typescript-eslint/no-throw-literal": "error"
}
}