UNPKG

putout

Version:

the pluggable code transformer

20 lines (14 loc) 394 B
'use strict'; const { eslintPluginRegExp, putoutPluginRegExp, } = require('.'); module.exports = (places) => { for (const {rule} of places) { const isEslintPlugin = eslintPluginRegExp.test(rule); const isPutoutPlugin = putoutPluginRegExp.test(rule); if (isEslintPlugin && !isPutoutPlugin) return true; } return false; };