Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
feat(add new script for checking missing translations): translations
Browse files Browse the repository at this point in the history
I add new dep for running typscript script(ts-node). I update the linter path for checking the new
folder scripts. With the command yarn translation:check you can check if some translations are
missing. All erros will print in the console

fix #1919
  • Loading branch information
marcosvega91 committed May 2, 2020
1 parent 1693e5f commit 9ca5232
Show file tree
Hide file tree
Showing 5 changed files with 654 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
project: ['./tsconfig.json', './scripts/tsconfig.json'],
tsconfigRootDir: './',
},
settings: {
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,12 @@
"prepublishOnly": "npm run build",
"test": "react-scripts test --detectOpenHandles",
"test:ci": "cross-env CI=true react-scripts test --passWithNoTests",
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
"lint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix",
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\" \"scripts/**/*.{js,ts}\"",
"lint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx}\" \"scripts/**/*.{js,ts}\" --fix",
"lint-staged": "lint-staged",
"commitlint": "commitlint",
"coveralls": "npm run test:ci -- --coverage --watchAll=false && cat ./coverage/lcov.info"
"coveralls": "npm run test:ci -- --coverage --watchAll=false && cat ./coverage/lcov.info",
"translation:check": "ts-node-script scripts/checkMissingTranslations.ts"
},
"browserslist": {
"production": [
Expand Down
Loading

0 comments on commit 9ca5232

Please sign in to comment.