i18n linting

This commit is contained in:
caranicas 2022-09-19 10:30:33 -04:00
parent 1bd4a0f4ee
commit 330fa10935
3 changed files with 680 additions and 209 deletions

View File

@ -1,11 +1,16 @@
{ {
"root": true, "root": true,
"parser": "@typescript-eslint/parser", "parser": "@typescript-eslint/parser",
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"], "extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:i18next/recommended"
],
"rules": { "rules": {
"@typescript-eslint/ban-ts-comment": "off", "@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-array-constructor": "off", "@typescript-eslint/no-array-constructor": "off",
"prefer-const": "off", "prefer-const": "off",
"no-debugger": "warn" "no-debugger": "warn",
"i18next/no-literal-string": "warn"
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -4,6 +4,7 @@
"version": "0.0.0", "version": "0.0.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"lint": "eslint --ext .tsx --fix src",
"pretty": "prettier --write .", "pretty": "prettier --write .",
"dev": "vite", "dev": "vite",
"build": "tsc && vite build --emptyOutDir", "build": "tsc && vite build --emptyOutDir",
@ -32,9 +33,13 @@
"@typescript-eslint/eslint-plugin": "^5.37.0", "@typescript-eslint/eslint-plugin": "^5.37.0",
"@typescript-eslint/parser": "^5.37.0", "@typescript-eslint/parser": "^5.37.0",
"@vitejs/plugin-react": "^2.0.1", "@vitejs/plugin-react": "^2.0.1",
"eslint": "^8.23.1",
"eslint-plugin-i18n-json": "^4.0.0",
"eslint-plugin-i18next": "^6.0.0-4",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"typescript": "^4.6.4", "typescript": "^4.6.4",
"vite": "^3.0.7" "vite": "^3.0.7",
"vite-plugin-eslint": "^1.8.1"
}, },
"overrides": { "overrides": {
"@vanilla-extract/vite-plugin": { "@vanilla-extract/vite-plugin": {