From b3326f0e97caac3d112a3cb36e6876c0390b99ac Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Wed, 7 Oct 2020 14:54:40 +0200 Subject: [PATCH] MOBILE-3303 lint: Update linting rules --- .eslintrc.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 194b0de11..ab6094823 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -109,6 +109,18 @@ module.exports = { 'always', ], '@typescript-eslint/type-annotation-spacing': 'error', + '@typescript-eslint/typedef': [ + 'error', + { + arrayDestructuring: false, + arrowParameter: false, + memberVariableDeclaration: true, + objectDestructuring: false, + parameter: true, + propertyDeclaration: true, + variableDeclaration: false, + }, + ], '@typescript-eslint/unified-signatures': 'error', 'header/header': [ 2, @@ -131,6 +143,7 @@ module.exports = { 1, ], 'arrow-body-style': ['error', 'as-needed'], + 'array-bracket-spacing': ['error', 'never'], 'comma-dangle': ['error', 'always-multiline'], 'constructor-super': 'error', 'curly': 'error', @@ -156,6 +169,7 @@ module.exports = { 'error', 'unix', ], + 'lines-between-class-members': ['error', 'always'], 'max-len': [ 'error', { @@ -181,7 +195,16 @@ module.exports = { 'no-underscore-dangle': 'error', 'no-unused-labels': 'error', 'no-var': 'error', + 'object-curly-spacing': ['error', 'always'], 'one-var': ['error', 'never'], + 'padded-blocks': [ + 'error', + { + classes: 'always', + blocks: 'never', + switches: 'never', + }, + ], 'padding-line-between-statements': [ 'error', {