-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
43 lines (43 loc) · 852 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
module.exports = {
env: {
node: true,
commonjs: true,
browser: true,
es6: true,
},
extends: ["eslint:recommended", "next", "prettier"],
overrides: [
{
env: {
node: true,
},
files: [".eslintrc.{js,cjs}"],
parserOptions: {
sourceType: "script",
},
},
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react"],
rules: {
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"react/display-name": "off",
indent: ["warn", 2],
"linebreak-style": ["warn", "unix"],
quotes: ["warn", "double"],
semi: ["warn", "always"],
"max-len": [
"warn",
{
code: 100,
ignoreTrailingComments: true,
ignoreStrings: true,
ignoreComments: true,
},
],
},
};