lint-staged.config.js 351 B

1234567891011
  1. const config = {
  2. '*': 'prettier --ignore-unknown --write',
  3. 'Capfile|Gemfile|*.{rb,ruby,ru,rake}':
  4. 'bundle exec rubocop --force-exclusion -a',
  5. '*.{js,jsx,ts,tsx}': 'eslint --fix',
  6. '*.{css,scss}': 'stylelint --fix',
  7. '*.haml': 'bundle exec haml-lint -a',
  8. '**/*.ts?(x)': () => 'tsc -p tsconfig.json --noEmit',
  9. };
  10. module.exports = config;