{"_id":"@bcw-research/eslint-config","_rev":"2-b46472ea00461da8df6897c3188e11af","name":"@bcw-research/eslint-config","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@bcw-research/eslint-config","version":"0.0.1","description":"ESLint Config for BCW Repositories","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"private":false,"author":"","license":"MIT","keywords":["eslint","eslintconfig"],"dependencies":{"@typescript-eslint/parser":">= 5.59.8"},"peerDependencies":{"eslint":">= 8","@typescript-eslint/eslint-plugin":">= 5.59.8","eslint-config-prettier":">= 8.8.0","eslint-plugin-import":">= 2.27.5","eslint-plugin-react":">= 7.32.2","eslint-plugin-react-hooks":">= 4.6.0","eslint-plugin-simple-import-sort":">= 10.0.0"},"gitHead":"87311541295469ad9287368f1edcdcf4e9f0ebf8","_id":"@bcw-research/eslint-config@0.0.1","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-FkoxJ5vmd/qtTC6BOpoFKQ0xp8a/zmOKqzXFpYVsZzRGlLnH8/aMpE7/kMvZiIRlGRh9rZjoGiUEv/TMWzTsOw==","shasum":"da64d188ac8ee16f4bd76e9e20e32798836db6da","tarball":"https://registry.npmjs.org/@bcw-research/eslint-config/-/eslint-config-0.0.1.tgz","fileCount":11,"unpackedSize":4253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGRwJQ/+KkofIN1kUjn5FTlv42G2KJnI1Rtq78M8tX7AAiANiSkiCc/AI1/IiB3Z9+v5DgUOYd6xVMImuSR5QatEiQ=="}]},"_npmUser":{"name":"john_bcw","email":"john@bcw.group"},"directories":{},"maintainers":[{"name":"john_bcw","email":"john@bcw.group"},{"name":"shawn-bcw","email":"shawn@bcw.group"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config_0.0.1_1686118530851_0.6446137454849838"},"_hasShrinkwrap":false},"0.0.2":{"name":"@bcw-research/eslint-config","version":"0.0.2","description":"ESLint Config for BCW Repositories","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"private":false,"author":"","license":"MIT","keywords":["eslint","eslintconfig"],"dependencies":{"@typescript-eslint/parser":">= 5.59.8"},"peerDependencies":{"eslint":">= 8","@typescript-eslint/eslint-plugin":">= 5.59.8","eslint-config-prettier":">= 8.8.0","eslint-plugin-import":">= 2.27.5","eslint-plugin-react":">= 7.32.2","eslint-plugin-react-hooks":">= 4.6.0","eslint-plugin-simple-import-sort":">= 10.0.0"},"gitHead":"9cf12cce59427e66e814e25d6b324ed8a0331b70","_id":"@bcw-research/eslint-config@0.0.2","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-tHuMh8wqbFoT7zNHC2rgrOSy65BXthf6ok4vNlwKo0UN8HJTyjqcemfcDhjEBqM+1RgLHWtJV3tmzDs5QJv4MA==","shasum":"3587b27e8993e1933378ced61c019ee2656a89e3","tarball":"https://registry.npmjs.org/@bcw-research/eslint-config/-/eslint-config-0.0.2.tgz","fileCount":13,"unpackedSize":7190,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHJaWDsh8F/rkIgITUOqVzKOHmQl1kUUn9INPo3H2QtAIgVWhbcnkpg2x8xSo1wzAuXxfNBx/1NOVBQVDF0xgnLaM="}]},"_npmUser":{"name":"john_bcw","email":"john@bcw.group"},"directories":{},"maintainers":[{"name":"john_bcw","email":"john@bcw.group"},{"name":"shawn-bcw","email":"shawn@bcw.group"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config_0.0.2_1686126603281_0.9900037166713691"},"_hasShrinkwrap":false},"0.0.3":{"name":"@bcw-research/eslint-config","version":"0.0.3","description":"ESLint Config for BCW Repositories","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"private":false,"author":"","license":"MIT","keywords":["eslint","eslintconfig"],"dependencies":{"@typescript-eslint/parser":">= 5.59.8"},"peerDependencies":{"eslint":">= 8","@typescript-eslint/eslint-plugin":">= 5.59.8","eslint-config-prettier":">= 8.8.0","eslint-plugin-import":">= 2.27.5","eslint-plugin-react":">= 7.32.2","eslint-plugin-react-hooks":">= 4.6.0","eslint-plugin-simple-import-sort":">= 10.0.0"},"gitHead":"4a8e42274a16135cdd12fba869f6bb2540ee2878","_id":"@bcw-research/eslint-config@0.0.3","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-/kTEQ7HSTZfDY8usevtsRKHrJJMov1JDuBnzCdds6mKIgCkXeSLGjX28XQ/kiRLXLYTs2XdGdn1k+yiChCZQCg==","shasum":"c01ba0912f29eb36346264722c5777450cb83b1b","tarball":"https://registry.npmjs.org/@bcw-research/eslint-config/-/eslint-config-0.0.3.tgz","fileCount":14,"unpackedSize":9248,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1cIs3HtY49eQ245bl2s2tAWrPvmB2WTvdNpb0347R6QIhANyWtv92LfEdMQoSBg6h0HnWi60yunaUYY0xihIqp1E8"}]},"_npmUser":{"name":"john_bcw","email":"john@bcw.group"},"directories":{},"maintainers":[{"name":"john_bcw","email":"john@bcw.group"},{"name":"shawn-bcw","email":"shawn@bcw.group"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config_0.0.3_1686290787599_0.7721010781694817"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-07T06:15:30.794Z","0.0.1":"2023-06-07T06:15:31.031Z","modified":"2023-06-09T06:06:27.926Z","0.0.2":"2023-06-07T08:30:03.484Z","0.0.3":"2023-06-09T06:06:27.805Z"},"maintainers":[{"name":"john_bcw","email":"john@bcw.group"},{"name":"shawn-bcw","email":"shawn@bcw.group"}],"description":"ESLint Config for BCW Repositories","keywords":["eslint","eslintconfig"],"license":"MIT","readme":"# @bcw-research/eslint-config\nESLint Config for BCW Repositories\n\n## Usage\n\n### With the CLI tool\n\n```bash\nnpx @bcw-research/create-config\n# or\nnpm init @bcw-research/config\n```\n\n> Note: The CLI currently only supports initializing a project. If you want to add to an existing ESLint config file, follow the manual steps below.\n\n### Manually\n\nInstall the shared config and dependencies as `devDependencies`:\n\n```bash\nnpm install -D @bcw-research/eslint-config eslint eslint-plugin-import eslint-plugin-simple-import-sort\n```\n\nIf your project also uses Typescript, React and/or Prettier, be sure to install the appropriate dependencies:\n\n```bash\n# typescript\nnpm install -D @typescript-eslint/eslint-plugin @typescript-eslint/parser\n```\n\n```bash\n# react\nnpm install -D eslint-plugin-react eslint-plugin-react-hooks\n```\n\n```bash\n# prettier\nnpm install -D eslint-config-prettier prettier\n```\n\nAfter installing all the dependencies, create a `.eslintrc.cjs` file at the root of your directory. Add the plugin to the `extends` property of the default export:\n\n```cjs\nmodule.exports = {\n  extends: [\"@bcw-research/eslint-config\"],\n};\n```\n\nThe base `@bcw-reserach/eslint-config` shared config also contains configurations for React, Typescript, and Prettier. They are available within the `eslint-config` directory. In the `.eslintrc.cjs` file, simply replace `@bcw-research/eslint-config` with any of the following:\n\n- `@bcw-research/eslint-config/prettier`\n- `@bcw-research/eslint-config/typescript`\n- `@bcw-research/eslint-config/typescript-prettier`\n- `@bcw-research/eslint-config/react-typescript`\n- `@bcw-research/eslint-config/react-typescript-prettier`\n\n### Overriding Rules\n\nOverride rules by adding to the `.eslintrc.cjs` file:\n\n```cjs\nmodule.exports = {\n  extends: [\"@bcw-research/eslint-config/react-typescript\"],\n  rules: {\n    quotes: [\"error\", \"single\"],\n  },\n};\n```\n\n### Integration with VS Code\n\nIf using VS code, don't forget to install the [VS Code ESLint Extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n### Troubleshooting\n\n- If using React with Typescript and the `\"React is a UMD module…\"` error shows up, double check the following:\n  - Make sure `typescript` is installed as a `devDependency`\n  - Use a pattern that includes the file you are trying to lint in your `tsconfig.json`:\n    - `include: ['**/*.ts', '**/*.tsx']`\n  - Make sure you've installed `react >= 17` and set `\"jsx\": \"react-jsx\"` in the `compileOptions` of your `tsconfig.json`.\n- It is not recommended to use ESLint formatting rules with the Prettier formatter. If you are unsure which rules format and which ones enforce code style, refer to the [`eslint-config-prettier` plugin](https://github.com/prettier/eslint-config-prettier/blob/main/index.js). It disables all rules that might conflict with prettier.\n","readmeFilename":"README.md"}