π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Standardize lint scripts
Manav Rathie2eeae2e0ad8
diff --git a/desktop/docs/dev.md b/desktop/docs/dev.mdindex 3ea6d8c7ea..612ec03a8f 100644--- a/desktop/docs/dev.md+++ b/desktop/docs/dev.md@@ -31,8 +31,8 @@ are built against `electron`'s packaged `node` version. We useto rebuild those modules automatically after each dependency install byinvoking it in as the `postinstall` step in our package.json.-### lint, lint-fix+### lint, lint:fixUse `yarn lint` to check that your code formatting is as expected, and that-there are no linter errors. Use `yarn lint-fix` to try and automatically fix the+there are no linter errors. Use `yarn lint:fix` to try and automatically fix theissues.diff --git a/desktop/package.json b/desktop/package.jsonindex caee05b0d0..ee6b35de45 100644--- a/desktop/package.json+++ b/desktop/package.json@@ -18,7 +18,7 @@"dev-renderer": "cross-env-shell _ENTE_IS_DESKTOP=1 \"cd ../web && yarn install --frozen-lockfile && yarn workspace photos next dev -p 3008\"","postinstall": "electron-builder install-app-deps","lint": "yarn prettier --check --log-level warn . && yarn eslint && yarn tsc",- "lint-fix": "yarn prettier --write --log-level warn . && yarn eslint && yarn tsc",+ "lint:fix": "yarn prettier --write --log-level warn . && yarn eslint && yarn tsc","prepare": "node scripts/vips.js"},"dependencies": {diff --git a/docs/CLAUDE.md b/docs/CLAUDE.mdindex b66f777cc5..46d4028991 100644--- a/docs/CLAUDE.md+++ b/docs/CLAUDE.md@@ -8,7 +8,6 @@ Documentation for Ente's products published at [ente.com/help](https://ente.com/npm ci # Install dependenciesnpm run dev # Start local dev servernpm run build # Build for production-npm run pretty # Format all files with Prettier```Use plain `npm install` only when intentionally updating dependencies and reviewing the resulting `package-lock.json` changes.diff --git a/docs/package.json b/docs/package.jsonindex 1d6dc7e8ef..d88b92d794 100644--- a/docs/package.json+++ b/docs/package.json@@ -5,8 +5,8 @@"dev": "vitepress dev docs","build": "vitepress build docs","preview": "vitepress preview docs",- "pretty": "prettier --write .",- "pretty:check": "prettier -c ."+ "lint": "prettier --check --log-level warn .",+ "lint:fix": "prettier --write --log-level warn ."},"devDependencies": {"prettier": "3.8.3",diff --git a/infra/staff/README.md b/infra/staff/README.mdindex 02cb5060d2..91004d3b86 100644--- a/infra/staff/README.md+++ b/infra/staff/README.md@@ -25,14 +25,10 @@ VITE_ENTE_API_ORIGIN=http://localhost:8080 npm run dev### Checks```sh-npm run lint+npm run lint # or lint:fixnpm run build```-> [!TIP]->-> See [web/docs/new.md](../../web/docs/new.md) for help in setting up your editor to do the formatting and linting. You can also run the formatter and linter manually using `npm run lint-fix`.-### DeploymentThe app gets redeployed whenever a PR that touches `infra/staff/**` is merged into main. See [web/docs/deploy.md](../../web/docs/deploy.md) for details.diff --git a/infra/staff/package.json b/infra/staff/package.jsonindex 10b6574fb1..e91f884701 100644--- a/infra/staff/package.json+++ b/infra/staff/package.json@@ -7,8 +7,7 @@"build": "tsc && vite build","dev": "vite","lint": "prettier --check --log-level warn . && eslint . && tsc",- "lint-fix": "prettier --write --log-level warn . && eslint --fix . && tsc",- "preview": "vite preview"+ "lint:fix": "prettier --write --log-level warn . && eslint --fix . && tsc"},"dependencies": {"@emotion/react": "11.14.0",diff --git a/web/CLAUDE.md b/web/CLAUDE.mdindex d73cd29714..13ff01ca1d 100644--- a/web/CLAUDE.md+++ b/web/CLAUDE.md@@ -43,7 +43,7 @@ yarn build:cast # Cast app# 2. Before creating a commit (pre-commit)# DO NOT run automatically after file modificationsyarn lint # Check formatting, linting, and TypeScript types-yarn lint-fix # Auto-fix linting and formatting issues+yarn lint:fix # Auto-fix linting and formatting issues```Use plain `yarn install` only when intentionally updating dependencies anddiff --git a/web/docs/dev.md b/web/docs/dev.mdindex 4ff323eb3c..777504e6b6 100644--- a/web/docs/dev.md+++ b/web/docs/dev.md@@ -39,10 +39,10 @@ that can be then deployed to any web server.There is one `yarn build:foo` for each app, e.g. `yarn build:auth`. The outputwill be placed in `apps/<foo>/out`, e.g. `apps/auth/out`.-### lint, lint-fix+### lint, lint:fixUse `yarn lint` to check that your code formatting is as expected, and that-there are no linter errors. Use `yarn lint-fix` to try and automatically fix the+there are no linter errors. Use `yarn lint:fix` to try and automatically fix theissues.## Monorepodiff --git a/web/package.json b/web/package.jsonindex c887b46d83..edb325d427 100644--- a/web/package.json+++ b/web/package.json@@ -39,7 +39,7 @@"dev:share": "yarn build:wasm && yarn workspace share next dev -p 3005","dev:twoof3": "yarn workspace twoof3 next dev -p 3009","lint": "concurrently --names 'prettier,eslint,tsc' \"yarn prettier --check --log-level warn .\" \"yarn workspaces run eslint\" \"yarn workspaces run tsc\"",- "lint-fix": "concurrently --names 'prettier,eslint,tsc' \"yarn prettier --write --log-level warn .\" \"yarn workspaces run eslint --fix\" \"yarn workspaces run tsc\"",+ "lint:fix": "concurrently --names 'prettier,eslint,tsc' \"yarn prettier --write --log-level warn .\" \"yarn workspaces run eslint --fix\" \"yarn workspaces run tsc\"","test": "yarn workspace ente-wasm test && yarn workspace ente-contacts-web test"},"resolutions": {