aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-24 21:39:24 -0500
committerGitHub <noreply@github.com>2023-12-25 02:39:24 +0000
commitc22425b10afb60820e2165ac5f420b4a1754658a (patch)
tree9baa544b1cad46d24447253b0c4818129519bea4 /.eslintrc.json
parent83ebc13bb9a83ef6be4d96d88f389e588924225b (diff)
Whitespace rules (#441)
* Update whitespace rules * Typescript rules
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json16
1 files changed, 16 insertions, 0 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index bd90f4fc..abef43b1 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -61,6 +61,12 @@
"no-case-declarations": "error",
"no-const-assign": "error",
"no-constant-condition": "off",
+ "no-multiple-empty-lines": [
+ "error",
+ {
+ "max": 2
+ }
+ ],
"no-global-assign": "error",
"no-new": "error",
"no-param-reassign": "off",
@@ -211,6 +217,10 @@
"after": true
}
],
+ "space-before-blocks": [
+ "error",
+ "always"
+ ],
"space-before-function-paren": [
"error",
{
@@ -392,6 +402,12 @@
"*.ts"
],
"rules": {
+ "no-multiple-empty-lines": [
+ "error",
+ {
+ "max": 1
+ }
+ ],
"no-undef": "off",
"unused-imports/no-unused-imports": "error",
"@typescript-eslint/no-unused-vars": [