mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
21 lines
580 B
TypeScript
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}'),
|
|
};
|