UNPKG

385 BJavaScriptView Raw
1'use strict';
2
3// https://eslint.org/docs/developer-guide/working-with-plugins#processors-in-plugins
4const preprocess = source => [source];
5
6const postprocess = messages =>
7 messages[0].filter(
8 // snapshot files should only be linted with snapshot specific rules
9 message => message.ruleId === 'jest/no-large-snapshots'
10 );
11
12module.exports = {
13 preprocess,
14 postprocess,
15};