forked from pashak09/fixturio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
127 lines (127 loc) · 3.48 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
"root": true,
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb-typescript/base",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:prettier/recommended"
],
"plugins": ["import"],
"overrides": [
{
"files": ["src/**/__tests__/*Spec.ts", "./tests/**/*Spec.ts"],
"plugins": ["jest"],
"extends": ["plugin:jest/recommended", "plugin:jest/style"],
"rules": {
"@typescript-eslint/unbound-method": "off",
"jest/unbound-method": "error",
"jest/no-conditional-expect": "warn"
}
},
{
"files": ["examples/**/*.ts"],
"plugins": ["import"],
"rules": {
"import/no-relative-parent-imports": "off"
}
}
],
"rules": {
"no-duplicate-imports": "error",
"object-shorthand": ["error", "always"],
"@typescript-eslint/typedef": [
"error",
{
"arrowParameter": true,
"memberVariableDeclaration": true,
"parameter": true,
"propertyDeclaration": true
}
],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "class", "next": "export" },
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*"},
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"]},
{ "blankLine": "always", "prev": "directive", "next": "*" },
{ "blankLine": "any", "prev": "directive", "next": "directive" },
{ "blankLine": "always", "prev": ["case", "default"], "next": "*" },
{ "blankLine": "always", "prev": "*", "next": ["if", "switch", "for", "while"] }
],
"class-methods-use-this": "off",
"no-param-reassign": ["error", { "props": false }],
"import/order": [
"error",
{
"newlines-between": "always",
"alphabetize":{
"order": "asc",
"caseInsensitive": true
}
}
],
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": ["**/__tests__/**/*", "./tests/**/*"]
}
],
"import/prefer-default-export": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", {
"argsIgnorePattern": "^_"
}],
"@typescript-eslint/explicit-member-accessibility": ["error", {
"accessibility": "no-public"
}],
"@typescript-eslint/member-ordering": ["error", {
"default": [
"signature",
"field",
"constructor",
"method"
]}
],
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/unbound-method": ["error"],
"@typescript-eslint/array-type": ["error", {
"default": "array-simple"
}],
"no-continue": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"no-restricted-syntax": "off",
"no-await-in-loop": "off",
"curly": "error",
"no-unreachable": "error",
"no-console": "error",
"@typescript-eslint/no-unnecessary-condition": ["warn"],
"import/no-relative-parent-imports": "error"
},
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module",
"project": "tsconfig.json"
},
"env": {
"node": true,
"browser": false,
"es2022": true,
"jest": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ts"]
}
}
}
}