-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
42 lines (42 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
{
"rules": {
"class-methods-use-this": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-empty-function": ["error", { "allow": ["constructors"] }],
"no-useless-constructor": "off",
"indent": ["error", 2],
"semi": ["error", "never"],
"import/prefer-default-export": "off",
"max-len": ["error", { "code": 90, "ignoreUrls": true, "ignoreStrings": true, "ignoreTemplateLiterals": true, "ignoreComments": true, "ignorePattern": "import.+from.+" }],
"linebreak-style": ["error", "unix"],
"no-console": "off",
"quotes": ["error", "single"],
"object-curly-newline": ["error", { "consistent": true, "multiline": true, "minProperties": 15 }],
"import-helpers/order-imports": ["warn", { "groups": [["/^@fastify/", "/^nest/", "/^adonis/", "/^express/", "/^typeorm/", "/^prisma/"], "module", ["parent", "sibling", "index"], ["/style/", "/css/"], "/^@//"], "newlinesBetween": "never", "alphabetize": { "order": "asc", "ignoreCase": true }}],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"import/extensions": ["error", "ignorePackages", { "ts": "never" }]
},
"env": {
"es2021": true,
"node": true
},
"extends": [
"airbnb-base",
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"eslint-plugin-import-helpers"
],
"settings": {
"import/resolver": { "typescript": {} }
}
}