Skip to content

Commit

Permalink
MOBILE-3947 eslint: Add prefer-self-closing-tags error rule
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyserver committed Nov 24, 2023
1 parent 1c2a3bd commit 13cd1c4
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 }],
},
},
Expand Down

0 comments on commit 13cd1c4

Please sign in to comment.