-
- Downloads
Add a basic i18n lint implementation that will warn us about missing and unsorted keys
... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
"dist" | "dist" | ||
], | ], | ||
"scripts": { | "scripts": { | ||
"lint": "node_modules/.bin/eslint ./ && node_modules/.bin/sass-lint -v ./src/styles/**/*", | "lint": "node_modules/.bin/eslint ./ && node_modules/.bin/sass-lint -v ./src/styles/**/* && node ./scripts/i18n-lint.js", | ||
"server": "node_modules/.bin/http-server", | "server": "node_modules/.bin/http-server", | ||
"test": "npm run build && npm run lint && npm run size && jest -c jest.json", | "test": "npm run build && npm run lint && npm run size && jest -c jest.json", | ||
"test:watch": "jest -c jest.json --watch", | "test:watch": "jest -c jest.json --watch", | ||
... | @@ -71,6 +71,7 @@ | ... | @@ -71,6 +71,7 @@ |
"babel-eslint": "10.0.1", | "babel-eslint": "10.0.1", | ||
"babel-jest": "^24.1.0", | "babel-jest": "^24.1.0", | ||
"babel-loader": "^8.0.4", | "babel-loader": "^8.0.4", | ||
"chalk": "^2.4.2", | |||
"codecov": "^3.1.0", | "codecov": "^3.1.0", | ||
"concurrently": "^4.0.1", | "concurrently": "^4.0.1", | ||
"css-loader": "^2.1.0", | "css-loader": "^2.1.0", | ||
... | @@ -85,6 +86,7 @@ | ... | @@ -85,6 +86,7 @@ |
"eslint-plugin-jest": "^22.2.2", | "eslint-plugin-jest": "^22.2.2", | ||
"eslint-plugin-jsx-a11y": "^6.2.0", | "eslint-plugin-jsx-a11y": "^6.2.0", | ||
"eslint-plugin-react": "^7.12.4", | "eslint-plugin-react": "^7.12.4", | ||
"glob": "^7.1.3", | |||
"http-server": "^0.11.1", | "http-server": "^0.11.1", | ||
"jest": "^24.1.0", | "jest": "^24.1.0", | ||
"jest-fetch-mock": "^2.1.1", | "jest-fetch-mock": "^2.1.1", | ||
... | ... |
scripts/i18n-lint.js
0 → 100644
Please register or sign in to comment