forked from supaglue-labs/supaglue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
34 lines (34 loc) · 1015 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
{
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
"plugins": ["prettier", "@typescript-eslint"],
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json"],
"sourceType": "module",
"requireConfigFile": false
},
"env": {
"node": true,
"es2020": true,
"jest": true
},
"rules": {
"curly": 1,
"prettier/prettier": "error",
"no-var": "error",
"prefer-const": "error",
"prefer-destructuring": [
"error",
{
"array": false,
"object": true
}
],
"no-console": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-misused-promises": ["warn", { "checksVoidReturn": false }],
"@typescript-eslint/consistent-type-imports": "error"
},
"ignorePatterns": ["node_modules/", "dist/", "coverage/", "/packages/schemas/gen/", "/packages/core/jest.config.js", "*.openapi.gen.d.ts"]
}