{"_id":"@digital-wafa/eslint-config","_rev":"1-7c0fc13dcdfd77412dbabcb9ef6983e3","name":"@digital-wafa/eslint-config","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@digital-wafa/eslint-config","version":"1.0.0","description":"eslint configuration","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/digital-wafa/eslint-config.git"},"author":{"name":"Belaicher ANASS","email":"belaicher.anass@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/digital-wafa/eslint-config/issues"},"homepage":"https://github.com/digital-wafa/eslint-config#readme","devDependencies":{"@typescript-eslint/parser":"^4.1.1","babel-eslint":"^10.1.0","eslint":"^7.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-babel":"^5.3.1","eslint-plugin-react":"^7.20.6","typescript":"^4.0.2"},"gitHead":"c13b532232954ab6f75e6951d597294cd565349a","_id":"@digital-wafa/eslint-config@1.0.0","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-KqJgZuCj54FtRJAzPJ7OewFCGHVkQzvn4erB6G1D7/sWE2zlY1PjK/XxMFu9zsHPUqDDHlRe2LDRCPULPzKO1w==","shasum":"5b731560b0a4eb88391eeaaf189332a4728daeeb","tarball":"https://registry.npmjs.org/@digital-wafa/eslint-config/-/eslint-config-1.0.0.tgz","fileCount":10,"unpackedSize":32869,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYQaVCRA9TVsSAnZWagAAlVcP/23jfmG1/UhLsRI6jo5o\nGHX12Ij/BiGKG/CTnSjGkX/DZRhm0ImuccTSXb1GFFzD0mQy6xwIxRCU4mgr\nO3WdTCOlteG0uQ8aa9NWDDejjzTC7bD9DqnbYn5amgHZdtuFRTtD7iz7CVr7\n4+PvlZmGl2h9pTj/4Ic0eJHeFvSfuAri0jgQ28CF6x16RGaArEJz5Wszvi+S\n1h37yFrcypVbB23xSPGjNzHsrP+1Kx3Xi1HoHkhWkDgPlTAa4t8zxlmLEwS/\n8eTaQcCamCCd76i5D3F4Y/UH3cunZjces9UKTESB/PYZgwC1iVTtxfmgi4Ho\noTwoIJtTE/tr7kkD1UvNNaggSq+h4wUuGakVNzD2ipNeCDQSp3FbJFgpSJo7\nhna2Y8RO46eSA577ErQOQCvhodLdlycdDV+FT0zZmPI2b8L5kU/lQ6eab+vC\ntENxIZFpe5ySwYcRgT3LO9PsAfKHcf9LHqRU6KpQOC5nVsAfLCcVEVUWjrZO\nocV1N3PF8hoOYQOETizG8QvdITReVKnhh2VusxfE2JEd8xRle5MP+2OKcYsV\ncKA4G0JQWnHQ7yxLzpZiMsTDyjWX+vfLbmiCOBB1g/CWpQJUFaqsvYSn3u/t\nYHlmtV8PZveTFyj+1v7lZrhGPKnZOkFmstSiGZSJ1VxMmwY9u/1EwFpNbyjO\ngHYp\r\n=4I0H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMKiP0ZpgBZh4NWoO/K/0pfdWTRmMgZdjNkFzkNgY4rAIhAKytxE59uZGLCkmaobrjoqHLrndLyLMYu4+IRXjuo+YO"}]},"maintainers":[{"name":"b.anass","email":"belaicher.anass@gmail.com"},{"name":"jmounim","email":"abdelmounim.jakim@gmail.com"}],"_npmUser":{"name":"b.anass","email":"belaicher.anass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config_1.0.0_1600194197553_0.6238548341869465"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-15T18:23:17.293Z","1.0.0":"2020-09-15T18:23:17.678Z","modified":"2022-04-05T04:36:49.573Z"},"maintainers":[{"name":"b.anass","email":"belaicher.anass@gmail.com"},{"name":"jmounim","email":"abdelmounim.jakim@gmail.com"}],"description":"eslint configuration","homepage":"https://github.com/digital-wafa/eslint-config#readme","repository":{"type":"git","url":"git+https://github.com/digital-wafa/eslint-config.git"},"author":{"name":"Belaicher ANASS","email":"belaicher.anass@gmail.com"},"bugs":{"url":"https://github.com/digital-wafa/eslint-config/issues"},"license":"MIT","readme":"![wafa prettier conifg](images/logo.jpeg)\r\n# Eslint-config  ![npm version](https://img.shields.io/npm/v/@digital-wafa/eslint-config)\r\n\r\nA shared eslint configuration to use in digital wafa projects\r\n\r\n***\r\n\r\n## Installing\r\n\r\n```\r\nnpm install @digital-wafa/eslint-config --save-dev\r\n```\r\n\r\nIt highly recommend extending the base config if you are using `create-react-app` if you don't skip this config :\r\n\r\n```javascript\r\n{\r\n  \"extends\": [\"react-app\"]\r\n}\r\n```\r\n\r\n## Usage\r\n\r\nAdd this config to your `.eslintrc` :\r\n\r\n```javascript\r\n{\r\n  \"extends\": [\r\n    \"@digital-wafa/eslint-config\"\r\n  ],\r\n  \"rules\": {\r\n    /* custom rules */\r\n  }\r\n}\r\n```\r\n\r\n## Other configs\r\n\r\nThis config also exposes a few other configs that I use often and pull in as needed.\r\n\r\nYou can use them standalone:\r\n\r\n```javascript\r\n{\r\n  \"extends\": [\r\n    \"@digital-wafa/eslint-config/<config-name>\",\r\n  ]\r\n}\r\n```\r\nOr in combination with the base config (recommended)\r\n\r\n```javascript\r\n{\r\n  \"extends\": [\r\n    \"@digital-wafa/eslint-config\",\r\n    \"@digital-wafa/eslint-config/<config-name>\",\r\n  ]\r\n}\r\n```\r\n\r\n## Example of highly customized config\r\n\r\n```javascript\r\n{\r\n  \"extends\": [\r\n    \"@digital-wafa/eslint-config\",\r\n    \"@digital-wafa/eslint-config/react\",\r\n    \"@digital-wafa/eslint-config/typescript\"\r\n  ],\r\n  \"rules\": {\r\n    /* custom rules */\r\n  },\r\n}\r\n```\r\n\r\nWhen working with `TypeScript`, you'll need to provide an overrides object for rules that should only target TypeScript files.\r\n\r\n```javascript\r\n{\r\n  /* your base config */\r\n  \"overrides\": [\r\n    {\r\n      \"files\": [\r\n        \"**/*.ts?(x)\"\r\n      ],\r\n      \"rules\": {\r\n        /* custom rules */\r\n      }\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\nYou can add two scripts to your package.json to lint and/or fix:\r\n\r\n```javascript\r\n{\r\n  \"scripts\": {\r\n    \"lint\": \"eslint ./src/*\",\r\n    \"lint:fix\": \"eslint ./src/* --fix\"\r\n  },\r\n}\r\n```\r\n\r\nTip: You can alternatively put this object in your `package.json` under the property `\"eslintConfig\":`. This makes one less file in your project.\r\n","readmeFilename":"README.md"}