-
Notifications
You must be signed in to change notification settings - Fork 21
/
.eslintrc.js
45 lines (45 loc) · 1.06 KB
/
.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
44
45
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
},
plugins: ["react", "simple-import-sort", "prettier"],
extends: [
"plugin:react/recommended",
"airbnb",
"eslint:recommended",
"prettier",
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: "module",
},
ignorePatterns: ["public/"],
rules: {
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"react/prop-types": "off",
"react/no-array-index-key": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-one-expression-per-line": "off",
"no-console": "warn",
"no-unused-vars": "warn",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"no-implicit-coercion": "error",
"prettier/prettier": ["error"],
},
overrides: [
{
files: ["**/*.{js,jsx}"],
rules: {
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
},
},
],
};