refactor: set ESLint to warn on ts-ignore comment (#4465)

👕 Set `ban-ts-comment` to warn on @ts-ignore
This commit is contained in:
Iván Ovejero
2022-10-28 10:35:31 +02:00
committed by GitHub
parent dbac7955f9
commit 641d904ee4

View File

@@ -137,7 +137,7 @@ const config = (module.exports = {
/**
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/ban-ts-comment.md
*/
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-ts-comment': ['warn', { 'ts-ignore': true }],
/**
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/ban-types.md