mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
parent
adfe4ef564
commit
fa466e2134
5594
.betterer.results
5594
.betterer.results
File diff suppressed because it is too large
Load Diff
19
.betterer.ts
19
.betterer.ts
@ -3,17 +3,18 @@ import { eslint } from '@betterer/eslint';
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
'no enzyme tests': () => regexp(/from 'enzyme'/g).include('**/*.test.*'),
|
'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': () =>
|
'no explicit any': () =>
|
||||||
eslint({
|
eslint({
|
||||||
'@typescript-eslint/no-explicit-any': 'error',
|
'@typescript-eslint/no-explicit-any': 'error',
|
||||||
}).include('**/*.{ts,tsx}'),
|
}).include('**/*.{ts,tsx}'),
|
||||||
|
// TODO reenable this test
|
||||||
|
// 'no type assertions': () =>
|
||||||
|
// eslint({
|
||||||
|
// '@typescript-eslint/consistent-type-assertions': [
|
||||||
|
// 'error',
|
||||||
|
// {
|
||||||
|
// assertionStyle: 'never',
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
|
// }).include('**/*.{ts,tsx}'),
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user