{"_id":"@bjervis/eslint-plugin-scoobie","_rev":"2-4e666e1f2338865d25396778a642e4cc","name":"@bjervis/eslint-plugin-scoobie","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@bjervis/eslint-plugin-scoobie","version":"1.0.1","description":"Highlight and fix submodule imports from 'scoobie/src'.","main":"lib/rules.js","author":{"name":"Ben Jervis"},"license":"MIT","scripts":{"build":"babel src -d lib","test":"yarn build && node test/rules.test.js","semantic-release":"semantic-release"},"devDependencies":{"@babel/cli":"7.14.5","@babel/core":"7.14.6","@babel/preset-env":"7.14.7","eslint":"7.29.0","semantic-release":"^17.4.4"},"repository":{"type":"git","url":"git+https://github.com/benjervis/eslint-plugin-scoobie.git"},"publishConfig":{"access":"public"},"gitHead":"9187c9eb1fafc6dddae0db703ef064988c48dda0","bugs":{"url":"https://github.com/benjervis/eslint-plugin-scoobie/issues"},"homepage":"https://github.com/benjervis/eslint-plugin-scoobie#readme","_id":"@bjervis/eslint-plugin-scoobie@1.0.1","_nodeVersion":"14.17.1","_npmVersion":"7.19.0","dist":{"integrity":"sha512-UURbQvlg00cYiiMyv56HXmcTXuk/y7szTczFERSNy/BTbD0yvctt1e0KHCOzHbPiv9NaryJxZOAvwARyvyuJKg==","shasum":"9b88302efb2200935a8780b2e3af08214d16b7c5","tarball":"https://registry.npmjs.org/@bjervis/eslint-plugin-scoobie/-/eslint-plugin-scoobie-1.0.1.tgz","fileCount":7,"unpackedSize":4972,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1WclCRA9TVsSAnZWagAAocwP/RGFUMLWogUN1G7ftmKC\n8Z8ff+78k+iCQAgW6bvfUYkeX6zccZP6CXSvxYrmbeyy/+vIAb/hrtqyCa60\nDwCAiCiQFc37oN31m8zdNLOt21oGvO1kD5kefc9LskOH0l27zVTlwRmx3OgT\npu1o3OvJCJGzZrJ/phXRDGRZK+qrF+18gunrfgg7Z+d885tMVHMCl9JpkfoO\nfcobv770K8zzlhMJhvZn6yTnNDDfQQyCxDF8I+0C7lEeTtqX6ZDGHEV3LBvS\nBSaz+y5cQ9iL72mXmAEgwaP7zKMbxVSv6S/ctkkpy/DvtR6QNWtOjW4+iQf6\n2UzZU8Vnf2IqVy5uAmMMBwGWd4BSLyQIdGWt8q1qE+i7HWSgDHhqJbQQcMcX\n42JDGV3nLunxmvcfn+tPurwcuosl1ieXjBcwvb7MtyIvDeHa0PTSnK1OZEs4\nPeVhUx1ds8aM4sa60/VB5YUGLsX6YuePkFmLXNx9EeJrzLz74UNJh4QWIEuV\nsJcdRvgzJWg+Nds276Cqq1z8GCTZys2JGOT1vft7FlfkgRgONTjw1+pB1xa6\ngY3SfkUJbzIkQXNBliMHL5dKjj5W89jitcnY52tNtoT7i38FmXwTvRJJMdVh\ndThl9kaGbbSeChg6hxQuSEQLd/CAQq39h+p3i/Q5WqkAxKZAsT14fbM817dw\nB0PU\r\n=uydB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3Gu7JarnG6hfHEbSWOKTLnXoYIhq/TaX8mChQY0BJGAIhAOmZo0NrAbyTpV81aJqN7XbIt8E2jsjZeD9rAtN1htVb"}]},"_npmUser":{"name":"bjervis","email":"bjervis@seek.com.au"},"directories":{},"maintainers":[{"name":"bjervis","email":"bjervis@seek.com.au"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-scoobie_1.0.1_1624598309220_0.08898639725380253"},"_hasShrinkwrap":false},"1.0.2":{"name":"@bjervis/eslint-plugin-scoobie","version":"1.0.2","description":"Highlight and fix submodule imports from 'scoobie/src'.","main":"lib/rules.js","author":{"name":"Ben Jervis"},"license":"MIT","scripts":{"build":"babel src -d lib","test":"yarn build && node test/rules.test.js","semantic-release":"semantic-release"},"devDependencies":{"@babel/cli":"7.14.5","@babel/core":"7.14.6","@babel/preset-env":"7.14.7","eslint":"7.29.0","semantic-release":"^17.4.4"},"repository":{"type":"git","url":"git+https://github.com/benjervis/eslint-plugin-scoobie.git"},"publishConfig":{"access":"public"},"gitHead":"becdf59a46c72352125c20a7eadd7db1a2c55722","bugs":{"url":"https://github.com/benjervis/eslint-plugin-scoobie/issues"},"homepage":"https://github.com/benjervis/eslint-plugin-scoobie#readme","_id":"@bjervis/eslint-plugin-scoobie@1.0.2","_nodeVersion":"14.17.1","_npmVersion":"7.19.0","dist":{"integrity":"sha512-5yb+dBU6RfvuXeZQunu6w/sQBPhMoKohc//xQFhvKL2RfSLbPywe8wyFf0lyVxwxXmjSM7LQGNRyXiVgZM3E3g==","shasum":"5b3cf078202703a8546d9ff22ab64bd941c054fc","tarball":"https://registry.npmjs.org/@bjervis/eslint-plugin-scoobie/-/eslint-plugin-scoobie-1.0.2.tgz","fileCount":7,"unpackedSize":5412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1WjyCRA9TVsSAnZWagAA+YcP/2RB7GxaVGdFP/SjFkkr\nbmlb0d8qGtMPCMKw55JCqUB4exZec5IXx6Z6aa/QbdZlj558Hk6waR2FJglK\nkQ/Chr0vyq4TIxzvlUiKlzRXpizCieuTQtxOIC5nIxBKdNPsQRKQz+aWVWcL\nXRGEjXYV33dbLSMtx9jNudSSol91Kb6BVjl41KnCVqIqVZo4CNujNccOvR6C\nN3RL9QdUgL+Qo1B5JWa3zAikkasWh7ReINEoKgcK64l46M8xgK3ouI7z6X1F\nfU2cmILUQBN12jK2EMzOMZh1gX9/c6OEXTuQCypf8DrQsUutA5tfVQ0xpl9o\nNSwFsMaDsnMmo8e8wUwOVCYOwXXDuVwxPQOesrDtnWIagf3FKJLpzh+olRR9\nwQUBjn9Ka/S2uBYMfHpJ1wLaGWX3vRcE0HP8ydBcdxriwu3vwyG5TqoMcws6\nDUMk7KLZKRpKmZLO7EVZMFUN6mW6x8ss8LjnMV/atljwt9V+y9LEN51fLgeG\n1cGRYklPBEnTRknizLAVd2Zw5+7bTuIQZTjPEQxse8w2KR8QUlL8+0ERZ1Lo\nGs6uWVQ3bniEtJMpGvdLcg5YXBe+Icj9tXw5AOFFigT4Kd178IuhvX8Lix3R\na3dRriNi5dZ+ijEifUGyLIq4E0QBT9cMSulyEWhgeGTrvDUGmJFhtPi7zyP6\nC2eQ\r\n=Skj1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4nZOuNfsIHorX5IRzGtGujCmgoKrtGh3ou8evkbSRPAIgCAduJ14DuzjqFJEjRxvnQPW7WFKnqXnh3b/cnrwJ2Bc="}]},"_npmUser":{"name":"bjervis","email":"bjervis@seek.com.au"},"directories":{},"maintainers":[{"name":"bjervis","email":"bjervis@seek.com.au"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-scoobie_1.0.2_1624598769652_0.06696782481166252"},"_hasShrinkwrap":false}},"time":{"created":"2021-06-25T05:18:29.160Z","1.0.1":"2021-06-25T05:18:29.376Z","modified":"2022-04-04T19:18:21.827Z","1.0.2":"2021-06-25T05:26:09.797Z"},"maintainers":[{"name":"bjervis","email":"bjervis@seek.com.au"}],"description":"Highlight and fix submodule imports from 'scoobie/src'.","homepage":"https://github.com/benjervis/eslint-plugin-scoobie#readme","repository":{"type":"git","url":"git+https://github.com/benjervis/eslint-plugin-scoobie.git"},"author":{"name":"Ben Jervis"},"bugs":{"url":"https://github.com/benjervis/eslint-plugin-scoobie/issues"},"license":"MIT","readme":"# eslint-plugin-scoobie\n\nDesigned to work with projects using [scoobie](https://github.com/seek-oss/scoobie), this plugin detects when a component is being imported from the `src` submodule.\n\nVSCode's autoimport has a strong tendency to pull from 'scoobie/src' rather than just 'scoobie', for some reason. This lint rule will error when it happens, and can also autofix.\n\nThere are some [valid reasons](https://github.com/seek-oss/scoobie#srcscoobiedts) to import from certain submodules in scoobie, and this should leave those alone.\n\n## Example\n\n```typescript\n// error\nimport { SmartTextLink } from 'scoobie/src';\n\n// fixes to\nimport { SmartTextLink } from 'scoobie';\n\n// ok\nimport 'scoobie/types';\n\n// also ok\nimport { robotoHtml, robotoMonoHtml } from 'scoobie/typography';\n```\n\n## Usage\n\n```bash\nyarn add -D @bjervis/eslint-plugin-scoobie\n```\n\nThen in your eslint config\n\n```\nplugins: ['@bjervis/scoobie'],\nrules: {\n  '@bjervis/scoobie/no-src-import': 2,\n},\n```\n\nIf you're using Braid, you're probably also using [sku](https://github.com/seek-oss/sku), so:\n\n```js\n// sku.config.js\nmodule.exports = {\n  ...,\n  dangerouslySetESLintConfig: (skuConfig) => ({\n    ...skuConfig,\n    plugins: ['@bjervis/scoobie'],\n    rules: {\n      '@bjervis/scoobie/no-src-import': 2,\n    },\n  }),\n}\n```\n","readmeFilename":"README.md"}