1
0
Fork 1
mirror of https://github.com/mastodon/mastodon.git synced 2024-12-14 14:29:28 +00:00
mastodon/lint-staged.config.js

11 lines
331 B
JavaScript
Raw Normal View History

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