{"_id":"@coding-with-hassan/lint-staged-config","name":"@coding-with-hassan/lint-staged-config","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@coding-with-hassan/lint-staged-config","version":"0.1.0","description":"Project-aware lint-staged config for monorepos with a NestJS API and an Angular SPA side by side.","license":"MIT","author":{"name":"Hassan Khousheish"},"repository":{"type":"git","url":"git+https://github.com/CodiNG-With-Hassan/hassan-devkit.git","directory":"packages/lint-staged-config"},"keywords":["lint-staged","husky","monorepo"],"main":"./index.js","exports":{".":"./index.js"},"peerDependencies":{"lint-staged":">=15"},"publishConfig":{"access":"public"},"_id":"@coding-with-hassan/lint-staged-config@0.1.0","bugs":{"url":"https://github.com/CodiNG-With-Hassan/hassan-devkit/issues"},"homepage":"https://github.com/CodiNG-With-Hassan/hassan-devkit#readme","_integrity":"sha512-XzUoMi00QPnR97eeaXb7c5QEAO8KJI9uMbdjLemlcy/dngpsiUSvIdvHIapYwTfjBIK2BGjFhJmZn76ZAYPOAw==","_resolved":"/tmp/574ed5fbcd47f5ef3d5ea2050d540145/coding-with-hassan-lint-staged-config-0.1.0.tgz","_from":"file:coding-with-hassan-lint-staged-config-0.1.0.tgz","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-XzUoMi00QPnR97eeaXb7c5QEAO8KJI9uMbdjLemlcy/dngpsiUSvIdvHIapYwTfjBIK2BGjFhJmZn76ZAYPOAw==","shasum":"2ff4c666f0a66c1f3027cb70cab795fa33b317ab","tarball":"https://registry.npmjs.org/@coding-with-hassan/lint-staged-config/-/lint-staged-config-0.1.0.tgz","fileCount":4,"unpackedSize":3804,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIH6vT5ZHtFgg7VakM3+eo4q3Z3MjLbgkhJe1yNo65D7KAiEA3Byw9+Hp9Ndh9L2XXGZuWzG3pQx4T7rbXoWwSeJH3Sc="}]},"_npmUser":{"name":"khousheish","email":"khousheish@live.com"},"directories":{},"maintainers":[{"name":"khousheish","email":"khousheish@live.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lint-staged-config_0.1.0_1779623193119_0.5768024549307744"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-24T11:46:32.986Z","0.1.0":"2026-05-24T11:46:33.253Z","modified":"2026-05-24T11:46:33.474Z"},"maintainers":[{"name":"khousheish","email":"khousheish@live.com"}],"description":"Project-aware lint-staged config for monorepos with a NestJS API and an Angular SPA side by side.","homepage":"https://github.com/CodiNG-With-Hassan/hassan-devkit#readme","keywords":["lint-staged","husky","monorepo"],"repository":{"type":"git","url":"git+https://github.com/CodiNG-With-Hassan/hassan-devkit.git","directory":"packages/lint-staged-config"},"author":{"name":"Hassan Khousheish"},"bugs":{"url":"https://github.com/CodiNG-With-Hassan/hassan-devkit/issues"},"license":"MIT","readme":"# @coding-with-hassan/lint-staged-config\n\nProject-aware [lint-staged](https://github.com/lint-staged/lint-staged) config factory. Designed for monorepos where a NestJS API and an Angular SPA live in sibling folders at the repo root.\n\n## Install\n\n```sh\npnpm add -D @coding-with-hassan/lint-staged-config lint-staged\n```\n\n## Use\n\nCreate `lint-staged.config.js` at the repo root:\n\n```js\nmodule.exports = require('@coding-with-hassan/lint-staged-config')({\n  api: 'de-autozaak-car-rental',\n  spa: 'de-autozaak-car-rental-spa',\n});\n```\n\nBoth keys are optional — omit one if your repo only has the other side.\n\n## What it does\n\nFor the **API** folder:\n- `*.ts` → run ESLint with `--fix --cache`, scoped to that project (`pnpm -C <dir>`)\n\nFor the **SPA** folder:\n- `*.ts`, `*.html` → run Prettier `--write` then ESLint `--fix --cache`, scoped to that project\n- `*.scss`, `*.css`, `*.json` → run Prettier `--write`, scoped to that project\n\nPer-project scoping means each side uses its own ESLint/Prettier config, so backend conventions don't leak into the frontend or vice versa.\n","readmeFilename":"README.md","_rev":"1-0f05646e67350d055c62f558fa2f2aad"}