From 01afdc410ec651058572ae638f35ddb593fcc7d6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 13 Nov 2021 19:10:08 +0900 Subject: [PATCH] Update .eslintrc.js --- packages/backend/.eslintrc.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/backend/.eslintrc.js b/packages/backend/.eslintrc.js index 5ce38b9cc..0978f8ab4 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'],