-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
32 lines (32 loc) · 1.05 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
env: { browser: true, es2020: true, "cypress/globals": true },
extends: [
"eslint-config-standard",
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"prettier",
"plugin:storybook/recommended"
],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parserOptions: { ecmaVersion: "latest", sourceType: "module" },
settings: { react: { version: "18.2" } },
plugins: ["react-refresh", "react", "simple-import-sort", "cypress"],
rules: {
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
"semi": ["error", "never"],
"react/jsx-filename-extension": [1, { extensions: [".js", ".jsx"] }],
"react/no-unused-prop-types": "error",
"react/no-access-state-in-setstate": "error",
"react/prop-types": "error",
"react/no-array-index-key": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"react/no-array-index-key": "error",
},
}