Finish linting web interface

Fix remaining linter errors detected in web interface code.
This commit is contained in:
Hornwitser committed 2020-09-28 05:52:31 +02:00
1 parent 03b7d22ba6
commit bccc89fa0b
16 files changed
+201 -187

No files matched your search

+15 -2
View File
@@ -2,7 +2,6 @@
module.exports = {
"env": {
"node": true,
"browser": true,
"commonjs": true,
"es6": true,
},
@@ -21,6 +20,18 @@ module.exports = {
"no-invalid-this": "off",
},
},
{
"files": ["packages/master/web/**/*.jsx"],
"env": {
"browser": true,
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
},
},
},
],
"rules": {
@@ -44,6 +55,8 @@ module.exports = {
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "only-multiline",
},
],
@@ -229,7 +242,7 @@ module.exports = {
"semi": "error",
"semi-spacing": "error",
"semi-style": "off",
"sort-imports": "error",
"sort-imports": "off",
"sort-keys": "off",
"sort-vars": "error",
"space-before-blocks": "warn",