🚨 Add linting rules

This commit is contained in:
brianinoa 2022-06-20 15:17:28 +02:00
commit b15212d300
3 changed files with 451 additions and 13 deletions

View file

@ -46,7 +46,11 @@
"forin": true,
"jsdoc-format": true,
"label-position": true,
"indent": [true, "tabs", 2],
"indent": [
true,
"tabs",
2
],
"member-access": [
true,
"no-public"
@ -61,10 +65,13 @@
"no-default-export": true,
"no-duplicate-variable": true,
"no-inferrable-types": true,
"ordered-imports": [true, {
"import-sources-order": "any",
"named-imports-order": "case-insensitive"
}],
"ordered-imports": [
true,
{
"import-sources-order": "any",
"named-imports-order": "case-insensitive"
}
],
"no-namespace": [
true,
"allow-declarations"
@ -90,13 +97,13 @@
"trailing-comma": [
true,
{
"multiline": {
"objects": "always",
"arrays": "always",
"functions": "always",
"typeLiterals": "ignore"
},
"esSpecCompliant": true
"multiline": {
"objects": "always",
"arrays": "always",
"functions": "always",
"typeLiterals": "ignore"
},
"esSpecCompliant": true
}
],
"triple-equals": [
@ -121,4 +128,4 @@
]
},
"rulesDirectory": []
}
}