{"_id":"@codedre/eslint-config-codedre","_rev":"3-f4aad3c700edbf13b662d9c34d3666d5","name":"@codedre/eslint-config-codedre","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@codedre/eslint-config-codedre","version":"1.0.0","description":"ESLint and Prettier config setup","main":"index.js","scripts":{"lint":"eslint .","lint:fix":"eslint --fix"},"keywords":["javascript","ecmascript","eslint","lint","config","prettier"],"author":{"name":"Andre Shonubi","email":"andre@codedre.com"},"license":"MIT","peerDependencies":{"babel-eslint":"^10.0.3","eslint":"^6.3.0","eslint-config-airbnb":"^18.0.1","eslint-config-prettier":"^6.2.0","eslint-plugin-eslint-comments":"^3.1.2","eslint-plugin-import":"^2.18.2","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-prettier":"^3.1.0","eslint-plugin-react":"^7.14.3","eslint-plugin-react-hooks":"^2.0.1","prettier":"^1.18.2"},"devDependencies":{"babel-eslint":"^10.0.3","eslint":"^6.3.0","eslint-config-airbnb":"^18.0.1","eslint-config-prettier":"^6.2.0","eslint-plugin-eslint-comments":"^3.1.2","eslint-plugin-import":"^2.18.2","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-prettier":"^3.1.0","eslint-plugin-react":"^7.14.3","eslint-plugin-react-hooks":"^2.0.1","prettier":"^1.18.2"},"repository":{"type":"git","url":"git+https://github.com/codedre/eslint-config-codedre.git"},"bugs":{"url":"https://github.com/codedre/eslint-config-codedre/issues"},"homepage":"https://github.com/codedre/eslint-config-codedre#readme","gitHead":"8eccf88f1d63f287c78d4beb305b906e2a1f8426","_id":"@codedre/eslint-config-codedre@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"codedre","email":"andre@codedre.com"},"dist":{"integrity":"sha512-WFvVNG7m+rZ08bDWZuTq+XHdjMpG6+sXH61AUyjWQ0zjVqFsi9M9lTFaRH03qKnF2YYpoqNx40wUwqfzXbSokg==","shasum":"ecb43e4ba97268d902606a4bc2e169de44e8768e","tarball":"https://registry.npmjs.org/@codedre/eslint-config-codedre/-/eslint-config-codedre-1.0.0.tgz","fileCount":4,"unpackedSize":3758,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddBCFCRA9TVsSAnZWagAAIqYP/2iwrGmzFW6E4MmeqhjY\n43WEd2W5suoP6OUxJ22CTe/H2TDpSDIO2MmSYGszfd2NIYmeMOWlCQMvFErp\nVcIX+v+wrgmVaqBJ3+A4vtOWu2hQLP8kJ+NfO7+j/Ieb0j3G10RU+2e74TNH\nv6WAIUo8F5jYoyPhVSi6bpTkvPcVDvuU7Ax0xQIItlNS59hm8P3dBbGVMfLw\nl7vjSBQgTESJxcBfaGfBNlvJAG7WC8lFX4oepc5jlYQxPVZ/KIuG5LwrRjlF\nWOokbD9dbb3cvrmPpc0v80BurvMsQhdDBZ9qM8PqCEEt8+4hH3vfuVvd8njz\nba1vUMHSTiZaIFuSkP+qSYid0LyrRWTcLEEac1qTykCIxit4vv+TMd8mNPfy\nv/e1tgzSZzmtR/TwXJz6tb3AsWjIUk/Tq3XCx2RzDhXP1A0EZ0hmr7pcmXVw\n6DJ1B8nG4V2XHJY3Ush4X+9zCpmVbgCasU+EdFo6gAWHFfYHxjCgcVqXfYI0\nmPtOA6rCE1idJvTdpO0Nja4rOGurOY1dKbLD8Dv0B8YNtKdhvtGd1nY8kEb8\nPm7mzgJiYqZpu3kIPG1MpzGvhKVNgjP1f5kpszJkbx7Jh3cNdQADWd60esoJ\nXfl+bl7eGBjfksTNk2dAEcgrT5tB+TytShzeCo4F8HgaNwXeVIqW4jE5nWST\nX0oD\r\n=NanQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrmtSd0xiFmccVuXBNy/zHCD/y8iQ3B50SLUo2JG7TFgIgAhqPrg9rBrT9NKPqaVCKuzWCnODuSqWc59wNw6UBNRY="}]},"maintainers":[{"name":"codedre","email":"andre@codedre.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config-codedre_1.0.0_1567887492929_0.722399640180486"},"_hasShrinkwrap":false},"1.0.1":{"name":"@codedre/eslint-config-codedre","version":"1.0.1","description":"ESLint and Prettier config setup","main":"index.js","scripts":{"lint":"eslint .","lint:fix":"eslint --fix"},"keywords":["javascript","ecmascript","eslint","lint","config","prettier"],"author":{"name":"Andre Shonubi","email":"andre@codedre.com"},"license":"MIT","peerDependencies":{"babel-eslint":"^10.0.3","eslint":"^6.3.0","eslint-config-airbnb":"^18.0.1","eslint-config-prettier":"^6.2.0","eslint-plugin-eslint-comments":"^3.1.2","eslint-plugin-import":"^2.18.2","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-prettier":"^3.1.0","eslint-plugin-react":"^7.14.3","eslint-plugin-react-hooks":"^2.0.1","prettier":"^1.18.2"},"devDependencies":{"babel-eslint":"^10.0.3","eslint":"^6.3.0","eslint-config-airbnb":"^18.0.1","eslint-config-prettier":"^6.2.0","eslint-plugin-eslint-comments":"^3.1.2","eslint-plugin-import":"^2.18.2","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-prettier":"^3.1.0","eslint-plugin-react":"^7.14.3","eslint-plugin-react-hooks":"^2.0.1","prettier":"^1.18.2"},"repository":{"type":"git","url":"git+https://github.com/codedre/eslint-config-codedre.git"},"bugs":{"url":"https://github.com/codedre/eslint-config-codedre/issues"},"homepage":"https://github.com/codedre/eslint-config-codedre#readme","gitHead":"c91fb8fa56ede7616f20813bed5a09fd6c6b6324","_id":"@codedre/eslint-config-codedre@1.0.1","_nodeVersion":"12.10.0","_npmVersion":"6.10.3","dist":{"integrity":"sha512-/URNECfsAUXLnyjFa9RGSwtGWJieJ00nT3NSo2O4knPjuq8xWu49qL7MAErlRuT8ixlzW0NQVoFxNd346jrrGw==","shasum":"79aed5da92ab16cb573c0ceaea141d0e678afc85","tarball":"https://registry.npmjs.org/@codedre/eslint-config-codedre/-/eslint-config-codedre-1.0.1.tgz","fileCount":4,"unpackedSize":4207,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdguksCRA9TVsSAnZWagAAp8sP/2jP/eQDEYmoe/zxcE1i\njsDZqbw3j77ESacme8f/2K3navMpFluv06wkR6ooOerLj8DSkzX/hyNiQrm5\nOkdUOTAaXjQpw9aMHQI2u4a0Dz/pSuXPezcvjtAPXaVu/rw55MYVkAU9u6xT\nK1q52hrYaaoAq50zMaOEB0MLKahW84zQcRPU1NRh8a46sxZTVJWMIF30WLAf\nlyJRBRtRCv4Z4+3aGvqvZSbN0Z9f+YjjlzhSmYv2lb1fSTmhUl4plB+eHzzH\nGCV4xU2o2K1fxA2tERLyha9QhktwVoaAB18BI7fFiExMSbQaneBUvbv5/hrs\nMz557hpgL620nSGlj5PcjQ3Uio5hreJFYEGTo1KBn50rZIyWzhDqf/PU7lms\nqTyDX6LIvni4Dy5zP0nUzncFZ9UDFTp8mdEPL79c6akz9fqhnKaczNyRfStc\n39KhRIzoCgrxpL9NlXGa0fL1qUBVp7VBSOTJdya8XUK8rU2sQU6E0qxtLd1a\nri2p5F3Q5O9xAHdFLSmD/0G/JpVYJORo3ax47kUo7+ZLAN28i/DEUko71KEv\nB4aUWrxGx/Lhh6kYWrXhnozNH8YtljjivyLojGOLapuQubd9veAUyPq/7ub3\nIrK8gKAd5x63M/zxFCviwqJUTL61kP3/bDeeSTDC++sCWrgd67GHUESRlnaW\nzA4i\r\n=SKr0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG9TG401kiJnYXw5cKVfOhCMPYJOur06xH05JL9kDrdcAiEA67HvtyGzZdf7faoLY+abD4Ib+2jpPrta25oh4DGXrFE="}]},"maintainers":[{"name":"codedre","email":"andre@codedre.com"}],"_npmUser":{"name":"codedre","email":"andre@codedre.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config-codedre_1.0.1_1568860459787_0.0011743304806937083"},"_hasShrinkwrap":false},"2.0.0":{"name":"@codedre/eslint-config-codedre","version":"2.0.0","description":"ESLint and Prettier config setup","main":"index.js","scripts":{"lint":"eslint .","lint:fix":"eslint --fix"},"keywords":["javascript","ecmascript","eslint","lint","config","prettier","typescript"],"author":{"name":"Andre Shonubi","email":"andre@codedre.com"},"license":"MIT","peerDependencies":{"@typescript-eslint/eslint-plugin":"^2.3.0","@typescript-eslint/parser":"^2.3.0","babel-eslint":"^10.0.3","eslint":"^6.3.0","eslint-config-airbnb":"^18.0.1","eslint-config-prettier":"^6.2.0","eslint-plugin-eslint-comments":"^3.1.2","eslint-plugin-import":"^2.18.2","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-prettier":"^3.1.0","eslint-plugin-react":"^7.14.3","eslint-plugin-react-hooks":"^2.0.1","prettier":"^1.18.2","typescript":"^3.6.3"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^2.3.0","@typescript-eslint/parser":"^2.3.0","babel-eslint":"^10.0.3","eslint":"^6.3.0","eslint-config-airbnb":"^18.0.1","eslint-config-prettier":"^6.2.0","eslint-plugin-eslint-comments":"^3.1.2","eslint-plugin-import":"^2.18.2","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-prettier":"^3.1.0","eslint-plugin-react":"^7.14.3","eslint-plugin-react-hooks":"^2.0.1","prettier":"^1.18.2","typescript":"^3.6.3"},"repository":{"type":"git","url":"git+https://github.com/codedre/eslint-config-codedre.git"},"bugs":{"url":"https://github.com/codedre/eslint-config-codedre/issues"},"homepage":"https://github.com/codedre/eslint-config-codedre#readme","gitHead":"9096b7c6a6882b3c5c08de433d2de1e24aed1cfa","_id":"@codedre/eslint-config-codedre@2.0.0","_nodeVersion":"12.10.0","_npmVersion":"6.10.3","dist":{"integrity":"sha512-jMX3Rlw1wPEwVGc99AqtUTqCIzlZwXYIpDW+0PB0rCjNUi2FoHfEEXcoxFCW7zJkW1Dr9LILF/O7GimnFMaX5A==","shasum":"7ee10099d711334de3fdd4858091799c983d920c","tarball":"https://registry.npmjs.org/@codedre/eslint-config-codedre/-/eslint-config-codedre-2.0.0.tgz","fileCount":6,"unpackedSize":6848,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdgu5BCRA9TVsSAnZWagAAMnEP/RCf5jqyNO+eqggJ4Yde\n15YOzxsWcZt14YnLjCc30WpZLcmDzWn4KClyb12vUY3Iu9fcPm6smeMAq1yP\nd4qKHOAVVkGBfY9kMTr4BKN9EGN8MwGWMXFqFo85EWpu15OImk1uop+eg8tA\nqJwOal09vb617theBcK3Spvm+WLssNt/i9rqNUWOClZ6ykJdz+USkXNVX6CW\nWzGMhOll+HC5mlXg+aCHuxuK8IgKNf8WFMORzw+hHVmqluAOIJrOUAj0axtL\nouPf06EIbVO2jEpNTH8k1r4W0nS01TnUeUyu1RSNFff+Ei+MevpCp+Waz10c\newcnlmz+G/dWzkikDV6Q05iq6QGz9VVA68MSL+Ezc1eORLi5minHtDCAP01k\nUKaQfFfE7+LvLoOH1QbHNvtU3CBurYaoWHQZRHwKTRt11jDjhYuW8RpHmljh\n8gdZWFwyRjeCBYpXbCX1kggOisFDKOROp0yx8P6XCs0D3vGgmh/+o439tJYW\nzWapClz2zxxJxwR8Smj5maYhuK0nlaEbXwJ4YgxbATkcUDTOWlBx9pdyjp+u\nKDR6PsKl3fFJNDRfC3zEvePtR2lEbetPgZ3UUDOsg+fDfkErzoPbcJn/0mFK\n6NDGMXII+JIF4xGn50v+W0wlYZjGeuF2n+CnXVDCd8pYZcxGwrxeUgWm6bvE\nuo49\r\n=HSch\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEdytGWceqXXRKfhwLA599BwUYWH82EpIdnBy4Hqbpe7AiEAqQf92itTi0eYH+P7Qw1DTFVxZ5bBOtAKAeWD5avq13A="}]},"maintainers":[{"name":"codedre","email":"andre@codedre.com"}],"_npmUser":{"name":"codedre","email":"andre@codedre.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config-codedre_2.0.0_1568861760401_0.06645330380891812"},"_hasShrinkwrap":false}},"time":{"created":"2019-09-07T20:18:12.716Z","1.0.0":"2019-09-07T20:18:13.091Z","modified":"2022-04-05T00:02:03.001Z","1.0.1":"2019-09-19T02:34:19.968Z","2.0.0":"2019-09-19T02:56:00.630Z"},"maintainers":[{"name":"codedre","email":"andre@codedre.com"}],"description":"ESLint and Prettier config setup","homepage":"https://github.com/codedre/eslint-config-codedre#readme","keywords":["javascript","ecmascript","eslint","lint","config","prettier","typescript"],"repository":{"type":"git","url":"git+https://github.com/codedre/eslint-config-codedre.git"},"author":{"name":"Andre Shonubi","email":"andre@codedre.com"},"bugs":{"url":"https://github.com/codedre/eslint-config-codedre/issues"},"license":"MIT","readme":"![version badge](https://img.shields.io/github/package-json/v/codedre/eslint-config-codedre?color=gre&label=eslint-config-codedre&style=for-the-badge)\n\n# My Custom ESLint and Prettier Setup\n\nThese are my settings for ESLint and Prettier that I use in my personal projects. It is based off [eslint-config-wesbos](https://github.com/wesbos/eslint-config-wesbos) and [eslint-config-hzdg](https://github.com/hzdg/linter-configs/blob/master/JavaScript/eslint-config-hzdg).\n\n## What it does\n\n- Lints JavaScript based on the latest standards\n- Fixes issues and formatting errors with Prettier\n- Lints + Fixes React via eslint-config-airbnb\n- Has optional TypeScript linter config\n\n## Installation\n\n```bash\n$ npx install-peerdeps --dev @codedre/eslint-config-codedre\n```\n\nCreate `.eslintrc` file in the root of your project and add the following:\n\n```\n{\n  \"extends\": [\n    \"@codedre/codedre\"\n  ]\n}\n```\n\n## TypeScript\n\nConfigure eslint to extend the `codedre` TypeScript config:\n\n> **`.eslintrc`**\n>\n> ```json\n> {\n>   \"extends\": [\"@codedre/codedre\", \"@codedre/codedre/typescript\"]\n> }\n> ```\n\nAdd the necessary TypesScript peer dependencies:\n\n```sh\nyarn add --dev @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript\n```\n\nTypeScript has its own configuration file that is used by the compiler\nand other tools, like editor integrations. This project ships with\na `tsconfig.json` that you can extend in your project:\n\n> **`tsconfig.json`**\n>\n> ```json\n> {\n>   \"extends\": \"@codedre/eslint-config-codedre/tsconfig\"\n> }\n> ```\n\n> **NOTE for VSCode users:**\n>\n> The [vscode-eslint] extension does not currently lint `.ts` or `.tsx` files\n> by default. To get eslint to run on your TypeScript files,\n> configure the extension in VSCode project (or global) settings:\n>\n> **`.vscode/settings.json`**\n>\n> ```json\n> {\n>   \"eslint.validate\": [\n>     \"javascript\",\n>     \"javascriptreact\",\n>     \"typescript\",\n>     \"typescriptreact\"\n>   ]\n> }\n> ```\n\n## With VS Code\n\nHere are the instructions for VS Code:\n\n1. Install the [ESLint package](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n2. Now we need to setup some VS Code settings via `Code/File` → `Preferences` → `Settings`. It's easier to enter these settings while editing the `settings.json` file, so click the `{}` icon in the top right corner:\n\n```js\n  // These are all my auto-save configs\n\"editor.formatOnSave\": true,\n// turn it off for JS and JSX, we will do this via eslint\n\"[javascript]\": {\n  \"editor.formatOnSave\": false\n},\n\"[javascriptreact]\": {\n  \"editor.formatOnSave\": false\n},\n// tell the ESLint plugin to run on save\n\"eslint.autoFixOnSave\": true,\n// Optional BUT IMPORTANT: If you have the prettier extension enabled for other languages like CSS and HTML, turn it off for JS since we are doing it through Eslint already\n```\n","readmeFilename":"readme.md"}