{"_id":"@creopark/eslint-config","_rev":"1-38e829b350fd66da95ac5381e5a656a0","name":"@creopark/eslint-config","dist-tags":{"latest":"0.0.0"},"versions":{"0.0.0":{"name":"@creopark/eslint-config","version":"0.0.0","description":"A collection of linting rules","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["eslint"],"author":{"name":"Håvard Geithus"},"license":"ISC","devDependencies":{"eslint":"^5.1.0","eslint-plugin-import":"^2.13.0"},"gitHead":"a7d62b0b97ca6bb47ed4b730aa8bf019058dc43d","_id":"@creopark/eslint-config@0.0.0","_npmVersion":"5.8.0","_nodeVersion":"8.7.0","_npmUser":{"name":"havardge","email":"haavard.geithus@gmail.com"},"dist":{"integrity":"sha512-gWeOMTcaekbYrj/hJtxgmLrjkrhBmjUSSErVVCGUCIOGTTGZrrL1db3xDAjQStn/VZrt4X1wRiNi9m8tR0XsCw==","shasum":"b8998e0e02c1bb48cb377778b3e4394ff093b2df","tarball":"https://registry.npmjs.org/@creopark/eslint-config/-/eslint-config-0.0.0.tgz","fileCount":14,"unpackedSize":67523,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbR0smCRA9TVsSAnZWagAAPx0P/0Utccjy9RD2WYlFeGFX\nyzNfZYCuLYwKZY31xhpSPl3wvMf/o5jfFnWrW16RuSAt0ABf4NBCYnUb8vZO\nylGHwxN0ijKDZ/50jUHHg2JiI9Q1uHawbUBWt9nSMnP9wnHX8AO56w+A8vuo\nBbQasTO3mTszyxKmGwWNe/s2/3hR90fKBXxl1vUi9Cm7ZmDIkPHL5HhSsvxR\nLxwGo/XIROGNI54FsgE3xGwuyUU2y2DuJByiwwzK4kk7JdhI5K9+xHtqBtVx\nf3uj27wUvEHumUZZDcfBXr0xbhJamEjflltlzm73x7q0Xc+ct7NzfoOW/Tdz\nQjbMSaBe9I3+zjm/Mk2321Q+hEOXbHiMNXBm4bwnlWVWB1LDDvMR1eatz8jI\nDa1yBdI6dfh6iY6OQMm1SisbKIN70vMtnttncvm/rEZMlBmrjxB84GVo4eCi\nW+QWt5m5FEu/TdPtjqbIoxXtBbmaHpFz9ezsxqqhmLjc/otL7An1AS4uaxHT\nbadiV3ikoc4zLWOD8gXBBILI7AEl/uPKPz+/vjuK0H2PGWxU+9lDwr4nSPzz\na1LRBPVLYbG3RCLhlkN0dEih/Cf3MVxRu7kiswCLLXfXKcC0pcuJXJEmGYEr\nShrnuC651xj1DwZ+oe4cNAMy+uOEpyumMOzQZkLbkF2/LAaZfxJ6KY/Odwav\nJ0l1\r\n=sPtJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAzecuN0vpls1TVpoT+ftIT81jyoxJAiIN1TN9IxvUt1AiEAh/dtLJ/ofbst3p+8rq0vGJI0/7xf1U6arVyX7XHo13I="}]},"maintainers":[{"name":"havardge","email":"haavard.geithus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config_0.0.0_1531398950318_0.3298851731595269"},"_hasShrinkwrap":false}},"time":{"created":"2018-07-12T12:35:50.261Z","0.0.0":"2018-07-12T12:35:50.464Z","modified":"2022-04-05T01:47:38.122Z"},"maintainers":[{"name":"havardge","email":"haavard.geithus@gmail.com"}],"description":"A collection of linting rules","keywords":["eslint"],"author":{"name":"Håvard Geithus"},"license":"ISC","readme":"# eslint-config\n\nA shared [ESLint](http://eslint.org/) configuration for the Creopark team.\n\nThis configuration is a fork of [Miles' awesome eslint configuration](https://github.com/miles-no/eslint-config-webteam).\n\nIf you want something that is being maintained, use that repository instead.\n\n## Installation\n\nGet started by running this command in the root of your project:\n\n```sh\nnpm install --save-dev eslint eslint-plugin-import\n```\nAdd in your package.json file under devDependencies\n```\n\"@creopark/eslint-config\": \"^1.0.0\"\n```\nand run npm i\n\nThen add an `.eslintrc` file to the root of your project with the following content\n\n```json\n{\n  \"extends\": [\n    \"@creopark/eslint-config\"\n  ]\n}\n```\n\nNOTE: `eslint` plugins are available for most modern text editors, like Atom, WebStorm, etc\n\n## React Projects\n\nFor projects using React, add the following to your `.eslintrc` file\n\n```json\n{\n  \"extends\": [\n    \"@creopark/eslint-config\",\n    \"@creopark/eslint-config/rules/react\"\n  ]\n}\n```\nThen install [`eslint-plugin-react`](https://github.com/yannickcr/eslint-plugin-react) and  [`eslint-plugin-a11y`](https://www.npmjs.com/package/eslint-plugin-jsx-a11y):\n\n```sh\nnpm install --save-dev eslint-plugin-react eslint-plugin-jsx-a11y\n```\nThis gives your linting of React with jsx and some accessibility linting for jsx.\n\nNOTE: You will have to instruct your IDE to lint jsx file extensions (e.g. with Atom, install the atom-react package) or use the eslint CLI:\n\n```sh\n  npm i -g eslint\n  eslint . --ext=.js,.jsx\n```\n\n## Override rules\n\nIt is possible to override rules on project level.\n\n```json\n{\n  \"extends\": [\n    \"@creopark/eslint-config\",\n    \"@creopark/eslint-config/rules/react\"\n  ],\n  \"rules\": {\n      \"max-len\": [\"error\", 80],\n    }\n}\n```\n","readmeFilename":"README.md"}