Files
mastodon-sakyey/lint-staged.config.js

15 lines
474 B
JavaScript
Raw Normal View History

2024-01-12 10:09:57 +01:00
const config = {
'*': 'oxfmt --no-error-on-unmatched-pattern',
'Gemfile|*.{rb,ruby,ru,rake}': 'bin/rubocop --force-exclusion -a',
2024-01-12 10:09:57 +01:00
'*.{js,jsx,ts,tsx}': 'eslint --fix',
'*.{css,scss}': 'stylelint --fix',
'*.haml': 'bin/haml-lint -a',
2024-01-12 10:09:57 +01:00
'**/*.ts?(x)': () => 'tsc -p tsconfig.json --noEmit',
'app/javascript/**/*.{js,jsx,ts,tsx}': () => [
`yarn i18n:extract`,
'git diff --exit-code app/javascript/mastodon/locales/en.json',
],
2024-01-12 10:09:57 +01:00
};
module.exports = config;