-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathreact-performance.json
51 lines (42 loc) · 1.09 KB
/
react-performance.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
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"extends": ["plugin:react-perf/all"],
"plugins": ["react", "@arthurgeron/react-usememo"],
"rules": {
"react/require-optimization": "error",
"react/jsx-no-bind": "error",
"react/jsx-no-constructed-context-values": "error",
"react/no-object-type-as-default-prop": "error",
"@arthurgeron/react-usememo/require-usememo": "error"
},
"overrides": [
{
"files": ["*.jsx"]
},
{
"files": [
"**/test/**",
"**/tests/**",
"**/spec/**",
"**/__tests__/**",
"*.test.*",
"*.spec.*",
"*.e2e.*",
"*.e2e-spec.*",
"*.stories.@(ts|tsx|js|jsx|mjs|cjs|mts|cts)",
"*.story.@(ts|tsx|js|jsx|mjs|cjs|mts|cts)"
],
"rules": {
"react-perf/jsx-no-new-object-as-prop": "off",
"react-perf/jsx-no-new-array-as-prop": "off",
"react-perf/jsx-no-new-function-as-prop": "off",
"react-perf/jsx-no-jsx-as-prop": "off"
}
}
],
"settings": {
"react": {
"version": "detect"
}
}
}