Merge pull request #2554 from NoelDeMartin/MOBILE-3320

MOBILE-3303 lint: Update linting rules
main
Dani Palou 2020-10-07 14:58:37 +02:00 committed by GitHub
commit 181c54976a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

View File

@ -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',
{