summaryrefslogtreecommitdiff
path: root/packages/backend
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-11-13 19:10:08 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-11-13 19:10:08 +0900
commit01afdc410ec651058572ae638f35ddb593fcc7d6 (patch)
tree96299b74dbbd45d7f1e11d8b7b4baa5d68f3d5da /packages/backend
parent12.96.1 (diff)
downloadmisskey-01afdc410ec651058572ae638f35ddb593fcc7d6.tar.gz
misskey-01afdc410ec651058572ae638f35ddb593fcc7d6.tar.bz2
misskey-01afdc410ec651058572ae638f35ddb593fcc7d6.zip
Update .eslintrc.js
Diffstat (limited to 'packages/backend')
-rw-r--r--packages/backend/.eslintrc.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/backend/.eslintrc.js b/packages/backend/.eslintrc.js
index 5ce38b9cc9..0978f8ab40 100644
--- a/packages/backend/.eslintrc.js
+++ b/packages/backend/.eslintrc.js
@@ -31,6 +31,10 @@ module.exports = {
'before': true,
'after': true,
}],
+ 'key-spacing': ['error', {
+ 'beforeColon': false,
+ 'afterColon': true,
+ }],
/* TODO: path aliasを使わないとwarnする
'no-restricted-imports': ['warn', {
'patterns': [
@@ -47,10 +51,15 @@ module.exports = {
'no-async-promise-executor': ['off'],
'no-useless-escape': ['off'],
'no-multi-spaces': ['warn'],
+ 'no-multiple-empty-lines': ['error', { 'max': 1 }],
'no-control-regex': ['warn'],
'no-empty': ['warn'],
'no-inner-declarations': ['off'],
'no-sparse-arrays': ['off'],
+ 'nonblock-statement-body-position': ['error', 'beside'],
+ 'object-curly-spacing': ['error', 'always'],
+ 'space-infix-ops': ['error'],
+ 'space-before-blocks': ['error', 'always'],
'@typescript-eslint/no-var-requires': ['warn'],
'@typescript-eslint/no-inferrable-types': ['warn'],
'@typescript-eslint/no-empty-function': ['off'],