{"name":"stylelint-config-rational-order","version":"0.1.1","description":"Stylelint config that sorts related property declarations by grouping together following the order: Positioning, Box Model, Typography, Visual, Animation, Other.","author":{"name":"Constverum","email":"constverum@gmail.com"},"license":"Apache-2.0","main":"index.js","repository":{"type":"git","url":"git+https://github.com/constverum/stylelint-config-rational-order.git"},"bugs":{"url":"https://github.com/constverum/stylelint-config-rational-order/issues"},"scripts":{"lint":"node ./node_modules/eslint/bin/eslint.js .","test":"node ./node_modules/jest-cli/bin/jest.js"},"keywords":["stylelint","stylelint-config","stylelint-order","stylelint-plugin","properties-order","css property order","declaration-order","css declaration order","rational-css","order-css","order"],"dependencies":{"stylelint":"^9.10.1","stylelint-order":"^2.2.1"},"devDependencies":{"eslint":"^5.16.0","eslint-config-airbnb-base":"^13.1.0","eslint-config-prettier":"^4.1.0","eslint-plugin-import":"^2.16.0","eslint-plugin-jest":"^22.4.1","eslint-plugin-prettier":"^3.0.1","jest":"^24.7.1","prettier":"^1.16.4"},"homepage":"https://github.com/constverum/stylelint-config-rational-order","gitHead":"879b3d7e4e8cc0135dfcaa558f42bf182134a969","_id":"stylelint-config-rational-order@0.1.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"constverum","email":"constverum@gmail.com"},"dist":{"integrity":"sha512-RIqnCPrvcwbwH8IY4361ZNlWPc6uaXxv/iAhNz12IW7GrMQcN/h3OOOJrKIQxbIOLISj+sxKTCwyno1I/vUkjg==","shasum":"9e4d4e2a6fa4354771d8adee15a937e6a527fb2c","tarball":"http://registry-npm.ywwl.com/stylelint-config-rational-order/download/stylelint-config-rational-order-0.1.1.tgz","fileCount":22,"unpackedSize":244940,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJctEJSCRA9TVsSAnZWagAA+EwP+wYwujKFBxTPXezIVKeH\nSBuTlCgWCvBCsNA7XAkLgIysBvkoxDyImhXGvCB9JwiRvvZEg/JvWG3EjsZP\nppb5gsQ9b4hnNDtffslVaUQPFyLi4gg7BvlJTXaUNF2NcF9KOna3jUPeCN7I\nrON+Py06zNyDhSex9kBC9nM2j0wlBIT2sUpELC1x3U/ZQSbilRdgkKVZjtgO\n3ylRv2Bg4xfYQn6WV3GaxoQWxvu7rl7/9AqPEStsPCsoog9N3RWQ/5z4AQUN\nCxXFxx+eFiK5F6EOsovK2S0NQ50QOdvX4jwu3dejYoCnffn9KOen5eCk1XBH\n9XzaL8ufMrA+l16U/YIxK+Fl4E4ofKmHeEfIEDXKAPZN9mJxpCrbJgrbfCJn\nFq5vbJe/NNCJSJEvtWA4k3P/f9D1GN74fYxk+pJmkjhE07C7L0BsP2bFZyAD\nBvAmpuIP2jI7AMaekSzcGn7Aq2c84c/Z5bFpaWft6Z1hZRKpkbryF4O0eT8e\nNQs/CnGTTa8oTk8RGj9ZqBSKG4W9HvpaFhcmUPa/TUFMOHlojdHE1YcVLr1a\n45Re11TatpBwYZqbNm785VIpFBGc4PPKwmZA5fXkY4IEANbcq4bXleadf3S1\n8Xx4iCxkEldAsjd8UVHTPIjPaNOCAiXIIpYV94XXB8MygUEVxB9tTVroRDrF\nkRSh\r\n=2crN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmdpWs7dsBJYsmJDGgqIh1mzjgJyXN2XBXWlXuRyFktQIhAN0zoOIWhke5lgON52edvjBktWxy/CP0CU+fEIetcTLW"}],"size":94500,"noattachment":false,"key":"/stylelint-config-rational-order/-/stylelint-config-rational-order-0.1.1.tgz"},"maintainers":[{"name":"constverum","email":"constverum@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stylelint-config-rational-order_0.1.1_1555317329479_0.4268072852726228"},"_hasShrinkwrap":false,"readme":"# stylelint-config-rational-order\n\n[![NPM version][version-img]][npm-url] [![Build status][ci-img]][ci-url] [![License][l-img]][l-url]\n\nStylelint config that sorts related property declarations by grouping together following the order:\n\n1.  Positioning\n2.  Box Model\n3.  Typography\n4.  Visual\n5.  Animation\n6.  Misc\n\n```css\n.declaration-order {\n  /* Positioning */\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  z-index: 10;\n\n  /* Box Model */\n  display: block;\n  float: right;\n  width: 100px;\n  height: 100px;\n  margin: 10px;\n  padding: 10px;\n\n  /* Typography */\n  color: #888;\n  font: normal 16px Helvetica, sans-serif;\n  line-height: 1.3;\n  text-align: center;\n\n  /* Visual */\n  background-color: #eee;\n  border: 1px solid #888;\n  border-radius: 4px;\n  opacity: 1;\n\n  /* Animation */\n  transition: all 1s;\n\n  /* Misc */\n  user-select: none;\n}\n```\n\n## Usage\n\n1.  Add `stylelint`, `stylelint-order` and this package to your project:\n\n```bash\nnpm install --save-dev stylelint stylelint-order stylelint-config-rational-order\n# or, if you prefer yarn over npm:\nyarn add --dev stylelint stylelint-order stylelint-config-rational-order\n```\n\n2.  Add this package to the end of your extends array inside Stylelint\n    configuration (.stylelintrc for example):\n\n```javascript\n{\n  \"extends\": [\n    // \"stylelint-config-standard\",\n    \"stylelint-config-rational-order\"\n  ]\n}\n```\n\nThis shareable config contains the following:\n```javascript\n{\n  \"plugins\": [\n    \"stylelint-order\",\n    \"stylelint-config-rational-order/plugin\"\n  ],\n  \"rules\": {\n    \"order/properties-order\": [],\n    \"plugin/rational-order\": [true, {\n      \"border-in-box-model\": false,\n      \"empty-line-between-groups\": false,\n    }]\n  }\n}\n```\n\nSince it adds `stylelint-order` and `stylelint-config-rational-order` to plugins and also adds required rules, you don't have to do this yourself when extending this config.\n\n\n## Optional options / rules\n\n#### border-in-box-model\n\nDefines to which group the **border** property belongs to.\n\nIf `true` **border** property belongs to the **box model section**.\nThe default value is `false` (**border** property belongs to the **visual section**).\n\n\n#### empty-line-between-groups\n\nIf `true` adds an empty line between groups. The default value is `false`.\n\n## FAQ\n\n<details>\n  <summary>Why should I use the rational order and group and sort CSS properties by type instead of alphabetical order?</summary>\n\n  The pros and cons of both ways in detail:\n\n* [Happy Potter and the Order of CSS](https://dev.to/thekashey/happy-potter-and-the-order-of-css-5ec)\n* [“Outside In” — Ordering CSS Properties by Importance](https://webdesign.tutsplus.com/articles/outside-in-ordering-css-properties-by-importance--cms-21685)\n</details>\n\n## Credits\n\n* [Code Guide by @mdo](http://codeguide.co/)\n* [Code Guide by HTML Academy](https://github.com/htmlacademy/codeguide)\n\n\n[npm-url]: https://www.npmjs.com/package/stylelint-config-rational-order\n[version-img]: https://img.shields.io/npm/v/stylelint-config-rational-order.svg?style=flat-square\n[ci-url]: https://travis-ci.org/constverum/stylelint-config-rational-order\n[ci-img]: https://img.shields.io/travis/constverum/stylelint-config-rational-order.svg?style=flat-square\n[l-url]: https://www.npmjs.com/package/stylelint-config-rational-order\n[l-img]: https://img.shields.io/npm/l/stylelint-config-rational-order.svg?style=flat-square\n","publish_time":1555317329649,"_cnpm_publish_time":1555317329649,"dist-tags":{"latest":"0.1.2"}}