Merge pull request #4570 from thornbill/prefer-starts-ends-with

Add prefer string starts/ends with eslint rule
This commit is contained in:
Bill Thornton 2023-05-09 10:44:42 -04:00 committed by GitHub
commit df158c0b7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -253,7 +253,8 @@ module.exports = {
'Windows': 'readonly'
},
rules: {
'@typescript-eslint/no-floating-promises': ['warn']
'@typescript-eslint/no-floating-promises': ['warn'],
'@typescript-eslint/prefer-string-starts-ends-with': ['error']
}
},
// TypeScript source files