-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
54 lines (52 loc) · 1.31 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
{
"extends": [
"react-app",
"react-app/jest",
"airbnb-typescript",
"plugin:functional/lite",
"plugin:functional/stylitic",
"plugin:prettier/recommended"
],
"plugins": ["functional", "prettier"],
"rules": {
/* we must import from styled-components/macro
to benefit from full class name debugging */
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "styled-components",
"message": "Please import from styled-components/macro."
}
],
"patterns": ["!styled-components/macro"]
}
],
/* we have lots of event handlers that will not return values,
so this rule is not helpful in our app's context */
"functional/no-return-void": 0,
/* we are happy to use typescript for props,
so do not want to enforce prop types */
"react/prop-types": 0
},
"overrides": [
/* some rules are noise rather than assistance in tests: */
{
"rules": {
"functional/no-let": 0,
"import/no-extraneous-dependencies": 0,
"react/jsx-no-literals": 0
},
"files": [
"src/**/tests/**",
"src/**/specs/**",
"**/**.test.{ts,tsx}",
"setupTests.ts"
]
}
],
"parserOptions": {
"project": "./tsconfig.json"
}
}