-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
105 lines (105 loc) · 3 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
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx", "react", "jsx-a11y", "react-hooks"],
"extends": ["airbnb-base", "airbnb-typescript/base"],
"parserOptions": {
"project": ["packages/*/tsconfig(.*)?json"],
"sourceType": "module",
"ecmaVersion": 12
},
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": [
"plugin:@nrwl/nx/typescript",
"airbnb-base",
"airbnb-typescript/base",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:jsx-a11y/recommended",
"plugin:react-hooks/recommended",
"prettier"
],
"rules": {
"arrow-body-style": "off",
"consistent-return": "off",
"function-paren-newline": "off",
"global-require": "off",
"linebreak-style": ["off", "windows"],
"max-classes-per-file": "off",
"no-param-reassign": [
"error",
{
"props": false
}
],
"no-bitwise": "off",
"no-continue": "off",
"no-await-in-loop": "off",
"no-underscore-dangle": "off",
"no-constant-condition": "off",
"operator-assignment": "off",
"import/extensions": "off",
"import/no-unresolved": "off",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"import/no-dynamic-require": "off",
"import/no-cycle": "warn",
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"{}": false,
"Function": false
},
"extendDefaults": true
}
],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-inferrable-types": "off",
"react/no-typos": "error",
"react/prop-types": "off",
"react/display-name": "off",
"react/forbid-dom-props": [2, { "forbid": ["style"] }],
"jsx-a11y/iframe-has-title": "warn",
"jsx-a11y/media-has-caption": "warn",
"jsx-a11y/alt-text": "warn"
}
},
{
"files": ["*.js", "*.jsx"],
"extends": [
"plugin:@nrwl/nx/javascript",
"airbnb-base",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:jsx-a11y/recommended",
"plugin:react-hooks/recommended"
],
"rules": {}
}
]
}