-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
41 lines (40 loc) · 1.24 KB
/
.eslintrc
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
{
"parser": "@typescript-eslint/parser",
"extends": [
"react-app",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier",
"prettier/@typescript-eslint",
"prettier/react",
"plugin:jest/recommended"
],
"ignorePatterns": ["packages/**/src/**/*.bs.js", "packages/**/src/**/*.gen.tsx"],
"plugins": ["@typescript-eslint", "prettier", "react", "jest"],
"env": {
"browser": true,
"jest/globals": true
},
"rules": {
// Only allow Prettier styles
"prettier/prettier": ["error"],
},
"overrides": [
{
"files": ["packages/**/src/**/*.stories.tsx"],
"rules": {
// Storybook expects anonymous default export
"import/no-anonymous-default-export": "off"
}
},
{
"files": ["*.js", "*.jsx"],
"rules": {
// Incorrectly checks for types on FC in JS(X)
"@typescript-eslint/explicit-module-boundary-types": "off",
// Incorrectly warns in JS(X) about: 'React' was used before it was defined
"no-use-before-define": [0]
}
}
]
}