UNPKG

509 BJavaScriptView Raw
1"use strict";
2
3const {
4 resolveKcdScripts,
5 resolveBin,
6 isOptedOut
7} = require('../utils');
8
9const kcdScripts = resolveKcdScripts();
10const doctoc = resolveBin('doctoc');
11module.exports = {
12 'README.md': [`${doctoc} --maxlevel 3 --notitle`, 'git add'],
13 '*.+(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|graphql|mdx|vue)': [isOptedOut('autoformat', null, `${kcdScripts} format`), `${kcdScripts} lint`, `${kcdScripts} test --findRelatedTests`, isOptedOut('autoformat', null, 'git add')].filter(Boolean)
14};
\No newline at end of file