-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
56 lines (52 loc) · 1.34 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"extends": "@ivangabriele/eslint-config-typescript-react",
"env": {
"browser": true,
"node": false
},
"parserOptions": {
"ecmaVersion": 2021,
"extraFileExtensions": [".mjs"],
"project": "./tsconfig.json"
},
"ignorePatterns": [
"/dist/",
"/scripts/",
"/storybook-static/",
"postcss.config.js",
"rollup.config.icons.js",
"rollup.config.js"
],
"rules": {
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-underscore-dangle": "off",
"import/no-extraneous-dependencies": ["error", { "peerDependencies": true }],
"react/forbid-prop-types": "off",
"react-hooks/exhaustive-deps": "off",
"react/function-component-definition": "off",
"react/jsx-props-no-spreading": "off",
"react/no-typos": "off",
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off"
},
"overrides": [
{
"files": ["**/*.stories.tsx"],
"rules": {
"sort-keys-fix/sort-keys-fix": "off",
"@typescript-eslint/naming-convention": "off",
"import/no-default-export": "off"
}
},
{
"files": ["./scripts/**/*.js", "./scripts/**/*.mjs"],
"env": {
"browser": false,
"node": true
},
"rules": {
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }]
}
}
]
}