Files
grafana/.betterer.ts
Ashley Harrison fa466e2134 Chore: comment out type assertions check due to bug (#51371)
* comment out type assertions check due to bug

* forgot to push the merge 🤦
2022-06-24 11:56:31 +01:00

21 lines
580 B
TypeScript

import { regexp } from '@betterer/regexp';
import { eslint } from '@betterer/eslint';
export default {
'no enzyme tests': () => regexp(/from 'enzyme'/g).include('**/*.test.*'),
'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}'),
};