mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: reintroduce type assertion test + change emitted metric names (#51375)
* reintroduce type assertion test + change emitted metric names * rename test to better eslint to be more generic
This commit is contained in:
18
.betterer.ts
18
.betterer.ts
@@ -3,18 +3,14 @@ import { eslint } from '@betterer/eslint';
|
||||
|
||||
export default {
|
||||
'no enzyme tests': () => regexp(/from 'enzyme'/g).include('**/*.test.*'),
|
||||
'no explicit any': () =>
|
||||
'better eslint': () =>
|
||||
eslint({
|
||||
'@typescript-eslint/no-explicit-any': 'error',
|
||||
'@typescript-eslint/consistent-type-assertions': [
|
||||
'error',
|
||||
{
|
||||
assertionStyle: 'never',
|
||||
},
|
||||
],
|
||||
}).include('**/*.{ts,tsx}'),
|
||||
// TODO reenable this test
|
||||
// 'no type assertions': () =>
|
||||
// eslint({
|
||||
// '@typescript-eslint/consistent-type-assertions': [
|
||||
// 'error',
|
||||
// {
|
||||
// assertionStyle: 'never',
|
||||
// },
|
||||
// ],
|
||||
// }).include('**/*.{ts,tsx}'),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user