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

This reverts commit 7a38a5ab1d.
This commit is contained in:
Ashley Harrison 2023-12-13 11:26:17 +00:00 committed by GitHub
parent e4738cbaf9
commit a221ebf7cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 { BettererFileTest } from '@betterer/betterer';
import { regexp } from '@betterer/regexp';
import { promises as fs } from 'fs'; import { promises as fs } from 'fs';
import { ESLint, Linter } from 'eslint'; import { ESLint, Linter } from 'eslint';
import path from 'path'; import path from 'path';
@ -19,11 +18,6 @@ export default {
.include('**/*.{ts,tsx}') .include('**/*.{ts,tsx}')
.exclude(new RegExp(eslintPathsToIgnore.join('|'))), .exclude(new RegExp(eslintPathsToIgnore.join('|'))),
'no undocumented stories': () => countUndocumentedStories().include('**/!(*.internal).story.tsx'), '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() { function countUndocumentedStories() {