We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
meta
1 parent f8ae570 commit 067e246Copy full SHA for 067e246
src/processors/snapshot-processor.ts
@@ -1,8 +1,13 @@
1
// https://eslint.org/docs/developer-guide/working-with-plugins#processors-in-plugins
2
// https://github.com/typescript-eslint/typescript-eslint/issues/808
3
+import {
4
+ name as packageName,
5
+ version as packageVersion,
6
+} from '../../package.json';
7
8
type PostprocessMessage = { ruleId: string };
9
10
+export const meta = { name: packageName, version: packageVersion };
11
export const preprocess = (source: string): string[] => [source];
12
export const postprocess = (messages: PostprocessMessage[][]) =>
13
// snapshot files should only be linted with snapshot specific rules
0 commit comments