mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Add new eslint rules for TS (#51876)
This commit is contained in:
parent
b0ec48a4f1
commit
62baeeb0a9
1 changed files with 2 additions and 0 deletions
|
@ -116,6 +116,7 @@ module.exports = {
|
|||
}],
|
||||
'@typescript-eslint/consistent-type-assertions': 'error',
|
||||
'@typescript-eslint/no-empty-interface': 'error',
|
||||
'@typescript-eslint/no-extra-non-null-assertion': 'error',
|
||||
'@typescript-eslint/no-misused-new': 'error',
|
||||
'@typescript-eslint/no-namespace': 'error',
|
||||
'@typescript-eslint/triple-slash-reference': ['error', {
|
||||
|
@ -167,6 +168,7 @@ module.exports = {
|
|||
'object-shorthand': 'error',
|
||||
'one-var': [ 'error', 'never' ],
|
||||
'prefer-const': 'error',
|
||||
'prefer-rest-params': 'error',
|
||||
'quotes': ['error', 'double', { 'avoidEscape': true }],
|
||||
'quote-props': ['error', 'consistent-as-needed'],
|
||||
'radix': 'error',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue