forked from likhith-deriv/Deriv-Dojo-FE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
44 lines (44 loc) · 1.3 KB
/
.eslintrc.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
{
"env": {
"node": true,
"browser": true,
"es2021": true
},
"extends": ["google", "eslint:recommended", "plugin:react/recommended", "plugin:prettier/recommended"],
"overrides": [],
"parserOptions": {
"requireConfigFile": false,
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["react", "prettier"],
"rules": {
"camelcase": 0,
"arrow-body-style": ["error", "as-needed"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"curly": 0,
"prettier/prettier": "error",
"eol-last": ["error", "always"],
"func-names": ["error", "never"],
"key-spacing": 0,
"no-console": "error",
"no-else-return": ["error", { "allowElseIf": true }],
"no-multi-assign": 0,
"no-unused-vars": "error",
"no-debugger": "error",
"import/prefer-default-export": 0,
"react/no-unknown-property": 1,
"require-jsdoc": 0,
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/prop-types": "off"
},
"settings": {
"react": {
"version": "detect"
}
}
}