{"_id":"@alma-oss/eslint-config-react","_rev":"4-7dd72353abe28ded48dc1a2c827a2425","name":"@alma-oss/eslint-config-react","dist-tags":{"latest":"3.0.0-alpha.2","next":"3.0.0-alpha.1"},"versions":{"3.0.0-alpha.0":{"name":"@alma-oss/eslint-config-react","version":"3.0.0-alpha.0","keywords":["eslint","config","react","preset"],"author":"Tomáš Litera <tomas.litera@almacareer.com>","license":"MIT","_id":"@alma-oss/eslint-config-react@3.0.0-alpha.0","maintainers":[{"name":"literat","email":"tomaslitera@hotmail.com"}],"homepage":"https://github.com/lmc-eu/code-quality-tools#readme","bugs":{"url":"https://github.com/lmc-eu/code-quality-tools/issues"},"dist":{"shasum":"e2dee1cca3d54598af7c24452903725405af3bde","tarball":"https://registry.npmjs.org/@alma-oss/eslint-config-react/-/eslint-config-react-3.0.0-alpha.0.tgz","fileCount":12,"integrity":"sha512-u7uOzOBZOpyqks+LshbOtGcXMTVdrIIJustYeARnwlPiExjmdiEQld0P9xuqHgSqG5ByiBLI8HfE0VYK/iECBQ==","signatures":[{"sig":"MEQCIF+hceFAsa1ezPzkIrqml5dbCPTubaWKDLaXFRl3vqShAiAxeDzJV5ZcL8B2fFdyRGU8j3lekJxFSK44K7V92ZOqQA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20123},"type":"module","engines":{"node":">=20"},"exports":{".":"./index.js","./base":"./base.js","./legacy":"./legacy.js","./optional":"./optional.js","./whitespace":"./whitespace.js"},"gitHead":"3c462316bd70cf3e9652656fc688ced332d0d47a","_npmUser":{"name":"literat","email":"tomaslitera@hotmail.com"},"repository":{"url":"git+https://github.com/lmc-eu/code-quality-tools.git","type":"git","directory":"packages/eslint-config-react"},"_npmVersion":"lerna/8.2.3/node@v20.12.0+arm64 (darwin)","description":"Alma's ESLint configuration for React projects","directories":{},"_nodeVersion":"20.12.0","dependencies":{"@babel/core":"^7.16.5","@eslint/eslintrc":"^3.3.1","@babel/eslint-parser":"^7.16.5","eslint-config-airbnb":"^19.0.4","@alma-oss/eslint-config-base":"^4.0.0-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.33.0"},"peerDependencies":{"eslint":"^9.0.0","@babel/preset-react":"^7.16.5","eslint-plugin-react":"^7.37.5","eslint-plugin-jsx-a11y":"^6.10.2","eslint-plugin-react-hooks":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-config-react_3.0.0-alpha.0_1755078369662_0.027010183278228794","host":"s3://npm-registry-packages-npm-production"}},"3.0.0-alpha.1":{"name":"@alma-oss/eslint-config-react","version":"3.0.0-alpha.1","keywords":["eslint","config","react","preset"],"author":"Tomáš Litera <tomas.litera@almacareer.com>","license":"MIT","_id":"@alma-oss/eslint-config-react@3.0.0-alpha.1","maintainers":[{"name":"literat","email":"tomaslitera@hotmail.com"}],"homepage":"https://github.com/lmc-eu/code-quality-tools#readme","bugs":{"url":"https://github.com/lmc-eu/code-quality-tools/issues"},"dist":{"shasum":"dab7854b8ff23844a2cf8c4b7f32a25cced6bc47","tarball":"https://registry.npmjs.org/@alma-oss/eslint-config-react/-/eslint-config-react-3.0.0-alpha.1.tgz","fileCount":12,"integrity":"sha512-JkC8YEV0NgV0vvexiYnBx8/sxzvXazhPNpiD1J41niZ2+NZCgixeEXn29NLko5K+OyxqcL3Ynoh8f/A4wMO3LQ==","signatures":[{"sig":"MEUCIQCr3DLNo0yFBtu8kVfg/allLNE9rs0PTokZMoiC2t5mFAIgddX/cH71wD4NgA170+2a/yx9F+/9H3+fMWZsmayArYE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21155},"type":"module","engines":{"node":">=20"},"exports":{".":"./index.js","./base":"./base.js","./legacy":"./legacy.js","./optional":"./optional.js","./whitespace":"./whitespace.js"},"gitHead":"7a9e5189f85eb93dfe8b85eed91c0ec8f441d3f3","_npmUser":{"name":"literat","email":"tomaslitera@hotmail.com"},"repository":{"url":"git+https://github.com/lmc-eu/code-quality-tools.git","type":"git","directory":"packages/eslint-config-react"},"_npmVersion":"lerna/8.2.3/node@v20.12.0+arm64 (darwin)","description":"Alma's ESLint configuration for React projects","directories":{},"_nodeVersion":"20.12.0","dependencies":{"@babel/core":"^7.16.5","@eslint/eslintrc":"^3.3.1","@babel/eslint-parser":"^7.16.5","eslint-config-airbnb":"^19.0.4","@alma-oss/eslint-config-base":"^4.0.0-alpha.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.33.0"},"peerDependencies":{"eslint":"^9.0.0","@babel/preset-react":"^7.16.5","eslint-plugin-react":"^7.37.5","eslint-plugin-jsx-a11y":"^6.10.2","eslint-plugin-react-hooks":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-config-react_3.0.0-alpha.1_1755248142935_0.7881253679228248","host":"s3://npm-registry-packages-npm-production"}},"3.0.0-alpha.2":{"name":"@alma-oss/eslint-config-react","version":"3.0.0-alpha.2","description":"Alma's ESLint configuration for React projects","keywords":["eslint","config","react","preset"],"author":{"name":"Tomáš Litera","email":"tomas.litera@almacareer.com"},"homepage":"https://github.com/lmc-eu/code-quality-tools#readme","license":"MIT","publishConfig":{"access":"public"},"engines":{"node":">=20"},"exports":{".":"./index.js","./optional":"./optional.js","./legacy":"./legacy.js","./base":"./base.js","./whitespace":"./whitespace.js"},"repository":{"type":"git","url":"git+https://github.com/lmc-eu/code-quality-tools.git","directory":"packages/eslint-config-react"},"bugs":{"url":"https://github.com/lmc-eu/code-quality-tools/issues"},"type":"module","dependencies":{"@alma-oss/eslint-config-base":"^4.0.0-alpha.2","@babel/core":"^7.16.5","@babel/eslint-parser":"^7.16.5","@eslint/eslintrc":"^3.3.1","eslint-config-airbnb":"^19.0.4"},"peerDependencies":{"@babel/preset-react":"^7.16.5","eslint":"^9.0.0","eslint-plugin-jsx-a11y":"^6.10.2","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0"},"devDependencies":{"eslint":"9.39.4"},"gitHead":"5cdd7b8ee8a9dcc484264f49627a773c38edba94","_id":"@alma-oss/eslint-config-react@3.0.0-alpha.2","_nodeVersion":"20.19.4","_npmVersion":"lerna/9.0.5/node@v20.19.4+arm64 (darwin)","dist":{"integrity":"sha512-H9BRkMcANV9AlJAKlVwJxUD8/0YWdKEe/va9PGxUJyyeMRfBySqasSIc171WryUDnoxuObPjnOOugF3Kntp/Jg==","shasum":"920927e25adae56314c593c00ec6a9865b53df56","tarball":"https://registry.npmjs.org/@alma-oss/eslint-config-react/-/eslint-config-react-3.0.0-alpha.2.tgz","fileCount":12,"unpackedSize":21760,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDx41QKt5JvWay0Cf/iFZ5Zx2bmB7kvKl9y363pluH1MwIgKEubEDaReGpDC7Gn2L8SNWQYK1BzrEht2CmEXWS5K9Q="}]},"_npmUser":{"name":"literat","email":"tomaslitera@hotmail.com"},"directories":{},"maintainers":[{"name":"alma-design-system-bot","email":"team-design-system@almacareer.com"},{"name":"literat","email":"tomaslitera@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eslint-config-react_3.0.0-alpha.2_1773817426949_0.24479872543583947"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-13T09:46:09.509Z","modified":"2026-03-18T07:03:47.235Z","3.0.0-alpha.0":"2025-08-13T09:46:09.872Z","3.0.0-alpha.1":"2025-08-15T08:55:43.101Z","3.0.0-alpha.2":"2026-03-18T07:03:47.084Z"},"bugs":{"url":"https://github.com/lmc-eu/code-quality-tools/issues"},"author":{"name":"Tomáš Litera","email":"tomas.litera@almacareer.com"},"license":"MIT","homepage":"https://github.com/lmc-eu/code-quality-tools#readme","keywords":["eslint","config","react","preset"],"repository":{"type":"git","url":"git+https://github.com/lmc-eu/code-quality-tools.git","directory":"packages/eslint-config-react"},"description":"Alma's ESLint configuration for React projects","maintainers":[{"name":"alma-design-system-bot","email":"team-design-system@almacareer.com"},{"name":"literat","email":"tomaslitera@hotmail.com"}],"readme":"# @alma-oss/eslint-config-react\n\n> ESLint configuration for React projects\n\n## 📦 Installation\n\n```sh\nnpm install --save-dev eslint @alma-oss/eslint-config-react\n# or\nyarn add --dev eslint @alma-oss/eslint-config-react\n```\n\nWee need to install everything needed by the config using (installs package and also peer dependencies):\n\n```sh\nnpx install-peerdeps --dev @alma-oss/eslint-config-react\n```\n\nYou can see in your package.json there is now a big list of devDependencies.\n\n## 🧩 Rulesets\n\n- **`@alma-oss/eslint-config-react`**\n\nA generic ruleset that focuses on code correctness.\n\n- **`@alma-oss/eslint-config-react/optional`**\n\nAdditional ruleset that might provide useful tips and hints how to improve your code.\n\n> For new projects, it is recommended to enable this ruleset. For existing projects, it is only recommended for the brave.\n\n## 👨‍💻 Usage\n\n```js\n// eslint.config.js\n\nimport { defineConfig } from 'eslint/config';\nimport react from '@alma-oss/eslint-config-react';\nimport optional from '@alma-oss/eslint-config-react/optional';\n\nexport default defineConfig({\n  ...react,\n  ...optional,\n});\n```\n\nIt is also recommended that you lint the whole project folder (that is `npx eslint .`) instead of just\nsome folders (that is. `npx eslint src test`) and create an _ignores_ array in configuration excluding any unwanted\nlint folders. Doing so will allow new directories to be created without worrying about having to update your\ntools to lint the new directory.\n\n```js\n// eslint.config.js\n\nimport { defineConfig } from 'eslint/config';\n\nexport default defineConfig({\n  ignores: [\n    'node_modules',\n    // NOTE:\n    // The following directives are only relevant when linting the whole\n    // project directory, ie. running `eslint .` ⚠️\n\n    // If you compile JavaScript into some output folder, exclude it here\n    'dist',\n    // Highly recommended to re-include JavaScript dotfiles to lint them\n    // (This will cause .eslintrc.js to be linted by ESLint 🤘)\n    '!.*.js',\n    // Some tools use this pattern for their configuration files. Lint them!\n    '!*.config.js',\n  ],\n});\n```\n\n## 🙌 Contributing\n\nWe’re always looking for contributors to help us fix bugs, build new features,\nor help us improve the project documentation. If you’re interested, definitely\ncheck out our [Contributing Guide][contributing]! 👀\n\n## 📝 License\n\nLicensed under the [MIT][license].\n\n[contributing]: https://github.com/lmc-eu/code-quality-tools/blob/main/CONTRIBUTING.md\n[license]: https://github.com/lmc-eu/code-quality-tools/blob/main/LICENSE.md\n","readmeFilename":"README.md"}