Revert "Betterer: Add rule for gf-form (#79303)" (#79445)

This reverts commit 7a38a5ab1d9469fb03a3ef2f2c594f8461cc4bd7.
This commit is contained in:
Ashley Harrison
2023-12-13 11:26:17 +00:00
committed by GitHub
parent e4738cbaf9
commit a221ebf7cc
2 changed files with 0 additions and 1260 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,4 @@
import { BettererFileTest } from '@betterer/betterer';
import { regexp } from '@betterer/regexp';
import { promises as fs } from 'fs';
import { ESLint, Linter } from 'eslint';
import path from 'path';
@ -19,11 +18,6 @@ export default {
.include('**/*.{ts,tsx}')
.exclude(new RegExp(eslintPathsToIgnore.join('|'))),
'no undocumented stories': () => countUndocumentedStories().include('**/!(*.internal).story.tsx'),
'no gf-form usage': () =>
regexp(
/gf-form/gm,
'gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.'
).include('**/*.{ts,tsx,html}'),
};
function countUndocumentedStories() {