{"_id":"@avayler/eslint-config","name":"@avayler/eslint-config","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.3":{"name":"@avayler/eslint-config","version":"0.0.3","main":"src/index.js","repository":{"type":"git","url":"https://Avayler-SaaS@dev.azure.com/Avayler-SaaS/SaaS/_git/eslint-config-saas"},"author":{"name":"Jose Diaz-Gonzalez","email":"jose.diaz-gonzalez@tyresonthedrive.com"},"contributors":[{"name":"Dominic Scanlan","email":"Dominic.Scanlan@tyoresonthedrive.com"},{"name":"Laura Jacobs","email":"Laura.Jacobs@tyresonthedrive.com"},{"name":"Carl Evans","email":"Carl.Evans@tyresonthedrive.com"}],"license":"GPL-3.0-or-later","peerDependencies":{"babel-eslint":"^10.1.0","eslint":"^8.12.0","eslint-config-prettier":"^8.5.0","eslint-plugin-jsx-a11y":"^6.5.1","eslint-plugin-prettier":"^4.0.0","eslint-plugin-react":"^7.29.4","eslint-plugin-react-hooks":"^4.4.0","prettier":"^2.6.1"},"dependencies":{"babel-eslint":"^10.1.0","eslint":"^8.12.0","eslint-config-prettier":"^8.5.0","eslint-plugin-jsx-a11y":"^6.5.1","eslint-plugin-prettier":"^4.0.0","eslint-plugin-react":"^7.29.4","eslint-plugin-react-hooks":"^4.4.0","prettier":"^2.6.1"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","typescript":"^4.6.3"},"description":"Repository containing the tools for code formatting and code quality agreed within the Avayler team.","gitHead":"01d023f8007c4e4a52bb1b5ae925d82c8172a274","_id":"@avayler/eslint-config@0.0.3","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-isyHA/6qR84WFOBlHPWVvaTnufrI0lm6ae6lUNhkeyBUNi4MGuACsqOdQ57QICULMNqubdFp1CTVI4YMEZ/Gsg==","shasum":"9628c163155e62a84418298b91c8448fc5246166","tarball":"https://registry.npmjs.org/@avayler/eslint-config/-/eslint-config-0.0.3.tgz","fileCount":5,"unpackedSize":41077,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbxBJr2jSksXPQn6Mh+vYXEExDQ9eCbRcYEj/FO3UNwAIgJOF93sLLaItMvpO3x9An2p6DzdcyIDI9fVl64fUYM7s="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiSBgQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqRlg//dCSijbVGhjOcEe2v5foEI8Aedv3n3jS+ad2Xoyxmcyh1/0Gw\r\nIEFpon0lqKihR32wXnNkpp9sIVaz15UOWO+hFwHrlGknp4LitMh2tOYUTIsB\r\nbsD7BX6yf5bYEia9BRZcST00CnThKyxRZpoZezGaL/kSH8jbRRZYUSdxuYFP\r\nnmQcvCZbOf2yah5g2uClV98rnVCu7p0tn3wNsb6iavWELZPsg1BLB/9mYo59\r\npRY1c3HIMFtmLAuPlg+SkdBYId0URXQmUvheSHzqVSa/0xpln8LYRfSXjWLO\r\nj4KlxoypFN/fkxvZibehbEtwqyrMgPZ8liStoovk9Y16sjsql/xSQBpHJ9Y/\r\nGw9gEqOODupw2dfFyW/aWLn6OgML4VOWvcXMoVtQn8feaij2jWzWl1Huh7rN\r\nUPqJWwjqzTjnaHM9yXWDdFtJx3h8guan7OxAqnPjeMUpKtgFPnZZTx63HP4X\r\nF5OsZ11OoySu1OPQuwBVJM9B9F4wNnehZsjGI4RXtcKKVD4lWHE6+4DtDSNW\r\nFTV/iQOMlyJvOoKPkavf118sabJVLQY4DS6T52FsqxxDs1hplFMAx1SzxY2f\r\nk2qSHMjDKdpuij+IvDi6mMNcGHDmmgmqToI82PVm1X8DY+cfr3aOOStYVqLZ\r\njxx9C5fSZxkpBXdTzVFMEcL3/3TiY3eDH2o=\r\n=QsiB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dominic_scanlan","email":"dominic.scanlan@avayler.com"},"directories":{},"maintainers":[{"name":"dominic_scanlan","email":"dominic.scanlan@avayler.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config_0.0.3_1648891919818_0.9427716587659123"},"_hasShrinkwrap":false}},"time":{"created":"2022-04-02T09:31:59.769Z","0.0.3":"2022-04-02T09:32:00.019Z","modified":"2022-04-02T09:32:00.203Z"},"maintainers":[{"name":"dominic_scanlan","email":"dominic.scanlan@avayler.com"}],"description":"Repository containing the tools for code formatting and code quality agreed within the Avayler team.","repository":{"type":"git","url":"https://Avayler-SaaS@dev.azure.com/Avayler-SaaS/SaaS/_git/eslint-config-saas"},"contributors":[{"name":"Dominic Scanlan","email":"Dominic.Scanlan@tyoresonthedrive.com"},{"name":"Laura Jacobs","email":"Laura.Jacobs@tyresonthedrive.com"},{"name":"Carl Evans","email":"Carl.Evans@tyresonthedrive.com"}],"author":{"name":"Jose Diaz-Gonzalez","email":"jose.diaz-gonzalez@tyresonthedrive.com"},"license":"GPL-3.0-or-later","readme":"# @Avayler/eslint-config\n\nRepository containing the tools for code formatting and code quality agreed within the Avayler team.\n\nIt includes:\n\n- ESLint's configuration file for apps written in JavaScript/TypeScript that use either React or Next\n- Prettier configuration file that voids the conflicting ESLint rules\n\n## Publishing the package\n\n### Initial configuration to be able to publish the package\n\nRead and follow [this link](https://dev.azure.com/Avayler-SaaS/SaaS/_artifacts/feed/SaaS-Artifacts/connect/npm).\n\nTo summarize:\n\n1. Add the following to our user's `.npmrc` (under the $HOME variable):\n```\n; begin auth token \n//pkgs.dev.azure.com/Avayler-SaaS/_packaging/SaaS-Artifacts/npm/registry/:username=Avayler-SaaS \n//pkgs.dev.azure.com/Avayler-SaaS/_packaging/SaaS-Artifacts/npm/registry/:_password=[BASE64_ENCODED_PERSONAL_ACCESS_TOKEN] \n//pkgs.dev.azure.com/Avayler-SaaS/_packaging/SaaS-Artifacts/npm/registry/:email=npm requires email to be set but doesn't use the value\n//pkgs.dev.azure.com/Avayler-SaaS/_packaging/SaaS-Artifacts/npm/:username=Avayler-SaaS \n//pkgs.dev.azure.com/Avayler-SaaS/_packaging/SaaS-Artifacts/npm/:_password=[BASE64_ENCODED_PERSONAL_ACCESS_TOKEN] \n//pkgs.dev.azure.com/Avayler-SaaS/_packaging/SaaS-Artifacts/npm/:email=npm requires email to be set but doesn't use the value\n; end auth token\n```\n2. Generate a personal access token [here](https://dev.azure.com/Avayler-SaaS/_usersSettings/tokens) with _packaging R&W_ permissions\n3. Run `node -e \"require('readline') .createInterface({input:process.stdin,output:process.stdout,historySize:0}) .question('PAT> ',p => { b64=Buffer.from(p.trim()).toString('base64');console.log(b64);process.exit(); })\"`, paste the _personal access token_ from the previous step, press `Enter` and copy the value returned.\n4. Replace `[BASE64_ENCODED_PERSONAL_ACCESS_TOKEN]` with the copied value in our `.npmrc`\n\n### Publish new changes in the package\n\n// TODO: This should be automated in a release pipeline\nWe will have to create a PR from a branch, making sure we increase the package version.\nOnce merged, we can run `npm publish` from the **main** branch to publish our new changes.\n\n## How to\n\nTo make use of the ESLint configuration we should just extend it from our own `eslintrc.json` file as follows:\n\n```json5\n{\n  \"extends\": [\n    \"@avayler/eslint-config\"\n  ],\n  \"rules\": {\n    // ... Re-declare any specific rules for the project\n    // Ideally these would be centralized, so we shouldn't be using it that often\n  }\n}\n```\n\n// TODO: Add husky pre-commit\n","readmeFilename":"README.md"}