-
Notifications
You must be signed in to change notification settings - Fork 23
/
.eslintrc.js
43 lines (42 loc) · 959 Bytes
/
.eslintrc.js
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
// https://github.com/facebook/create-react-app/blob/main/packages/eslint-config-react-app/index.js
module.exports = {
env: {
es2020: true, // Bigint
browser: true,
node: true,
mocha: true
},
extends: [
"react-app",
"react-app/jest",
"plugin:storybook/recommended",
"plugin:jest-dom/recommended",
"plugin:@next/next/recommended"
],
rules: {
"react/function-component-definition": [
2,
{
namedComponents: ["function-declaration", "arrow-function"],
unnamedComponents: "arrow-function"
}
],
"react/jsx-fragments": [2, "syntax"],
"react/jsx-no-useless-fragment": [2],
"react/jsx-key": "warn"
},
overrides: [
{
files: ["**/*.stories.*"],
rules: {
"import/no-anonymous-default-export": "off"
}
},
{
files: ["./e2e/**/*.*"],
rules: {
"testing-library/prefer-screen-queries": "off"
}
}
]
};