Add a i18n check in pre-commit for JS files (#37793)
This commit is contained in:
parent
0b8ce7200a
commit
837d1decc9
@ -5,6 +5,10 @@ const config = {
|
|||||||
'*.{css,scss}': 'stylelint --fix',
|
'*.{css,scss}': 'stylelint --fix',
|
||||||
'*.haml': 'bin/haml-lint -a',
|
'*.haml': 'bin/haml-lint -a',
|
||||||
'**/*.ts?(x)': () => 'tsc -p tsconfig.json --noEmit',
|
'**/*.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;
|
module.exports = config;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user