-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.json
78 lines (75 loc) · 2.47 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"extends": ["airbnb-base", "prettier", "plugin:@typescript-eslint/recommended"],
"plugins": ["prettier", "@typescript-eslint", "import", "import-helpers"],
"env": {
"es2020": true,
"node": true,
"jest": true
},
"globals": { "NodeJS": "readonly" },
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": { "ts": true, "tsx": true },
"ecmaVersion": 2020,
"sourceType": "module"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"project": "tsconfig.json"
}
}
},
"rules": {
"prettier/prettier": "warn",
"indent": "off",
"no-new": "off",
"no-useless-constructor": "off",
"func-style": ["error", "declaration", { "allowArrowFunctions": false }],
"comma-dangle": ["warn", "always-multiline"],
"implicit-arrow-linebreak": "off",
"no-plusplus": "off",
"class-methods-use-this": "off",
"prefer-template": "off",
"default-case": "off",
"radix": "off",
"no-unused-vars": "off",
"no-restricted-syntax": "off",
"no-use-before-define": "off",
"max-classes-per-file": "off",
"no-unused-expressions": "off",
"no-console": "off",
"no-continue": "off",
"import/prefer-default-export": "off",
"import/extensions": ["warn", { "css": "always", "json": "always" }],
"import/no-unresolved": "error",
"lines-between-class-members": "off",
"no-underscore-dangle": "off",
"no-param-reassign": "off",
"no-shadow": "off",
"arrow-body-style": "off",
"no-await-in-loop": "off",
"import-helpers/order-imports": [
"warn",
{
"newlinesBetween": "always",
"groups": ["module", "/^@@//", ["/^@//", "/^@tests//"], ["parent", "sibling", "index"]],
"alphabetize": { "order": "asc", "ignoreCase": true }
}
],
"import/no-extraneous-dependencies": [
"error",
{ "devDependencies": ["**/*.test.ts*", "tests/**/*.ts*", "__tests__/**/*.ts*", "scripts/**/*.ts*"] }
],
"@typescript-eslint/indent": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unused-vars": ["warn", { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/consistent-type-definitions": ["error", "interface"]
}
}