{"_id":"@dayy-com/eslint-config","_rev":"11-a93a351217a812bdf5a3469416d159d4","name":"@dayy-com/eslint-config","dist-tags":{"latest":"0.0.1-beta.3"},"versions":{"0.0.1-beta.1":{"name":"@dayy-com/eslint-config","version":"0.0.1-beta.1","author":{"name":"dayy GmbH","email":"hi@dayy.de"},"license":"MIT","_id":"@dayy-com/eslint-config@0.0.1-beta.1","maintainers":[{"name":"hendrikhaack","email":"hi@hendrikhaack.de"}],"contributors":[{"name":"Hendrik Haack","email":"hendrik.haack@dayy.de"}],"homepage":"https://www.dayy.de/","bugs":{"url":"https://github.com/dayy-com/eslint-config/issues"},"dist":{"shasum":"f022f46bdd0561fca73653a68109510eb21971d7","tarball":"https://registry.npmjs.org/@dayy-com/eslint-config/-/eslint-config-0.0.1-beta.1.tgz","fileCount":10,"integrity":"sha512-840UhopOb74ePpNYQW4WosT0jNlHqGQe2DEioABUM0EMl8hIosk0dqmoHv2ZtJOvOTtaNpiaIoHMg0T04pPzUQ==","signatures":[{"sig":"MEQCIFpFT9xq9IfNeA3C+B5ttqFqdkwHNEawTv76LStk+VNBAiABAH4sd/xXTryr1usKtir0Q9sb8n4R9t/IWCljvsCCvA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7661},"exports":{".":"./modules/default.js","./base":"./modules/base.js","./next":"./modules/next.js","./sanity":"./modules/sanity.js","./prettierConfig":"./lib/prettier.js"},"private":false,"_npmUser":{"name":"hendrikhaack","email":"hi@hendrikhaack.de"},"prettier":"./lib/prettier.js","repository":{"url":"git+https://github.com/dayy-com/eslint-config.git","type":"git"},"_npmVersion":"10.1.0","description":"dayy’s ESLint config with Prettier and support for Next.js, Sanity and TypeScript","directories":{},"_nodeVersion":"20.9.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.54.0","prettier":"^3.1.0","eslint-config-next":"^14.0.3","eslint-plugin-react":"^7.33.2","eslint-config-airbnb":"^19.0.4","eslint-plugin-import":"^2.29.0","eslint-config-prettier":"^9.0.0","eslint-plugin-jsx-a11y":"^6.8.0","eslint-plugin-prettier":"^5.0.1","@rushstack/eslint-patch":"^1.5.1","@typescript-eslint/parser":"^6.11.0","eslint-plugin-react-hooks":"^4.6.0","@sanity/eslint-config-studio":"^3.0.1","eslint-config-airbnb-typescript":"^17.1.0","@typescript-eslint/eslint-plugin":"^6.11.0","eslint-plugin-simple-import-sort":"^10.0.0"},"peerDependencies":{"eslint":"^8.54.0","prettier":"^3.1.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-config_0.0.1-beta.1_1702909145420_0.25745020529478313","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.1-beta.2":{"name":"@dayy-com/eslint-config","version":"0.0.1-beta.2","author":{"name":"dayy GmbH","email":"hi@dayy.de"},"license":"MIT","_id":"@dayy-com/eslint-config@0.0.1-beta.2","maintainers":[{"name":"hendrikhaack","email":"hi@hendrikhaack.de"}],"contributors":[{"name":"Hendrik Haack","email":"hendrik.haack@dayy.de"}],"homepage":"https://www.dayy.de/","bugs":{"url":"https://github.com/dayy-com/eslint-config/issues"},"dist":{"shasum":"3f72b2ff06b2e4b4b20be182e66e5ca2f2de421e","tarball":"https://registry.npmjs.org/@dayy-com/eslint-config/-/eslint-config-0.0.1-beta.2.tgz","fileCount":10,"integrity":"sha512-n0s5jIQMDZp9OAxEMaFj07hxcy2VaiDq/491/ew6vUoDH8TfABhn2rbPyTSDyWrYdT3leVxY6TUKsfQJ5fI9FA==","signatures":[{"sig":"MEUCIQDzsbQKipEDsTlGPYpWaWlTbSNCeqxS2opfga2QHJT/5gIgbMyao8dKgK2B1zBJ8f+eVxlh/G4pXdkcGE3QPmlVPTg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8260},"readme":"# dayy® eslint config\n\n> [!CAUTION]\n> This package is currently in beta. Use at your own risk. Breaking changes may occur.\n\n1. [Installation](#installation)\n2. [Modules](#modules)\n3. [Prettier w/ Tailwind CSS](#prettier-w-tailwind-css)\n4. [Troubleshooting](#troubleshooting)\n5. [Bonus: VSCode integration](#bonus-vscode-integration--formatting-on-save-optional-but-recommended)\n6. [Bonus: Lint staged](#bonus-lint-staged)\n\n## Installation\n\nInstall package:\n\n```bash\n$ npm i -D @dayy-com/eslint-config\n```\n\nThen, create a `.eslintrc.js` file or modify the existing one in the root of your project’s directory with the following contents (please remove any other configuration files e.g. `.eslintrc.json` if you have any):\n\n```js\nmodule.exports = {\n  extends: ['@dayy-com'],\n};\n```\n\nFinally, you can add two scripts to your package.json to lint and/or fix your code:\n\n```json\n{\n  ...\n  \"scripts\": {\n    \"lint\": \"eslint . --ignore-path .gitignore\",\n    \"lint:fix\": \"npm run lint -- --fix\"\n  }\n}\n```\n\n## Modules\n\n<details>\n  <summary><strong>Next.js</strong></summary>\n\n### Usage with Next.js\n\nChange your `.eslintrc.js` file in the root of your project’s directory with the following contents:\n\n```js\nmodule.exports = {\n  extends: ['@dayy-com/eslint-config/next'],\n};\n```\n\n</details>\n\n<details>\n  <summary><strong>Sanity.io</strong></summary>\n\n### Usage with Sanity.io\n\nChange your `.eslintrc.js` file in the root of your project’s directory with the following contents:\n\n```js\nmodule.exports = {\n  extends: ['@dayy-com/eslint-config/sanity'],\n};\n```\n\n</details>\n\n<details>\n  <summary><strong>Non React projects</strong></summary>\n\n### Usage with non React projects\n\nChange your `.eslintrc.js` file in the root of your project’s directory with the following contents:\n\n```js\nmodule.exports = {\n  extends: ['@dayy-com/eslint-config/base'],\n};\n```\n\n</details>\n\n## Prettier w/ Tailwind CSS\n\nIf you use Tailwind CSS, you can use the following Prettier configuration to make sure that your Tailwind CSS classes are formatted correctly.\n\nFirst install `prettier` and `prettier-plugin-tailwindcss`:\n\n```bash\n$ npm i -D prettier prettier-plugin-tailwindcss\n```\n\nThen, create a `.prettierrc.js` file in the root of your project’s directory with the following contents:\n\n```js\nconst prettierConfig = require('@dayy-com/eslint-config/lib/prettier');\n\nmodule.exports = {\n  ...prettierConfig,\n\n  plugins: ['prettier-plugin-tailwindcss'],\n};\n```\n\n## Troubleshooting\n\n<details>\n  <summary><strong>ESLint was configured to run on `<tsconfigRootDir>/.eslintrc.js` using `parserOptions.project`</strong></summary>\n\nModify your `tsconfig.json` file in the root of your project’s directory with the following contents:\n\n```json\n{\n  ...\n  \"include\": [\n    ...,\n    \"./.eslintrc.js\"\n  ],\n}\n```\n\n</details>\n\n## Bonus: VSCode integration / formatting on save (optional but recommended)\n\nInstall the ESLint extension for VSCode (if you haven’t already):\n\n```bash\n$ code --install-extension dbaeumer.vscode-eslint\n```\n\nThen, create a `.vscode/extensions.json` file in the root of your project’s directory with the following contents:\n\n```json\n{\n  \"recommendations\": [\"dbaeumer.vscode-eslint\"]\n}\n```\n\nNext up, create a `.vscode/settings.json` file in the root of your project’s directory with the following contents:\n\n```json\n{\n  \"editor.defaultFormatter\": \"dbaeumer.vscode-eslint\",\n  \"editor.formatOnSave\": true\n}\n```\n\n## To do\n\n- Lint staged\n- GitHub Release Action\n","exports":{".":"./modules/default.js","./base":"./modules/base.js","./next":"./modules/next.js","./sanity":"./modules/sanity.js","./prettierConfig":"./lib/prettier.js"},"private":false,"_npmUser":{"name":"hendrikhaack","email":"hi@hendrikhaack.de"},"prettier":"./lib/prettier.js","repository":{"url":"git+https://github.com/dayy-com/eslint-config.git","type":"git"},"_npmVersion":"10.1.0","description":"dayy’s ESLint config with Prettier and support for Next.js, Sanity and TypeScript","directories":{},"_nodeVersion":"20.9.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^8.54.0","prettier":"^3.1.0","eslint-config-next":"^14.0.3","eslint-plugin-react":"^7.33.2","eslint-config-airbnb":"^19.0.4","eslint-plugin-import":"^2.29.0","eslint-config-prettier":"^9.0.0","eslint-plugin-jsx-a11y":"^6.8.0","eslint-plugin-prettier":"^5.0.1","@rushstack/eslint-patch":"^1.5.1","@typescript-eslint/parser":"^6.11.0","eslint-plugin-react-hooks":"^4.6.0","@sanity/eslint-config-studio":"^3.0.1","eslint-config-airbnb-typescript":"^17.1.0","@typescript-eslint/eslint-plugin":"^6.11.0","eslint-plugin-simple-import-sort":"^10.0.0"},"peerDependencies":{"eslint":"^8.54.0","prettier":"^3.1.0","eslint-config-next":"^14.0.3","eslint-plugin-react":"^7.33.2","eslint-config-airbnb":"^19.0.4","eslint-plugin-import":"^2.29.0","eslint-config-prettier":"^9.0.0","eslint-plugin-jsx-a11y":"^6.8.0","eslint-plugin-prettier":"^5.0.1","@rushstack/eslint-patch":"^1.5.1","@typescript-eslint/parser":"^6.11.0","eslint-plugin-react-hooks":"^4.6.0","@sanity/eslint-config-studio":"^3.0.1","eslint-config-airbnb-typescript":"^17.1.0","@typescript-eslint/eslint-plugin":"^6.11.0","eslint-plugin-simple-import-sort":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-config_0.0.1-beta.2_1702909478026_0.9234578392089947","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.1-beta.3":{"name":"@dayy-com/eslint-config","version":"0.0.1-beta.3","author":{"name":"dayy GmbH","email":"hi@dayy.de"},"license":"MIT","_id":"@dayy-com/eslint-config@0.0.1-beta.3","maintainers":[{"name":"hendrikhaack","email":"hi@hendrikhaack.de"}],"contributors":[{"name":"Hendrik Haack","email":"hendrik.haack@dayy.de"}],"homepage":"https://www.dayy.de/","bugs":{"url":"https://github.com/dayy-com/eslint-config/issues"},"dist":{"shasum":"d6cd7fad69b032535f14c63b354a288a7bcf6db7","tarball":"https://registry.npmjs.org/@dayy-com/eslint-config/-/eslint-config-0.0.1-beta.3.tgz","fileCount":10,"integrity":"sha512-66JfkPaHaywqechwxjXSmq3DfizxlTuUwJ7+0/OCrEFd1KFx43b1fPzfcyvkDqI5Xu2TbyD7nBRkJ3DARAqLJQ==","signatures":[{"sig":"MEUCIQDXQR//RQrqyNuXWV6pkHLv0Nb5vNUelecLTA/hQDHXFAIgVoWwhvs5QsbLjQcz2YYDnlIyBdLOpxwmov+hOkJOgO0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9307},"readme":"# dayy® eslint config\n\n<a href=\"https://www.npmjs.com/package/@dayy-com/eslint-config\"><img src=\"https://img.shields.io/npm/dt/@dayy-com/eslint-config.svg\" alt=\"Total Downloads\"></a>\n<a href=\"https://github.com/dayy-com/eslint-config/releases\"><img src=\"https://img.shields.io/npm/v/@dayy-com/eslint-config.svg\" alt=\"Latest Release\"></a>\n<a href=\"https://github.com/dayy-com/eslint-config/blob/master/LICENSE\"><img src=\"https://img.shields.io/npm/l/@dayy-com/eslint-config.svg\" alt=\"License\"></a>\n\n> [!CAUTION]\n> This package is currently in beta. Use at your own risk. Breaking changes may occur.\n\n1. [Installation](#installation)\n2. [Modules](#modules)\n3. [Prettier w/ Tailwind CSS](#prettier-w-tailwind-css)\n4. [Troubleshooting](#troubleshooting)\n5. [Bonus: VSCode integration](#bonus-vscode-integration--formatting-on-save-optional-but-recommended)\n6. [Bonus: Lint staged](#bonus-lint-staged)\n7. [To do](#to-do)\n\n## Installation\n\nInstall package:\n\n```bash\n$ npm i -D @dayy-com/eslint-config\n```\n\nThen, create a `.eslintrc.js` file or modify the existing one in the root of your project’s directory with the following contents (please remove any other configuration files e.g. `.eslintrc.json` if you have any):\n\n```js\nmodule.exports = {\n  extends: ['@dayy-com'],\n};\n```\n\nFinally, you can add two scripts to your package.json to lint and/or fix your code:\n\n```json\n{\n  ...\n  \"scripts\": {\n    \"lint\": \"eslint . --ignore-path .gitignore\",\n    \"lint:fix\": \"npm run lint -- --fix\"\n  }\n}\n```\n\n## Modules\n\n<details>\n  <summary><strong>Next.js</strong></summary>\n\n  ### Usage with Next.js\n\n  Change your `.eslintrc.js` file in the root of your project’s directory with the following contents:\n\n  ```js\n  module.exports = {\n    extends: ['@dayy-com/eslint-config/next'],\n  };\n  ```\n</details>\n\n<details>\n  <summary><strong>Sanity.io</strong></summary>\n\n  ### Usage with Sanity.io\n\n  Change your `.eslintrc.js` file in the root of your project’s directory with the following contents:\n\n  ```js\n  module.exports = {\n    extends: ['@dayy-com/eslint-config/sanity'],\n  };\n  ```\n</details>\n\n<details>\n  <summary><strong>Non React projects</strong></summary>\n\n  ### Usage with non React projects\n\n  Change your `.eslintrc.js` file in the root of your project’s directory with the following contents:\n\n  ```js\n  module.exports = {\n    extends: ['@dayy-com/eslint-config/base'],\n  };\n  ```\n</details>\n\n## Prettier w/ Tailwind CSS\n\nIf you use Tailwind CSS, you can use the following Prettier configuration to make sure that your Tailwind CSS classes are formatted correctly.\n\nFirst install `prettier` and `prettier-plugin-tailwindcss`:\n\n```bash\n$ npm i -D prettier prettier-plugin-tailwindcss\n```\n\nThen, create a `.prettierrc.js` file in the root of your project’s directory with the following contents:\n\n```js\nconst prettierConfig = require('@dayy-com/eslint-config/lib/prettier');\n\nmodule.exports = {\n  ...prettierConfig,\n\n  plugins: ['prettier-plugin-tailwindcss'],\n};\n```\n\n## Troubleshooting\n\n<details>\n  <summary><strong>ESLint was configured to run on `<tsconfigRootDir>/.eslintrc.js` using `parserOptions.project`</strong></summary>\n\n  Modify your `tsconfig.json` file in the root of your project’s directory with the following contents:\n\n  ```json\n  {\n    ...\n    \"include\": [\n      ...,\n      \"./.eslintrc.js\"\n    ],\n  }\n  ```\n</details>\n\n## Bonus: VSCode integration / formatting on save (optional but recommended)\n\nInstall the ESLint extension for VSCode (if you haven’t already):\n\n```bash\n$ code --install-extension dbaeumer.vscode-eslint\n```\n\nThen, create a `.vscode/extensions.json` file in the root of your project’s directory with the following contents:\n\n```json\n{\n  \"recommendations\": [\"dbaeumer.vscode-eslint\"]\n}\n```\n\nNext up, create a `.vscode/settings.json` file in the root of your project’s directory with the following contents:\n\n```json\n{\n  \"editor.defaultFormatter\": \"dbaeumer.vscode-eslint\",\n  \"editor.formatOnSave\": true\n}\n```\n\n## To do\n\n- [ ] Split modules into separate packages for better peer dependency management\n- [ ] Lint staged\n- [ ] GitHub Release Action\n","exports":{".":"./modules/default.js","./base":"./modules/base.js","./next":"./modules/next.js","./sanity":"./modules/sanity.js","./prettierConfig":"./lib/prettier.js"},"gitHead":"b859bb42ba1d2f344b104c2313322a67a05f63b3","private":false,"_npmUser":{"name":"hendrikhaack","email":"hi@hendrikhaack.de"},"prettier":"./lib/prettier.js","repository":{"url":"git+https://github.com/dayy-com/eslint-config.git","type":"git"},"_npmVersion":"10.1.0","description":"dayy’s ESLint config with Prettier and support for Next.js, Sanity and TypeScript","directories":{},"_nodeVersion":"20.9.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^8.54.0","prettier":"^3.1.0","eslint-config-next":"^14.0.3","eslint-plugin-react":"^7.33.2","eslint-config-airbnb":"^19.0.4","eslint-plugin-import":"^2.29.0","eslint-config-prettier":"^9.0.0","eslint-plugin-jsx-a11y":"^6.8.0","eslint-plugin-prettier":"^5.0.1","@rushstack/eslint-patch":"^1.5.1","@typescript-eslint/parser":"^6.11.0","eslint-plugin-react-hooks":"^4.6.0","@sanity/eslint-config-studio":"^3.0.1","eslint-config-airbnb-typescript":"^17.1.0","@typescript-eslint/eslint-plugin":"^6.11.0","eslint-plugin-simple-import-sort":"^10.0.0"},"peerDependencies":{"eslint":"^8.54.0","prettier":"^3.1.0","eslint-config-next":"^14.0.3","eslint-plugin-react":"^7.33.2","eslint-config-airbnb":"^19.0.4","eslint-plugin-import":"^2.29.0","eslint-config-prettier":"^9.0.0","eslint-plugin-jsx-a11y":"^6.8.0","eslint-plugin-prettier":"^5.0.1","@rushstack/eslint-patch":"^1.5.1","@typescript-eslint/parser":"^6.11.0","eslint-plugin-react-hooks":"^4.6.0","@sanity/eslint-config-studio":"^3.0.1","eslint-config-airbnb-typescript":"^17.1.0","@typescript-eslint/eslint-plugin":"^6.11.0","eslint-plugin-simple-import-sort":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-config_0.0.1-beta.3_1703261246516_0.42449667769997323","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2023-12-18T14:19:05.297Z","modified":"2026-05-29T10:57:00.950Z","0.0.1":"2023-12-18T14:13:50.191Z","0.0.1-beta.0":"2023-12-18T14:17:22.428Z","0.0.1-beta.1":"2023-12-18T14:19:05.598Z","0.0.1-beta.2":"2023-12-18T14:24:38.343Z","0.0.1-beta.3":"2023-12-22T16:07:26.692Z"},"bugs":{"url":"https://github.com/dayy-com/eslint-config/issues"},"author":{"name":"dayy GmbH","email":"hi@dayy.de"},"license":"MIT","homepage":"https://www.dayy.de/","repository":{"url":"git+https://github.com/dayy-com/eslint-config.git","type":"git"},"description":"dayy’s ESLint config with Prettier and support for Next.js, Sanity and TypeScript","contributors":[{"name":"Hendrik Haack","email":"hendrik.haack@dayy.de"}],"maintainers":[{"name":"hendrikhaack","email":"hi@hendrikhaack.de"}],"readme":"","readmeFilename":""}