-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc
37 lines (37 loc) · 925 Bytes
/
.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
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended",
],
"plugins": ["react", "@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
},
"sourceType": "module",
"ecmaVersion": 2022,
},
"settings": {
"react": {
"version": "detect",
},
},
"rules": {
"react/react-in-jsx-scope": "off",
"react/no-unknown-property": ["error", { "ignore": ["css"] }],
"no-constant-condition": "off",
// use @emotion/styled and @emotion/react without macro
//
// Use "lodash/component" instead of "lodash" for tree shaking
"no-restricted-imports": [
"warn",
{
"paths": ["@emotion/styled/macro", "@emotion/react/macro", "lodash"],
},
],
},
}