const {resolveKcdScripts, resolveBin} = require('../utils')

const kcdScripts = resolveKcdScripts()
const doctoc = resolveBin('doctoc')

module.exports = {
  'README.md': [`${doctoc} --maxlevel 3 --notitle`],
  '*.+(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|graphql|mdx|vue)': [
    `${kcdScripts} format`,
    `${kcdScripts} lint`,
    `${kcdScripts} test --findRelatedTests`,
  ],
}

@@ -254,16 +254,20 @@
 %7Ctsx%7Cmd%7C
+gql%7C
 graphql%7C

add .gql files in lintstagedrc (#198)