1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-24 07:06:18 +09:00
mastodon/lint-staged.config.js

12 lines
351 B
JavaScript
Raw Normal View History

2024-01-12 18:09:57 +09:00
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;