eslint-plugin-jest
Version:
Eslint rules for Jest
11 lines (8 loc) • 370 B
JavaScript
; // https://eslint.org/docs/developer-guide/working-with-plugins#processors-in-plugins
const preprocess = source => [source];
const postprocess = messages => messages[0].filter( // snapshot files should only be linted with snapshot specific rules
message => message.ruleId === 'jest/no-large-snapshots');
module.exports = {
preprocess,
postprocess
};