mirror of
https://github.com/hanzoai/eslint.git
synced 2026-10-30 19:38:10 +00:00
14 lines
337 B
JavaScript
14 lines
337 B
JavaScript
module.exports = {
|
|
processors: {
|
|
".txt": {
|
|
preprocess: function(text) {
|
|
return [text.replace("a()", "b()")];
|
|
},
|
|
postprocess: function(messages) {
|
|
messages[0][0].ruleId = "post-processed";
|
|
return messages[0];
|
|
}
|
|
}
|
|
}
|
|
};
|