Chore: comment out type assertions check due to bug (#51371)

* comment out type assertions check due to bug

* forgot to push the merge 🤦
This commit is contained in:
Ashley Harrison 2022-06-24 11:56:31 +01:00 committed by GitHub
parent adfe4ef564
commit fa466e2134
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 5603 deletions

File diff suppressed because it is too large Load Diff

View File

@ -3,17 +3,18 @@ import { eslint } from '@betterer/eslint';
export default {
'no enzyme tests': () => regexp(/from 'enzyme'/g).include('**/*.test.*'),
'no type assertions': () =>
eslint({
'@typescript-eslint/consistent-type-assertions': [
'error',
{
assertionStyle: 'never',
},
],
}).include('**/*.{ts,tsx}'),
'no explicit any': () =>
eslint({
'@typescript-eslint/no-explicit-any': 'error',
}).include('**/*.{ts,tsx}'),
// TODO reenable this test
// 'no type assertions': () =>
// eslint({
// '@typescript-eslint/consistent-type-assertions': [
// 'error',
// {
// assertionStyle: 'never',
// },
// ],
// }).include('**/*.{ts,tsx}'),
};