diff --git a/src/config/lintstagedrc.js b/src/config/lintstagedrc.js index 12ffed6e..ff4ea21b 100644 --- a/src/config/lintstagedrc.js +++ b/src/config/lintstagedrc.js @@ -8,7 +8,7 @@ module.exports = { linters: { 'README.md': [`${doctoc} --maxlevel 3 --notitle`, 'git add'], '.all-contributorsrc': [`${itpScripts} contributors generate`, 'git add README.md'], - '**/*.+(json|js|less|css|tsx|ts|md)': [ + '**/*.+(js|json|less|css|ts|tsx|md)': [ isOptedOut('autoformat', null, `${itpScripts} format`), `${itpScripts} lint --fix`, `${itpScripts} test --findRelatedTests --passWithNoTests`,