1 | "use strict";
|
2 |
|
3 | const {
|
4 | resolveKcdScripts,
|
5 | resolveBin,
|
6 | isOptedOut
|
7 | } = require('../utils');
|
8 |
|
9 | const kcdScripts = resolveKcdScripts();
|
10 | const doctoc = resolveBin('doctoc');
|
11 | module.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 |