-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc_js_only.json
59 lines (59 loc) · 1.52 KB
/
.eslintrc_js_only.json
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"settings": {
"react": {
"version": "detect"
}
},
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"extends": ["airbnb-base", "eslint:recommended", "plugin:react/recommended"],
"parserOptions": {
"requireConfigFile": false,
"babelOptions": {
"presets": ["@babel/preset-react"]
},
"ecmaVersion": 13
},
"parser": "@babel/eslint-parser",
"rules": {
"linebreak-style": 0,
"import/prefer-default-export": "warn",
"import/no-default-export": "off",
"max-len": ["warn", { "code": 250 }],
"no-console": 1,
"comma-dangle": "off",
"no-plusplus": "off",
"no-case-declarations": "off",
"implicit-arrow-linebreak": "off",
"react/prop-types": "off",
"no-new-func": "off",
"no-unused-vars": "warn",
"camelcase": "warn",
"padded-blocks": "warn",
"brace-style": "warn",
"no-multi-spaces": "warn",
"spaced-comment": "warn",
"indent": "warn",
"no-trailing-spaces": "warn",
"no-multiple-empty-lines": "warn",
"no-unneeded-ternary": "warn",
"no-param-reassign": "warn",
"arrow-body-style": "warn",
"no-empty": "warn",
"prefer-const": "warn",
"no-nested-ternary": "warn",
"no-lonely-if": "warn",
"operator-linebreak": "off",
"prefer-template": "warn",
"object-curly-spacing": "off",
"object-curly-newline": "warn",
"func-names": "warn",
"prefer-arrow-callback": "warn",
"object-shorthand": "warn",
"no-extra-semi": "off",
"dot-notation": "warn"
}
}