{"bin":{"run-e":"bin/run_e.js","run-ci":"bin/run_ci.js","run-local":"bin/run_local.js"},"bugs":{"url":"https://github.com/netlify/node-eslint-config/issues"},"dist":{"shasum":"a28a04d7a0119045392cef7d8dfeb8c4627ddb1d","tarball":"https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-3.2.10-prerelease-230-1.tgz","fileCount":12,"integrity":"sha512-o4rQO2T5SajmOTh04D+16w0jAN+4WADnHKo90sNX4v51Bf3UiCP/k+UfwDlix9KpR5GGKFy55QpPhg54W/TrdA==","signatures":[{"sig":"MEYCIQC2RC589A8sIXNlnRk6t2KEj5Z2rPxnxiZNxPCAkptm4AIhAPlf3l574o7uE1wnIPPdrQL6z67ZHw5SM06MMdHKbQfR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21201},"main":".eslintrc.js","name":"@netlify/eslint-config-node","husky":{"hooks":{"pre-push":"npm run format","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"author":{"name":"Netlify Inc."},"config":{"eslint":"--ignore-path .gitignore --cache --format=codeframe --max-warnings=0 \"{bin,.github}/**/*.{js,html}\" \".*.js\"","prettier":"--ignore-path .gitignore --loglevel=warn \"{bin,.github}/**/*.{js,md,yml,json,html}\" \"*.{js,yml,json,html}\" \"!**/package-lock.json\" \"!CHANGELOG.md\""},"readme":"[![Build](https://github.com/netlify/eslint-config-node/workflows/Build/badge.svg)](https://github.com/netlify/node-eslint-config/actions)\n[![Node](https://img.shields.io/node/v/@netlify/eslint-config-node.svg?logo=node.js)](https://www.npmjs.com/package/@netlify/node-eslint-config)\n\nLinting and formatting configuration shared by Netlify Node.js repositories:\n\n- [ESLint](https://eslint.org/)\n- [Prettier](https://prettier.io/)\n- [Editorconfig](https://editorconfig.org/)\n- `.gitattributes`\n\n## How to add to a new Node.js repository\n\nIf you're creating a new repository, you can use the\n[following GitHub template](https://github.com/netlify/node-template). Otherwise, please follow those steps:\n\n- `npm install -D @netlify/eslint-config-node husky@4`\n- Add a `.eslintrc.js` file to the root of the project. Based on the type of the project update the content of the file:\n\n### Node.js project\n\n```js\nconst { overrides } = require('@netlify/eslint-config-node')\n\nmodule.exports = {\n  extends: '@netlify/eslint-config-node',\n  rules: {},\n  overrides: [...overrides],\n}\n```\n\n### React application\n\n```js\nconst { overrides } = require('@netlify/eslint-config-node/react_config')\n\nmodule.exports = {\n  extends: '@netlify/eslint-config-node/react_config',\n  rules: {},\n  overrides: [...overrides],\n}\n```\n\n### Vanilla JS in HTML files\n\n```js\nconst { overrides } = require('@netlify/eslint-config-node/vanilla_js_config')\n\nmodule.exports = {\n  extends: '@netlify/eslint-config-node/vanilla_js_config',\n  rules: {},\n  overrides: [...overrides],\n}\n```\n\n> Individual `rules` and `overrides` can be tweaked for the specific project.\n\n- Add the following `.prettierrc.json` to the root of the project:\n\n```json\n\"@netlify/eslint-config-node/.prettierrc.json\"\n```\n\n- Add the following `commitlint.config.js` to the root of the project:\n\n```js\nmodule.exports = { extends: ['@commitlint/config-conventional'] }\n```\n\n- Copy the `.editorconfig` and `.gitattributes` files relativity to the root of the project.\n- Add the following properties to the `package.json`. Please replace the `config` globbing expressions to match the\n  files where the source JavaScript/Markdown/HTML/JSON/YAML files are located. `npm run format` should also be run\n  during `npm test` and `npm run format:ci` during CI\n  ([example](https://github.com/netlify/cli/blob/main/.github/workflows/main.yml)).\n\n```json\n{\n  \"scripts\": {\n    \"format\": \"run-s format:check-fix:*\",\n    \"format:ci\": \"run-s format:check:*\",\n    \"format:check-fix:lint\": \"run-e format:check:lint format:fix:lint\",\n    \"format:check:lint\": \"cross-env-shell eslint $npm_package_config_eslint\",\n    \"format:fix:lint\": \"cross-env-shell eslint --fix $npm_package_config_eslint\",\n    \"format:check-fix:prettier\": \"run-e format:check:prettier format:fix:prettier\",\n    \"format:check:prettier\": \"cross-env-shell prettier --check $npm_package_config_prettier\",\n    \"format:fix:prettier\": \"cross-env-shell prettier --write $npm_package_config_prettier\"\n  },\n  \"config\": {\n    \"eslint\": \"--ignore-path .gitignore --cache --format=codeframe --max-warnings=0 \\\"{src,scripts,tests,.github}/**/*.{js,md,html}\\\" \\\"*.{js,md,html}\\\" \\\".*.{js,md,html}\\\"\",\n    \"prettier\": \"--ignore-path .gitignore --loglevel=warn \\\"{src,scripts,tests,.github}/**/*.{js,md,yml,json,html}\\\" \\\"*.{js,yml,json,html}\\\" \\\".*.{js,yml,json,html}\\\" \\\"!package-lock.json\\\"\"\n  },\n  \"husky\": {\n    \"hooks\": {\n      \"commit-msg\": \"commitlint -E HUSKY_GIT_PARAMS\",\n      \"pre-push\": \"npm run format\"\n    }\n  }\n}\n```\n\n- Add `.eslintcache` to the `.gitignore`\n","engines":{"node":">=16.0.0"},"gitHead":"4c981e1bd0db3696593daaa22112e507e6b8ed81","license":"Apache-2.0","scripts":{"test":"run-s format test:dev","format":"run-s format:check-fix:*","test:ci":"run-s test:ci:*","test:dev":"run-s test:dev:*","format:ci":"run-s format:check:*","test:ci:ava":"nyc -r lcovonly -r text -r json ava","test:dev:ava":"ava","prepublishOnly":"npm ci && npm test","format:fix:lint":"cross-env-shell eslint --fix $npm_package_config_eslint","format:check:lint":"cross-env-shell eslint $npm_package_config_eslint","format:fix:prettier":"cross-env-shell prettier --write $npm_package_config_prettier","format:check-fix:lint":"./bin/run_e.js format:check:lint format:fix:lint","format:check:prettier":"cross-env-shell prettier --check $npm_package_config_prettier","format:check-fix:prettier":"./bin/run_e.js format:check:prettier format:fix:prettier"},"_npmUser":{"name":"netlify-bot","email":"bot@netlify.com"},"homepage":"https://github.com/netlify/eslint-config-node#readme","keywords":["eslint","eslintconfig","prettier","prettierrc","standard","standard style","JavaScript Standard Style","editorconfig","lint","configuration","config","strict","modern","modularity","functional","fp"],"repository":{"url":"git+https://github.com/netlify/eslint-config-node.git","type":"git"},"_npmVersion":"7.24.0","description":"ESLint and Prettier configuration for Netlify Node.js projects","directories":{"test":"test"},"maintainers":[{"name":"biilmann","email":"info@mathias-biilmann.net"},{"name":"benaiah","email":"benaiah@mischenko.com"},{"name":"erquhart","email":"shawn@netlify.com"},{"name":"shortdiv","email":"hello@shortdiv.com"},{"name":"marcus.netlify","email":"marcus+npm@netlify.com"},{"name":"ehmicky","email":"ehmicky@gmail.com"},{"name":"erezro","email":"erezrokah@gmail.com"},{"name":"lesliecdubs","email":"leslie@cohnwein.com"},{"name":"futuregerald","email":"gerald.onyango@gmail.com"},{"name":"neolegends","email":"moritz.gunz@gmail.com"},{"name":"lindsaylevine","email":"lindslev.ll@gmail.com"},{"name":"jgantunes","email":"me@jgantunes.com"},{"name":"eduardoboucas","email":"mail@eduardoboucas.com"},{"name":"charliegerard","email":"charlie.a.gerard@gmail.com"},{"name":"netlify-bot","email":"bot@netlify.com"},{"name":"nasiba","email":"nasiba@netlify.com"},{"name":"zachleat","email":"zachleatherman@gmail.com"},{"name":"ascorbic","email":"m@mk.gg"},{"name":"lukeoliff","email":"luke@lukeoliff.com"}],"_nodeVersion":"16.10.0","dependencies":{"execa":"^5.0.0","husky":"^4.3.0","is-ci":"^3.0.0","eslint":"^7.21.0","prettier":"^2.1.2","statuses":"^2.0.1","cross-env":"^7.0.2","@babel/core":"^7.13.8","npm-run-all":"^4.1.5","@commitlint/cli":"^13.0.0","eslint-plugin-fp":"^2.3.0","eslint-plugin-ava":"^13.0.0","eslint-plugin-html":"^6.1.0","eslint-plugin-node":"^11.1.0","eslint-plugin-react":"^7.21.5","@babel/eslint-parser":"^7.13.8","eslint-plugin-import":"^2.23.4","eslint-plugin-promise":"^5.0.0","eslint-plugin-unicorn":"^36.0.0","eslint-config-prettier":"^8.0.0","eslint-config-standard":"^16.0.0","eslint-plugin-markdown":"^2.0.0","@typescript-eslint/parser":"^4.26.1","eslint-import-resolver-node":"^0.3.4","eslint-plugin-eslint-comments":"^3.2.0","@commitlint/config-conventional":"^13.0.0","@typescript-eslint/eslint-plugin":"^4.26.1","eslint-import-resolver-typescript":"^2.5.0","eslint-plugin-you-dont-need-lodash-underscore":"^6.10.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"ava":"^3.13.0","nyc":"^15.1.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-config-node_3.2.10-prerelease-230-1_1632934294658_0.8356716144763725","host":"s3://npm-registry-packages"},"_id":"@netlify/eslint-config-node@3.2.10-prerelease-230-1","version":"3.2.10-prerelease-230-1"}