{"_id":"@bobtherobot/eslint-config","_rev":"3-f1271d10e97f7ceef65fac6a2bd8ba5a","name":"@bobtherobot/eslint-config","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@bobtherobot/eslint-config","version":"1.0.0","description":"Opinionated eslint config + prettier based on eslint-config-airbnb-base.","main":"index.js","scripts":{"test":"npm run lint","lint":"eslint ."},"author":{"name":"Antti Korhonen","email":"antti.korhonen@bobtherobot.fi"},"repository":{"type":"git","url":"git+https://github.com/btr-digital/eslint-config.git"},"license":"ISC","dependencies":{"eslint-config-airbnb-base":"^14.2.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.23.0","eslint-plugin-prettier":"^3.4.0","prettier":"^2.3.0"},"devDependencies":{"eslint":"^7.26.0"},"peerDependencies":{"eslint":">= 7"},"gitHead":"d0916138408ea493d14ef44cf374b6236f3aa993","bugs":{"url":"https://github.com/btr-digital/eslint-config/issues"},"homepage":"https://github.com/btr-digital/eslint-config#readme","_id":"@bobtherobot/eslint-config@1.0.0","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-Hm+a0Hc9tiIdGKYj6pCTEC9493TMgMuJhdCoYkgvBFnkDKbsmbgCVKQCDeUrMoIvBGcRJ/hrvcexoWDGd8lgmA==","shasum":"c442d8c676abca1cca5eb8c8c184e7d2cefad492","tarball":"https://registry.npmjs.org/@bobtherobot/eslint-config/-/eslint-config-1.0.0.tgz","fileCount":5,"unpackedSize":2753,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnpL+CRA9TVsSAnZWagAA99wP/3prnyMh9XjUukJOITrQ\nMqs0UXWjV+OJL58QBxg13J1I2CXGvErmJz75YZNQkPq8BEpjBU5HPeHLKBod\ncKmd8xSQ8to1HbtlIvSTgu6ofB3hpjTOMmeGXak6h7hiM0+FwSN8ad+RyhDh\nb0X2Im5TYxmg+tS1VIAI1s1iCePsBNAQ2vhs01Ysm7b27Yiy44fkVAMMYgq2\nrRxcsslzjLCiyTfzuXhkZczT78xWeniE/6lqX29bj5tboBqUPt/OJzAFfPT3\nNJNkHCA89NInoK1IQ4xEPxS01wikzVDmrRSTSefV3ftvOZsz2HzEd0pivo4Q\nz3klngrx10Uc8ibesH2nrDgSnsBTKyKYwTHgeRF38I8R2ECXpgUJv2pU7X+v\nuf7oBeiuy6qqJDFniaynq/50UHJL+gFTfafYmdUO8b7G18zWVAGCCEFQoom7\nOgyl5f6n8sh68qeRB9nF9g5QasPTab3WU9u29Tr+ZFxIHMJKYcNjcaxDU066\nU7j6NiME3QY4aA5wbrv/zm89DtCW1ruIsikS7ICkEKIt2IPe5UPeTQxwa8gR\nWeGEiFYnINAQWl/nfq4s3G43pcUey2wJbDC7VsqZxHn21CUcmIeX6212ogMS\nyiWXdUpnV2o4S7wGZVtHhUIFMSpidfB2yOAG7KpGD88VzC6LnWIjEOqUaaCw\nw22g\r\n=Hu7J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICZawaZtG54As5+fIxFwmTtST3JB/RecXy7gDXpoCbnAAiEAm6bsIGKiFH5d9oYNIiemYY6YH1yhN7x/N0LE2xW47BE="}]},"_npmUser":{"name":"btr-antti","email":"antti.korhonen@bobtherobot.fi"},"directories":{},"maintainers":[{"name":"btr-antti","email":"antti.korhonen@bobtherobot.fi"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config_1.0.0_1621005054035_0.6744156733446918"},"_hasShrinkwrap":false},"1.0.1":{"name":"@bobtherobot/eslint-config","version":"1.0.1","description":"Opinionated eslint config + prettier based on eslint-config-airbnb-base.","main":"index.js","scripts":{"test":"npm run lint","lint":"eslint ."},"author":{"name":"Antti Korhonen","email":"antti.korhonen@bobtherobot.fi"},"repository":{"type":"git","url":"git+https://github.com/btr-digital/eslint-config.git"},"license":"ISC","dependencies":{"eslint-config-airbnb-base":"^14.2.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.23.0","eslint-plugin-prettier":"^3.4.0","prettier":"^2.3.0"},"devDependencies":{"eslint":"^7.26.0"},"peerDependencies":{"eslint":">= 7"},"gitHead":"f88624a9f4c9fc29108b6c1df43bdb985186f37a","bugs":{"url":"https://github.com/btr-digital/eslint-config/issues"},"homepage":"https://github.com/btr-digital/eslint-config#readme","_id":"@bobtherobot/eslint-config@1.0.1","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-xy6ibhj46ufTAH7rsVsW9iIVXRA5HyJJC1jI9+zOq35hmXMA8uc/6BjiSdnWUeFri+03XVfSNWQkazXYplO8uQ==","shasum":"c35d000ff1dd7514d29d7d0cb221b807287fb731","tarball":"https://registry.npmjs.org/@bobtherobot/eslint-config/-/eslint-config-1.0.1.tgz","fileCount":6,"unpackedSize":5231,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgoi0cCRA9TVsSAnZWagAAJc8P/0tfSb+ZsXfqigu46IXU\n3incyu40hCx1Ta0Kl9cLOKbAs6sd2L20x/4n/MckE8SXlOug2l/CdWNYSAqc\nuYsrbRLMAdoPQzB5dvyzLrCpoJJpVIzFTe/hJC/R6BSxJ/JLGPGzHPjn6JEO\nqOonvu17OLznpj9yMlAdsf60jHE9KfLwqYtq2nR1763ms81vrQhnMw0ovVwx\nmro4HeiOtNpsI8OZCMhvy7hfjog55invAb4JCoJSUfIKKLV3Y2qnW1qzqIiO\nBPm8CjksQ+LwN5DFN7myBVUKLzGMt7fyWplI1nNaIcrPKrFrrIzCZCLouaAf\n/N9Qr8NHUlyqdnQEkF3xevauOVXBHwXYp/tU/bC2ixdByK3FdnsUrXrP/wIJ\nyh9eVoanzmbd1o1TrwLLerTIGJ+4TJeyeLrspuVnvgFUGXCPOEVPY/xZvgzP\nvytifdEVpEbM78E3TICFUH9nkFgEu2dPDIvKwDo3WDRWpZWT8I/pju6bOEZf\nXEvFoNmqMtRBfWsG0c8Q6RKEUT/Hpv9zzimlTDCAwQyDz2bAx8DVU8pkvGyM\nybh1IUxdTu+3jkspkWm5yV2QAoPXpf20oBAtuAI84wKnPzeB19NW+BsCzrBO\n0eWkXhSvLVCDkVTW484C5BC7JikgYohtFgcfTYx6noAhVdHb1TAfRgdpoMnd\n1KR2\r\n=LeIB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVatsbFOSPBcKz6Mfelcv97dfkLn4mPROcuc6xsppvAgIgBp53R5FE/GRf959Uj5BOkDHNRQQ66Y/kFTHQXXPhCUs="}]},"_npmUser":{"name":"btr-antti","email":"antti.korhonen@bobtherobot.fi"},"directories":{},"maintainers":[{"name":"btr-antti","email":"antti.korhonen@bobtherobot.fi"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config_1.0.1_1621241115727_0.36640081685884174"},"_hasShrinkwrap":false},"1.0.2":{"name":"@bobtherobot/eslint-config","version":"1.0.2","description":"Opinionated eslint config + prettier based on eslint-config-airbnb-base.","main":"index.js","scripts":{"test":"npm run lint","lint":"eslint ."},"author":{"name":"Antti Korhonen","email":"antti.korhonen@bobtherobot.fi"},"repository":{"type":"git","url":"git+https://github.com/btr-digital/eslint-config.git"},"license":"ISC","dependencies":{"eslint-config-airbnb-base":"^14.2.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.23.0","eslint-plugin-prettier":"^3.4.0","prettier":"^2.3.0"},"devDependencies":{"eslint":"^7.26.0"},"peerDependencies":{"eslint":">= 7"},"gitHead":"199de24b7b79bea6c0fb9dafd2a1064c41815413","bugs":{"url":"https://github.com/btr-digital/eslint-config/issues"},"homepage":"https://github.com/btr-digital/eslint-config#readme","_id":"@bobtherobot/eslint-config@1.0.2","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-RsfW3UD+8M6zhwmv7V7pfeyG98b+SqoJIxVpyLjOcgTR6lShwY7JAWgic9p4hJ4q08Frqv7NAXzhdn7MK2uiGQ==","shasum":"cfb3d382e17e2fe474a04cf7cea1be37bf93b60c","tarball":"https://registry.npmjs.org/@bobtherobot/eslint-config/-/eslint-config-1.0.2.tgz","fileCount":6,"unpackedSize":5333,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpPudCRA9TVsSAnZWagAAS14P/02bo2Orls0vCygxKCLG\n+YCFvhomqLDOEE5qsgUowEfbKB/fqDCr7u9C/nmgIMK1NXkUXzDYf4N1B+If\nKUfoiFl180OwR0SsSo77uu02tL7xaQlVP7Kus9KI+fEtChI5w/GP8UPJbeRV\ngwOAjSYYrUBQGWoeUeD5PYLweYPGkVUTdagD3kC4fc4ftrzAESjLfs+3AoT1\nFBFVW7Pg4SdAMXXrJNOMb2ke2sJ9UJVY0RDrVED+OcTmdnbQYkn74117bi97\n0hzqoXe/703Z/e80lZ48ONV5uFjd9wQ4HSQ4RovufWRXTxtcO6YKrqepq8is\n6tZYqRJoh4rrPtfsY5fL3+G0dv1SEHN7pLRvSUtXkR8o4dkSFuuRjIA6J8gL\nqAItMp1ax/itS8Z1u9Nh2wp37zdVdjsL7SdoykXZQMaXhwU4xYRhA3eMeflG\ni1v+tQonH7lkLi5bbWZRhV6ppCSVtwKLFNuauQe3MeaMcWfX6B/HyRYIGhT0\nhBih/CmgAYURHyBzczGDblxCcF3w8lpdeEF8tCt1UvdCCiJuM0JoI0nAr6RC\nSBceB+gaaL84PoT0+a4hDvLqmOeAoMo/tWB95I954KK8wZ0DkM/KpRTYBfi0\nslIcpHDZi2y063vI9WoGnTxCxJk4EZJWbDUFNbJJPr1MiLxk3VwXqAowQE0R\naxw7\r\n=f9Cv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICo++14boVekXX8ah6tyBUmnc657PBE1g658BfMH+N/yAiAgI+ihYkBdAzZlvsGzBdWDVAiEe3t6WGH7IVT/j+ouLQ=="}]},"_npmUser":{"name":"btr-antti","email":"antti.korhonen@bobtherobot.fi"},"directories":{},"maintainers":[{"name":"btr-antti","email":"antti.korhonen@bobtherobot.fi"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config_1.0.2_1621425053412_0.005414527357631815"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-14T15:10:53.670Z","1.0.0":"2021-05-14T15:10:54.156Z","modified":"2022-04-04T19:55:32.824Z","1.0.1":"2021-05-17T08:45:15.918Z","1.0.2":"2021-05-19T11:50:53.563Z"},"maintainers":[{"name":"btr-antti","email":"antti.korhonen@bobtherobot.fi"}],"description":"Opinionated eslint config + prettier based on eslint-config-airbnb-base.","homepage":"https://github.com/btr-digital/eslint-config#readme","repository":{"type":"git","url":"git+https://github.com/btr-digital/eslint-config.git"},"author":{"name":"Antti Korhonen","email":"antti.korhonen@bobtherobot.fi"},"bugs":{"url":"https://github.com/btr-digital/eslint-config/issues"},"license":"ISC","readme":"# Bob the Robot ESLint config\n\nOpinionated linting and formatting with ESLint and Prettier for browser JS+Node and/or Vue. Extends [eslint-config-airbnb-base](https://www.npmjs.com/package/eslint-config-airbnb-base).\n\n> The setup is meant to be used with VSCode and requires the [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) extension.\n\n## Usage\n\n### 1. Browser/Node\n\nInstall `eslint` and the config:\n\n```\nnpm i -D eslint @bobtherobot/eslint-config\n```\n\nTell ESLint to use the config with `.eslintrc` (or whatever your eslint config file format is) in project root.\n```\n{\n  \"extends\": [\n    \"@bobtherobot/eslint-config\"\n  ]\n}\n```\n\nTell VSCode to use ESlint for fixing and formatting on save. In your global settings, workspace settings or `.vscode/settings.json`:\n```\n{\n  \"editor.codeActionsOnSave\": {\n    \"source.fixAll.eslint\": true\n  }\n}\n```\n\n### 2. Vue + Vetur\n\nVue + the VSCode extension [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur) requires a bit more finessing to make everything work.\n\nInstall `eslint`, config and `eslint-plugin-vue`:\n```\nnpm i -D eslint @bobtherobot/eslint-config eslint-plugin-vue\n```\n\nTell ESLint to use the Vue config with `.eslintrc` (or whatever your eslint config file format is) in project root. This extends the root config with Vue specific rules and utilizes the `eslint-plugin-vue` and its parser.\n```\n{\n  \"extends\": [\n    \"@bobtherobot/eslint-config/vue\"\n  ]\n}\n```\n\nThen we'll have to make Vetur let ESLint and Prettier do the validation and formatting of `.vue` files. Either in your VSCode global settings, workspace settings or project root `.vscode/settings.json`:\n```\n{\n  \"editor.codeActionsOnSave\": {\n    \"source.fixAll.eslint\": true\n  },\n  \"vetur.validation.template\": false,\n  \"vetur.format.defaultFormatter.js\": \"none\",\n  \"vetur.format.defaultFormatter.ts\": \"none\"\n}\n```\n\n## Notes\n\nAgainst eslint config best practices this package uses dependencies instead of peerDependencies for everything except eslint itself and assumes that no conflicting versions are installed.\n\nThis is because NPM v6 (shipped in Node 14 LTS) does not install peerDependencies automatically and kind of defeats the purpose of an easy install config. NPM v7 (shipped in Node 16 LTS) will fix this issue and we will switch to peerDependencies once we transition fully to Node 16.\n\nFor further reading on the subject see this [eslint issue](https://github.com/eslint/eslint/issues/3458).\n\n## Todo\n\n- [ ] Major: Switch to peerDependencies\n- [ ] Major: Separate Vue config into its own package","readmeFilename":"README.md"}