MOBILE-3303 lint: Update linting rules

main
Noel De Martin 2020-10-13 13:20:20 +02:00
parent 6369fb8e2a
commit e1cf81e9f9
1 changed files with 8 additions and 9 deletions

View File

@ -85,19 +85,14 @@ module.exports = {
], ],
'@typescript-eslint/no-empty-function': 'error', '@typescript-eslint/no-empty-function': 'error',
'@typescript-eslint/no-empty-interface': 'off', '@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-explicit-any': [ '@typescript-eslint/no-explicit-any': 'warn',
'warn',
{
fixToUnknown: true,
},
],
'@typescript-eslint/no-inferrable-types': [ '@typescript-eslint/no-inferrable-types': [
'error', 'error',
{ {
ignoreParameters: true, ignoreParameters: true,
}, },
], ],
'@typescript-eslint/no-non-null-assertion': 'error', '@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-this-alias': 'error', '@typescript-eslint/no-this-alias': 'error',
'@typescript-eslint/no-unused-vars': 'error', '@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/quotes': [ '@typescript-eslint/quotes': [
@ -147,7 +142,6 @@ module.exports = {
'comma-dangle': ['error', 'always-multiline'], 'comma-dangle': ['error', 'always-multiline'],
'constructor-super': 'error', 'constructor-super': 'error',
'curly': 'error', 'curly': 'error',
'default-case': 'error',
'eol-last': 'error', 'eol-last': 'error',
'id-blacklist': [ 'id-blacklist': [
'error', 'error',
@ -163,7 +157,12 @@ module.exports = {
], ],
'id-match': 'error', 'id-match': 'error',
'jsdoc/check-alignment': 'error', 'jsdoc/check-alignment': 'error',
'jsdoc/check-indentation': 'error', 'jsdoc/check-indentation': [
'error',
{
excludeTags: ['param'],
},
],
'jsdoc/newline-after-description': 'error', 'jsdoc/newline-after-description': 'error',
'linebreak-style': [ 'linebreak-style': [
'error', 'error',