You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/lint-staged.config.js

15 lines
474 B
JavaScript

const config = {
'*': 'oxfmt --no-error-on-unmatched-pattern',
'Gemfile|*.{rb,ruby,ru,rake}': 'bin/rubocop --force-exclusion -a',
'*.{js,jsx,ts,tsx}': 'eslint --fix',
'*.{css,scss}': 'stylelint --fix',
'*.haml': 'bin/haml-lint -a',
'**/*.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',
],
};
module.exports = config;