{"_id":"@ehutch79/vite-eslint","_rev":"1-c748be6547c68bb6836e79fce9b10a36","name":"@ehutch79/vite-eslint","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@ehutch79/vite-eslint","version":"0.0.1","license":"MIT","description":"Vite 2 plugin that works with the dev server and rollup build.","repository":{"type":"git","url":"git+https://github.com/ehutch79/vite-eslint.git"},"homepage":"https://github.com/ehutch79/vite-eslint#readme","main":"src/index.js","keywords":["vite","eslint"],"author":{"name":"Eric Hutchinson"},"dependencies":{"eslint":"^7.17.0","@rollup/pluginutils":"^4.0.0"},"gitHead":"85cbcd684fbb5ff2e6cbadf2cb101f005c62c3cb","bugs":{"url":"https://github.com/ehutch79/vite-eslint/issues"},"_id":"@ehutch79/vite-eslint@0.0.1","_nodeVersion":"14.15.3","_npmVersion":"6.14.10","dist":{"integrity":"sha512-DaQq2xl3KfSTICl+w1bTikGxjwgxdrgF2ow+eIv9MDUzeYZUvb35nnsKy9KOAb5idMTemDtwQueJ5XxP0STrAg==","shasum":"53359b3252dc60b115991e4e56331fa49592e6df","tarball":"https://registry.npmjs.org/@ehutch79/vite-eslint/-/vite-eslint-0.0.1.tgz","fileCount":5,"unpackedSize":4301,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9oSTCRA9TVsSAnZWagAA0m4QAIJSgMcnELwptA9ubsGC\nlrNIG9/dQP1jGT4fBDAtg5FT1S0ZFppTgqyb4BxkvhPapIJSD6mkGAFLv5sJ\nx1EhguH6dRZrMlNZYSTaKaEmSNqJnmdMzdxoEJevTE3Y7an0gmFVQGgkSFyW\ny09BWIoUsrbYCYtCuoExql8S3Jss6ShjWoyH1HqpNWDtOgYKywg2L//dJHRM\n9ckgiWbKj2U8470OftRkhTkq4RPZDKiHt2TMGoQeXvcLN4xKtZabBLyr3IIs\n0ndPFpOVvEihY5BsssYWCBBd4bL6EfH5qYXUlkh5+VNtpdshjPvKOcKeKR+h\n6TZYPM4NVBOxXpcFETqQiSQ0IB3+lBNsOClnGanRkUxHN9jqUj4EnYoiiJ+C\nYM0Ip1Nf32rF+bgVwrlIPmIaLHKj5PU0LSjDCSN1FkYB0A2MUONUQhN9PblT\nNxjbF6b5c9dfUkw2kIoe/JAuJulPn1slGD13nhqK3+8BByW7pWZGO7qs3u3C\nGQKVg1zV6c4RweqEx0W27YA5jPk9gqUyI4pFQ1yXbeXalpg6BHOixN8BNP8L\n78Zay2OnncBr/j21DVPxV0eVuvNoevAzSZVh2HfWjf1Rgw/5EFd8eiDTK99V\nCRJ0CBq/0C1Y7sLZyJrXGlSZnZcPR5yWF7Sw23/+kq8rSfFSr3rs28JcjsAL\nzeLg\r\n=McKl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAsMoxFk7wN7jsDepkp2Ht4S0o1Raq+aLE3/tXMIBplSAiEA35nA/s8xgTFb6PLpExMWmLULktd8ndyn1cblvVJOTv4="}]},"_npmUser":{"name":"ehutch79","email":"ehutch79@gmail.com"},"directories":{},"maintainers":[{"name":"ehutch79","email":"ehutch79@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-eslint_0.0.1_1609991314957_0.648941432814176"},"_hasShrinkwrap":false}},"time":{"created":"2021-01-07T03:48:34.925Z","0.0.1":"2021-01-07T03:48:35.078Z","modified":"2022-04-05T06:58:43.407Z"},"maintainers":[{"name":"ehutch79","email":"ehutch79@gmail.com"}],"description":"Vite 2 plugin that works with the dev server and rollup build.","homepage":"https://github.com/ehutch79/vite-eslint#readme","keywords":["vite","eslint"],"repository":{"type":"git","url":"git+https://github.com/ehutch79/vite-eslint.git"},"author":{"name":"Eric Hutchinson"},"bugs":{"url":"https://github.com/ehutch79/vite-eslint/issues"},"license":"MIT","readme":"# vite-eslint\nVite 2 plugin that works with the dev server and rollup build.\n\nAny errors from eslint should appear in the Vite overlay.\n\n## Installation\n\n```\nnpm install --save-dev @ehutch79/vite-eslint\n```\n\n### Usage\n\nAdd it to vite.config.js\n\n```js\nimport viteESLint from '@ehutch79/vite-eslint'\n\nexport default {\n  plugins: [viteESLint()]\n}\n```\n\nAs long as you can run eslint from your command line, this should work for you.\n\n\n### configuration\n\nYou can pass an options object to the plugin, it takes two parameters, ```include``` and ```exclude```.\n\nfor example:\n```\nimport viteESLint from '@ehutch79/vite-eslint'\n\nexport default {\n  plugins: [viteESLint({ 'include': ['src/**/*.vue', 'src/**/*.js'] })]\n}\n```\nwill only scan js and vue files in the src/ directory.\n\n\n### Why?\n\nI had a horrible time trying to get the official rollup eslint plugin working. The issue is that the source was transformed before being passed to the plugin. This works by scanning the files directly.\n\nIt also uses the new API, rather than the deprecated one most plugins are still using.","readmeFilename":"README.md"}