{"_id":"@bugslifesolutions/eslint-config","name":"@bugslifesolutions/eslint-config","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bugslifesolutions/eslint-config","version":"1.0.0","description":"The ESLint config used by Reaction Commerce, following our style guide","scripts":{},"repository":{"type":"git","url":"git+https://github.com/bugslifesolutions/reaction-eslint-config.git"},"keywords":["eslint","eslintconfig","reaction","reactioncommerce"],"author":{"name":"Reaction Commerce","url":"https://bugslifesolutions.com/"},"license":"MIT","bugs":{"url":"https://github.com/bugslifesolutions/reaction-eslint-config/issues"},"homepage":"https://github.com/bugslifesolutions/reaction-eslint-config","dependencies":{},"devDependencies":{"@commitlint/cli":"^8.3.5","@commitlint/config-conventional":"^8.3.4","husky":"^4.2.5","semantic-release":"^17.0.7"},"peerDependencies":{"eslint":">=7","eslint-plugin-import":"~2.25.4","eslint-plugin-jest":"^26.1.0","eslint-plugin-jsx-a11y":"~6.5.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"~6.0.0","eslint-plugin-you-dont-need-lodash-underscore":"^6.10.0","eslint-plugin-react":"~7.28.0","eslint-plugin-react-hooks":"~4.3.0","@typescript-eslint/eslint-plugin":"^5.27.0","@typescript-eslint/parser":"^5.27.0","eslint-config-react-app":"^7.0.1"},"engines":{"node":">=8.1.0"},"commitlint":{"extends":["@commitlint/config-conventional"]},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"prettier":{"arrowParens":"always"},"release":{"branches":["master"]},"publishConfig":{"access":"public"},"gitHead":"8ed2bc12f291329d93e49d594269117370403e40","_id":"@bugslifesolutions/eslint-config@1.0.0","_nodeVersion":"14.21.3","_npmVersion":"6.14.8","dist":{"integrity":"sha512-onvrFImN5coD0hY7+MQFfYj0Ka3h1UzJa9ZNtKgQNO1Q7n6yCCqBeKdNLq+xFaRzZXjP+3RtSznHyBv3SNBSkw==","shasum":"2b99223c78419cc4eb69dc36a83f30b95ef934ff","tarball":"https://registry.npmjs.org/@bugslifesolutions/eslint-config/-/eslint-config-1.0.0.tgz","fileCount":8,"unpackedSize":53401,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB6V8L3pvS9a4CxDMORev7e1VG5LPaEb1u1kpnk/zjqqAiEAmIVxbsCXkEK0QEJLd3Esg91AzuMueCfojREMxMylYq8="}]},"_npmUser":{"name":"development_at_bugslifesolutions","email":"todd@bugslifesolutions.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config_1.0.0_1719165857969_0.6814906697048948"},"_hasShrinkwrap":false}},"time":{"created":"2024-06-23T18:04:17.871Z","1.0.0":"2024-06-23T18:04:18.199Z","modified":"2024-06-23T18:04:18.474Z"},"maintainers":[{"name":"development_at_bugslifesolutions","email":"todd@bugslifesolutions.com"}],"description":"The ESLint config used by Reaction Commerce, following our style guide","homepage":"https://github.com/bugslifesolutions/reaction-eslint-config","keywords":["eslint","eslintconfig","reaction","reactioncommerce"],"repository":{"type":"git","url":"git+https://github.com/bugslifesolutions/reaction-eslint-config.git"},"author":{"name":"Reaction Commerce","url":"https://bugslifesolutions.com/"},"bugs":{"url":"https://github.com/bugslifesolutions/reaction-eslint-config/issues"},"license":"MIT","readme":"# @bugslifesolutions/eslint-config\n\n[![CircleCI](https://circleci.com/gh/bugslifesolutions/reaction-eslint-config/tree/master.svg?style=svg)](https://circleci.com/gh/bugslifesolutions/reaction-eslint-config/tree/master)\n\n[![NPM](https://nodei.co/npm/@bugslifesolutions/eslint-config.png)](https://npmjs.org/package/@bugslifesolutions/eslint-config)\n\nThe ESLint config used by Reaction Commerce JavaScript apps and packages, following our code style guide.\n\n## How To Install and Configure\n\nHow to install and configure this in a project varies slightly depending on what type of project it is. In all cases, it's necessary to install the `eslint` package and all required ESLint plugin packages in your project along with this config package.\n\n### Node Projects\n\nFollow these instructions for Node projects, whether they use CommonJS or ECMAScript modules.\n\n```sh\nnpm install --save-dev eslint @bugslifesolutions/eslint-config eslint-plugin-import eslint-plugin-jest eslint-plugin-node eslint-plugin-promise eslint-plugin-you-dont-need-lodash-underscore\n```\n\nThen set your ESLint config either in package.json:\n\n```json\n\"eslintConfig\": {\n  \"extends\": \"@bugslifesolutions/eslint-config/node\"\n}\n```\n\nOr in a root file named `.eslintrc` if your project does not have a package.json:\n\n```json\n{\n  \"extends\": \"@bugslifesolutions/eslint-config/node\"\n}\n```\n\nOr in a root file named `.eslintrc.cjs`:\n\n```js\nmodule.exports = {\n  extends: \"@bugslifesolutions/eslint-config/node\",\n};\n```\n\n### React Projects - Javascript\n\nFollow these instructions for Webpack React projects, whether they use CommonJS or ECMAScript modules.\n\n```sh\nnpm install --save-dev eslint @bugslifesolutions/eslint-config eslint-plugin-import eslint-plugin-jest eslint-plugin-promise eslint-plugin-you-dont-need-lodash-underscore eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks\n```\n\nThen set your ESLint config either in package.json:\n\n```json\n\"eslintConfig\": {\n  \"extends\": \"@bugslifesolutions/eslint-config/browser-react\"\n}\n```\n\nOr in a root file named `.eslintrc` if your project does not have a package.json:\n\n```json\n{\n  \"extends\": \"@bugslifesolutions/eslint-config/browser-react\"\n}\n```\n\nOr in a root file named `.eslintrc.cjs`:\n\n```js\nmodule.exports = {\n  extends: \"@bugslifesolutions/eslint-config/browser-react\",\n};\n```\n\n### React Projects - Typescript\n\nFollow these instructions for React projects that are written in Typescript.\n\n```sh\nnpm install --save-dev eslint @bugslifesolutions/eslint-config eslint-plugin-import eslint-plugin-promise eslint-plugin-you-dont-need-lodash-underscore eslint-plugin-jsx-a11y eslint-config-react-app @typescript-eslint/eslint-plugin @typescript-eslint/parser\n```\n\nThen set your ESLint config either in package.json:\n\n```json\n\"eslintConfig\": {\n  \"extends\": \"@bugslifesolutions/eslint-config/browser-react-ts\"\n}\n```\n\nOr in a root file named `.eslintrc` if your project does not have a package.json:\n\n```json\n{\n  \"extends\": \"@bugslifesolutions/eslint-config/browser-react-ts\"\n}\n```\n\nOr in a root file named `.eslintrc.cjs`:\n\n```js\nmodule.exports = {\n  extends: \"@bugslifesolutions/eslint-config/browser-react-ts\",\n};\n```\n\n### Projects with Node and React\n\nFor a project that has mixture of Node server code and React browser code, run both of the `npm install` commands in the above sections, and list both configs in an `extends` array.\n\n```json\n{\n  \"extends\": [\n    \"@bugslifesolutions/eslint-config/browser-react\",\n    \"@bugslifesolutions/eslint-config/node\"\n  ]\n}\n```\n\n### Other Config\n\nFor backward compatibility, doing `extends: \"@bugslifesolutions\"` (without `/browser-react` or `/node`) continues to provide a combined config that uses the Babel parser. Using this is not recommended, but if you do, be sure to also `npm install --save-dev babel-eslint`.\n\n## How to Use\n\nAdd a \"lint\" script in `package.json`:\n\n```json\n\"scripts\": {\n  \"lint\": \"eslint .\"\n},\n```\n\nThen enter `npm run lint` command whenever you want to check all the code. Fix any issues that are reported before committing.\n\nYou should also install an ESLint extension for your code editor. It will automatically detect your ESLint configuration and highlight issues in your editor as you type.\n\n## Releases\n\nThis NPM package is published automatically on every push to the `master` branch. Be sure to use proper Git commit messages so that the version will be bumped properly and release notes can be automatically generated.\n\n- Refer to https://github.com/semantic-release/semantic-release#commit-message-format\n- To avoid triggering a release, such as for a README-only change, include `[skip release]` in your commit message.\n","readmeFilename":"README.md"}