Enforce Consistent Spacing with ESLint's space-before-blocks and keyword-spacing Rules (#1308)

* added rule no-trailing-spaces

* added rule space-before-block

* added rule keyword spacing
This commit is contained in:
Greenlamp2 2024-05-24 02:19:20 +02:00 committed by GitHub
parent e2be6ba002
commit 622885767d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
15 changed files with 77 additions and 75 deletions

View File

@ -26,7 +26,9 @@
"no-trailing-spaces": ["error", { // Disallows trailing whitespace at the end of lines
"skipBlankLines": false, // Enforces the rule even on blank lines
"ignoreComments": false // Enforces the rule on lines containing comments
}]
}],
"space-before-blocks": ["error", "always"], // Enforces a space before blocks
"keyword-spacing": ["error", { "before": true, "after": true }] // Enforces spacing before and after keywords
}
}
]