forked from mendersoftware/gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
62 lines (62 loc) · 1.73 KB
/
.eslintrc
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
60
61
62
{
"env": {
"es6": true,
"browser": true,
"node": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:react-hooks/recommended",
"plugin:react/recommended",
"plugin:sonarjs/recommended-legacy"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
},
"react": {
"pragma": "React",
"version": "detect"
}
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"sourceType": "module"
},
"globals": {
"mender_environment": "readonly"
},
"plugins": ["react", "prettier", "sonarjs"],
"rules": {
"prettier/prettier": "error",
"consistent-this": ["error", "self"],
"import/no-named-as-default": "off",
"no-console": "off",
"no-multiple-empty-lines": "error",
"no-prototype-builtins": "off",
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"react/forbid-dom-props": "error",
"react/no-redundant-should-component-update": "error",
"react/no-this-in-sfc": "error",
"react/no-typos": "error",
"react/no-unsafe": "error",
"react/no-unused-prop-types": "error",
"react/prefer-es6-class": "error",
"react/prefer-stateless-function": "error",
"react/prop-types": "off",
"react/require-default-props": "error",
"react/sort-prop-types": "error",
"react/state-in-constructor": "error",
"react/static-property-placement": "error",
"react/style-prop-object": "error",
"react/void-dom-elements-no-children": "error",
"react/jsx-no-target-blank": "error",
"sonarjs/cognitive-complexity": ["error", 17],
"sonarjs/no-nested-template-literals": "off"
}
}