-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
41 lines (41 loc) · 899 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
/* eslint-disable quote-props */
/* eslint-disable quotes */
module.exports = {
settings: {
react: {
version: "detect",
},
},
env: {
browser: true,
es2021: true,
},
extends: ["plugin:react/recommended", "standard"],
overrides: [
{
files: ["**/*.test.js", "**/*.spec.js"],
env: {
jest: true,
},
},
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react"],
rules: {
// eslint-disable-next-line quote-props
semi: "off",
"react/react-in-jsx-scope": "off",
"space-before-function-paren": "off",
"react/jsx-indent": [2, 2],
"react/prop-types": "off",
"jsx-quotes": [2, "prefer-double"],
quotes: [2, "double"],
"quote-props": [2, "consistent"],
"multiline-ternary": "off",
"react/no-unescaped-entities": "off",
"comma-dangle": "off",
},
};