repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply dependencies update
[e-mobility-charging-stations-simulator.git]
/
.eslintrc
diff --git
a/.eslintrc
b/.eslintrc
index 86140678e7f404504d93b8d53045f09e6fe632e5..2153335c5ebfd5164e4f1b88eded5fc72bd0ff11 100644
(file)
--- a/
.eslintrc
+++ b/
.eslintrc
@@
-29,7
+29,18
@@
"error",
2,
{
"error",
2,
{
- "SwitchCase": 1
+ "SwitchCase": 1,
+ "CallExpression": {
+ "arguments": 1
+ },
+ "FunctionDeclaration": {
+ "parameters": 2,
+ "body": 1
+ },
+ "FunctionExpression": {
+ "parameters": 2,
+ "body": 1
+ }
}
],
"@typescript-eslint/array-type": "off",
}
],
"@typescript-eslint/array-type": "off",
@@
-75,7
+86,8
@@
],
"no-useless-catch": "error",
"no-useless-return": "error",
],
"no-useless-catch": "error",
"no-useless-return": "error",
- "no-shadow": "error",
+ "no-shadow": "off", // This one is generating false positive no-shadow errors on exported/const enums
+ "@typescript-eslint/no-shadow": "error",
"no-multiple-empty-lines": [
"error",
{
"no-multiple-empty-lines": [
"error",
{
@@
-107,6
+119,20
@@
"keyword-spacing": [
"error"
],
"keyword-spacing": [
"error"
],
+ "id-blacklist": [
+ "error",
+ "any",
+ "Number",
+ "number",
+ "String",
+ "string",
+ "Boolean",
+ "boolean",
+ "Undefined",
+ "undefined",
+ "Symbol",
+ "symbol"
+ ],
"linebreak-style": [
"error",
"unix"
"linebreak-style": [
"error",
"unix"
@@
-186,5
+212,18
@@
"error",
"single"
]
"error",
"single"
]
- }
+ },
+ "overrides": [
+ {
+ "files": [
+ "*.js"
+ ],
+ "extends": "plugin:node/recommended",
+ "rules": {
+ "node/shebang": "off",
+ "@typescript-eslint/no-unused-vars": "off",
+ "@typescript-eslint/no-var-requires": "off"
+ }
+ }
+ ]
}
}