{"name":"eslint-config-standard-prettier-fp","version":"15.9.5","main":"src/.prettierrc.yml","scripts":{"test":"gulp test"},"husky":{"hooks":{"pre-push":"gulp check --full"}},"description":"ESLint configuration combining Standard JavaScript, Prettier and functional programming","keywords":["eslint","eslintconfig","prettier","prettierrc","standard","standard style","JavaScript Standard Style","editorconfig","lint","config","configuration","strict","modern","modularity","functional","fp"],"license":"Apache-2.0","homepage":"https://git.io/fhSs6","repository":{"type":"git","url":"git+https://github.com/ehmicky/eslint-config-standard-prettier-fp.git"},"bugs":{"url":"https://github.com/ehmicky/eslint-config-standard-prettier-fp/issues"},"author":{"name":"ehmicky","email":"ehmicky@gmail.com","url":"https://github.com/ehmicky"},"directories":{"lib":"src","test":"test"},"dependencies":{},"devDependencies":{"ava":"^1.4.1","core-js":"^3.0.1","eslint":"^6.0.0-alpha.0","eslint-config-prettier":"^4.1.0","eslint-config-standard":"^12.0.0","eslint-import-resolver-node":"^0.3.2","eslint-plugin-ava":"^6.0.0","eslint-plugin-eslint-comments":"^3.1.1","eslint-plugin-filenames":"^1.3.2","eslint-plugin-fp":"^2.3.0","eslint-plugin-html":"^5.0.3","eslint-plugin-import":"^2.17.2","eslint-plugin-markdown":"^1.0.0","eslint-plugin-node":"^8.0.1","eslint-plugin-promise":"^4.1.1","eslint-plugin-standard":"^4.0.0","eslint-plugin-unicorn":"^8.0.2","eslint-plugin-you-dont-need-lodash-underscore":"^6.4.0","execa":"^1.0.0","gulp":"^4.0.0","gulp-shared-tasks":"^0.27.4","husky":"^1.3.1","prettier":"^1.17.0"},"peerDependencies":{"eslint":"^6.0.0-alpha.0","eslint-config-prettier":"^4.1.0","eslint-config-standard":"^12.0.0","eslint-import-resolver-node":"^0.3.2","eslint-plugin-ava":"^6.0.0","eslint-plugin-eslint-comments":"^3.1.1","eslint-plugin-filenames":"^1.3.2","eslint-plugin-fp":"^2.3.0","eslint-plugin-html":"^5.0.3","eslint-plugin-import":"^2.17.2","eslint-plugin-markdown":"^1.0.0","eslint-plugin-node":"^8.0.1","eslint-plugin-promise":"^4.1.1","eslint-plugin-standard":"^4.0.0","eslint-plugin-unicorn":"^8.0.2","eslint-plugin-you-dont-need-lodash-underscore":"^6.4.0","prettier":"^1.17.0"},"engines":{"node":"^8.10.0 || ^10.13.0 || >=11.10.1"},"gitHead":"c7d6b64f3ff2c81545355ead2e85b420fc626968","_id":"eslint-config-standard-prettier-fp@15.9.5","_nodeVersion":"11.14.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-83nIup/dMRtXb1NAqkQQHltF8r85MQnDf13l12lWT/R3/uQmsiC542W9l0BuvjdcJD1t4uiAuaZqp2BtdKLCiQ==","shasum":"020c4cbbc1e387b6eb5a7b13b7cdf7bb1421b8ad","tarball":"http://registry-npm.ywwl.com/eslint-config-standard-prettier-fp/download/eslint-config-standard-prettier-fp-15.9.5.tgz","fileCount":8,"unpackedSize":69453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJctvNACRA9TVsSAnZWagAAkB0P/3Jk8+eA2JLWvQDbQjQ2\nPI4wvDYvATEt9WdPhbXcb3K0hXkIDpJqNjcCnwks53tO65J4pOhc356J3gqf\np/QlP6eNvd1z36NmLwHVQKWMBB+nbzVPYDHQlnwBYzlSGDYaE6fE0IiHPXnt\n8vrgbj0480B7jmbK49OYPgpEKUCsQJV2FjD2HDAm46+ny3EoemlVid9CXLCP\n+m/ziD3bfdVmUXZ40Vo6st6tyRlb6uVLqVjbhUxjV6UC6ameSOPK6gS65kJI\nr38yHNRxLZaQx2UqzEt+SPcw7kwppFk4w25/jsueE1MYf9Q/5qj3Q0o0EW0O\nTJePK1JBEOSZVJhapwCegR4SL1x7D7kmDpkvgX+hUts8vPxM/i28QrE2VN45\nQIJTjtqJGt46oFflxLurVwMBPYinmk95yZLubtQnnkN6X85rnHOgzCnNT1V7\nYFVoObS7znLDmPs2/new980shWDmmeRQumrHMwV7me/xXhqM/0y5nc0+TAe8\nh+tw3jjTTZgjvaXCkcjTAWyL05HYI0twyTxnOZL5QHb08ZYUZCEz6XfMtQDU\nP2zEOhW68BjDwclABrHn8MjoXsQrqzZLQuobKFnTbNpU4P0pSq7vvZbJ7mqG\n8cLeW7WcOKEkqnrVilNRHI4pYPfg2nHXQLAowbHjqrbdDTpw12JS70IhRD2x\n65wN\r\n=ic6a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCT0aM7etikAGiTMzFBFiNrDI4d43Xn0TdfIYc/nzcLdwIgbZeqr4sCqft28dcKOIjnVuiCES4l1ZYq1OZIkEHthmc="}],"size":15385,"noattachment":false,"key":"/eslint-config-standard-prettier-fp/-/eslint-config-standard-prettier-fp-15.9.5.tgz"},"maintainers":[{"name":"ehmicky","email":"ehmicky@gmail.com"}],"_npmUser":{"name":"ehmicky","email":"ehmicky@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config-standard-prettier-fp_15.9.5_1555493695639_0.1253950804066133"},"_hasShrinkwrap":false,"deprecated":"Renamed to @ehmicky/eslint-config","readme":"[![Travis](https://img.shields.io/badge/cross-platform-4cc61e.svg?logo=travis)](https://travis-ci.org/ehmicky/eslint-config-standard-prettier-fp)\n[![Node](https://img.shields.io/node/v/eslint-config-standard-prettier-fp.svg?logo=node.js)](https://www.npmjs.com/package/eslint-config-standard-prettier-fp)\n[![Gitter](https://img.shields.io/gitter/room/ehmicky/eslint-config-standard-prettier-fp.svg?logo=gitter)](https://gitter.im/ehmicky/eslint-config-standard-prettier-fp)\n[![Twitter](https://img.shields.io/badge/%E2%80%8B-twitter-4cc61e.svg?logo=twitter)](https://twitter.com/intent/follow?screen_name=ehmicky)\n[![Medium](https://img.shields.io/badge/%E2%80%8B-medium-4cc61e.svg?logo=medium)](https://medium.com/@ehmicky)\n\n[ESLint](https://eslint.org/) configuration combining:\n\n- [functional programming](#functional-programming).\n- [Standard JavaScript](https://standardjs.com/) which prescribes how to format\n  your code.\n- [Prettier](https://prettier.io/) which automatically formats your code as part\n  of your build process or inside your IDE.\n- [editorconfig](https://editorconfig.org/) which fulfills a similar goal but\n  more generic and limited.\n- [modularity](#modularity) by encouraging splitting your code into small\n  modules and functions.\n- [modern JavaScript](#modern-javascript).\n- [strictness](#stricness).\n\nThe configuration is very opinionated but you can override specific rules in\nyour `.eslintrc` to fit your needs and coding style.\n\n# Install\n\n```\n$ npm install -D eslint-config-standard-prettier-fp eslint@^6.3.0 eslint-config-prettier@^6.2.0 eslint-config-standard@^14.1.0 eslint-import-resolver-node@^0.3.2 eslint-plugin-ava@^8.0.0 eslint-plugin-eslint-comments@^3.1.2 eslint-plugin-filenames@^1.3.2 eslint-plugin-fp@^2.3.0 eslint-plugin-html@^6.0.0 eslint-plugin-import@^2.18.2 eslint-plugin-markdown@^1.0.0 eslint-plugin-node@^10.0.0 eslint-plugin-promise@^4.2.1 eslint-plugin-standard@^4.0.1 eslint-plugin-unicorn@^10.0.0 eslint-plugin-you-dont-need-lodash-underscore@^6.7.0 prettier@^1.18.2\n```\n\nThen add the following files.\n\n`.eslintrc.yml`:\n\n```yml\nextends: standard-prettier-fp/.eslintrc.yml\n```\n\n`.prettierrc.yml`:\n\n```yml\neslint-config-standard-prettier-fp\n```\n\n`.gitattributes`:\n\n```\n* text=auto eol=lf\n```\n\nFinally copy the `.editorconfig`:\n\n```shell\n$ cp node_modules/eslint-config-standard-prettier-fp/.editorconfig .\n```\n\n# Prettier\n\n`prettier` must be run before `eslint` to avoid conflicts.\n\nWe recommend using first `prettier --write` then `eslint --fix --cache`.\n\nDo not forget to add `.eslintcache` to your `.gitignore` file.\n\n# Coding style\n\n## Functional programming\n\nState should be immutable.\n\nVariables and object properties should be read-only. They should be copied\ninstead of mutated. Assignment should only happen during declaration.\n\nThe following patterns should be avoided as they imply state:\n\n- loops (`for`, `while`). Use functional methods (like `Array.map()` and\n  `Array.filter()`) and recursion instead.\n- classes/OOP. To inherit/share behavior, use composition or generic programming\n  instead.\n- events. Use promises and streams instead.\n\nGlobal variables should not be used except the ones that are built-in (e.g.\n`Object`).\n\nThrowing exceptions is allowed as this can simplify code.\n\n## Modularity\n\nCode should be split into small files and functions:\n\n- files have at most 90 non-empty lines and 10 dependencies.\n- functions have at most 4 branches and 10 statements.\n- branches/blocks should not be nested.\n- lines are at most 80 characters long.\n\n## Modern JavaScript\n\n- ES modules. Exports should be named (no `export default`).\n- object and array destructuring.\n- object spreading: `{ ...object }` instead of `Object.assign({}, ...object)`\n- arguments spreading: `funcName(...args)` instead of\n  `funcName.call(this, ...args)`\n- parameters spreading: `function(...args)` instead of `function(arguments)`\n- template strings instead of concatenation.\n- `async`/`await` instead of explicit promises or callbacks.\n- vanilla JavaScript instead of Lodash/Underscore.\n- only JavaScript features supported by the Node.js version specified in your\n  `package.json` `engines` field.\n\n## Strictness\n\nThe configuration is very explicit and enforces strict linting. This should help\nyou find bugs and maintain a consistent coding style:\n\n- no dead code.\n- typecasting should be explicit.\n- file dependencies should be sorted.\n- variable names should remain short.\n- constants should be assigned to variables.\n- avoiding turning off ESLint rules with comments.\n- RegExps should use the `u` flag.\n- no variables shadowing.\n\n## Other styling rules\n\n- named parameters (i.e. passing an object as single parameter) instead of\n  positional parameters.\n- function declarations should be `const funcName = function() { ... }`\n\n# HTML and Markdown\n\n[eslint-plugin-html](https://github.com/BenoitZugmeyer/eslint-plugin-html) and\n[eslint-plugin-markdown](https://github.com/eslint/eslint-plugin-markdown) are\nincluded so you can lint JavaScript inside HTML or Markdown files.\n\n# Support\n\nIf you found a bug or would like a new feature, _don't hesitate_ to\n[submit an issue on GitHub](../../issues).\n\nFor other questions, feel free to\n[chat with us on Gitter](https://gitter.im/ehmicky/eslint-config-standard-prettier-fp).\n\nEveryone is welcome regardless of personal background. We enforce a\n[Code of conduct](CODE_OF_CONDUCT.md) in order to promote a positive and\ninclusive environment.\n\n# Contributing\n\nThis project was made with ❤️. The simplest way to give back is by starring and\nsharing it online.\n\nIf the documentation is unclear or has a typo, please click on the page's `Edit`\nbutton (pencil icon) and suggest a correction.\n\nIf you would like to help us fix a bug or add a new feature, please check our\n[guidelines](CONTRIBUTING.md). Pull requests are welcome!\n\n<!-- Thanks go to our wonderful contributors: -->\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore -->\n<table><tr><td align=\"center\"><a href=\"https://twitter.com/ehmicky\"><img src=\"https://avatars2.githubusercontent.com/u/8136211?v=4\" width=\"100px;\" alt=\"ehmicky\"/><br /><sub><b>ehmicky</b></sub></a><br /><a href=\"https://github.com/ehmicky/eslint-config-standard-prettier-fp/commits?author=ehmicky\" title=\"Code\">💻</a> <a href=\"#design-ehmicky\" title=\"Design\">🎨</a> <a href=\"#ideas-ehmicky\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/ehmicky/eslint-config-standard-prettier-fp/commits?author=ehmicky\" title=\"Documentation\">📖</a></td></tr></table>\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n","publish_time":1555493695760,"_cnpm_publish_time":1555493695760,"dist-tags":{"latest":"15.10.14"}}