MOBILE-3947 eslint: Add prefer-self-closing-tags error rule
parent
7c31e79bbd
commit
08f8208186
21
.eslintrc.js
21
.eslintrc.js
|
@ -96,14 +96,14 @@ const appConfig = {
|
|||
'error',
|
||||
{
|
||||
selector: [
|
||||
'classProperty',
|
||||
'objectLiteralProperty',
|
||||
'typeProperty',
|
||||
'classMethod',
|
||||
'objectLiteralMethod',
|
||||
'typeMethod',
|
||||
'accessor',
|
||||
'enumMember'
|
||||
'classProperty',
|
||||
'objectLiteralProperty',
|
||||
'typeProperty',
|
||||
'classMethod',
|
||||
'objectLiteralMethod',
|
||||
'typeMethod',
|
||||
'accessor',
|
||||
'enumMember'
|
||||
],
|
||||
modifiers: ['requiresQuotes'],
|
||||
format: null,
|
||||
|
@ -332,10 +332,11 @@ module.exports = {
|
|||
'@angular-eslint/template/alt-text': 'error',
|
||||
'@angular-eslint/template/elements-content': 'error',
|
||||
'@angular-eslint/template/label-has-associated-control': 'error',
|
||||
'@angular-eslint/template/table-scope': 'error',
|
||||
'@angular-eslint/template/valid-aria': 'error',
|
||||
'@angular-eslint/template/no-duplicate-attributes': 'error',
|
||||
'@angular-eslint/template/no-positive-tabindex': 'error',
|
||||
'@angular-eslint/template/prefer-self-closing-tags': 'error',
|
||||
'@angular-eslint/template/table-scope': 'error',
|
||||
'@angular-eslint/template/valid-aria': 'error',
|
||||
'max-len': ['warn', { code: 140 }],
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue