scripts/search/extractExamples.js
Function extractExamples
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const extractExamples = file => {
const code = fs.readFileSync(file.path).toString();
const componentName = file.path.match(/src\/components\/([a-zA-Z]+)\/readme.md$/i)[1];
const examples = [];
const myPlugin = () => {