-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
125 lines (125 loc) · 4.08 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.*?.json"
},
"plugins": ["@nx", "@typescript-eslint", "prettier"],
"ignorePatterns": ["**/*"],
"extends": [
"airbnb",
"airbnb-typescript",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:prettier/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"global-require": 0,
"no-alert": 1,
"no-console": 0,
"no-shadow": 0,
"no-continue": 1,
"no-use-before-define": 0,
"no-multi-spaces": 2,
"no-explicit-any": 0,
"linebreak-style": 0,
"lines-between-class-members": 0,
"import/extensions": 0,
"import/no-unresolved": 0,
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": 0,
"prettier/prettier": 0,
"react/prop-types": 0,
"react/react-in-jsx-scope": 0,
"react/no-unused-prop-types": 0,
"react/require-default-props": 0,
"react/default-props-match-prop-types": 0,
"react/jsx-filename-extension": [
2,
{
"extensions": [".ts", ".tsx"]
}
],
"react/jsx-props-no-spreading": 0,
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function"
}
],
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/click-events-have-key-events": 1,
"jsx-a11y/control-has-associated-label": 0,
"jsx-a11y/label-has-associated-control": [
2,
{
"labelAttributes": ["htmlFor"]
}
],
"jsx-a11y/media-has-caption": 0,
"jsx-a11y/mouse-events-have-key-events": 1,
"jsx-a11y/no-noninteractive-element-interactions": 1,
"jsx-a11y/no-static-element-interactions": 1,
"no-unused-vars": 0,
"@typescript-eslint/consistent-type-imports": 2,
"@typescript-eslint/no-unused-vars": 1,
"@typescript-eslint/no-namespace": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/no-misused-promises": 0,
"@typescript-eslint/no-floating-promises": 0,
"@typescript-eslint/no-explicit-any": 1,
"@typescript-eslint/require-await": 1,
"@typescript-eslint/no-shadow": 1,
"@typescript-eslint/unbound-method": 1,
"@typescript-eslint/no-var-requires": 1,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/no-unsafe-return": 0,
"@typescript-eslint/no-unsafe-argument": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-throw-literal": 0,
"@typescript-eslint/no-unsafe-enum-comparison": 1,
"@typescript-eslint/lines-between-class-members": 0,
"@nx/enforce-module-boundaries": [
1,
{
"allow": ["~/client-user/**", "~/client-demo/**", "~/server/**", "~/ui/**"]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"]
},
{
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
"env": {
"jest": true
},
"rules": {
"@typescript-eslint/require-await": 0,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/no-unsafe-return": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/no-non-null-assertion": 0
}
}
]
}