0
0
Fork 0

Improve lint-staged config (#28704)

This commit is contained in:
Renaud Chaput 2024-01-12 10:09:57 +01:00 committed by GitHub
parent 575ab085be
commit 923fc83190
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 7 deletions

11
lint-staged.config.js Normal file
View file

@ -0,0 +1,11 @@
const config = {
'*': 'prettier --ignore-unknown --write',
'Capfile|Gemfile|*.{rb,ruby,ru,rake}':
'bundle exec rubocop --force-exclusion -a',
'*.{js,jsx,ts,tsx}': 'eslint --fix',
'*.{css,scss}': 'stylelint --fix',
'*.haml': 'bundle exec haml-lint -a',
'**/*.ts?(x)': () => 'tsc -p tsconfig.json --noEmit',
};
module.exports = config;