source: frontend/node_modules/eslint-plugin-jest/lib/processors/snapshot-processor.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 574 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.preprocess = exports.postprocess = void 0;
7
8// https://eslint.org/docs/developer-guide/working-with-plugins#processors-in-plugins
9// https://github.com/typescript-eslint/typescript-eslint/issues/808
10const preprocess = source => [source];
11
12exports.preprocess = preprocess;
13
14const postprocess = messages => // snapshot files should only be linted with snapshot specific rules
15messages[0].filter(message => message.ruleId === 'jest/no-large-snapshots');
16
17exports.postprocess = postprocess;
Note: See TracBrowser for help on using the repository browser.