{"name":"stylelint-config-rational-order","version":"0.1.0","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":"5910234e9e0eb815a43be01db987ec56f7a1be20","_id":"stylelint-config-rational-order@0.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"constverum","email":"constverum@gmail.com"},"dist":{"integrity":"sha512-tVtVd5Z13MDn76mJA/AsEgjrc8DJahYkENlhSOmnwcbhm2VEV4kID4tbUVl9ywTvX6rfnZc3xwarElzUe9kQNA==","shasum":"ac0c2ef0cd45b05e979340fde25b3c6dcde093f7","tarball":"http://registry-npm.ywwl.com/stylelint-config-rational-order/download/stylelint-config-rational-order-0.1.0.tgz","fileCount":22,"unpackedSize":244350,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcrvdtCRA9TVsSAnZWagAAwAsP+QEG30dLxEdFrNc0uB9Z\n/V7kpTgWLa3GbfVYbE0sCrqQKQgGvOxOxLu3aEsO46MwIJxEyY011SiJ3ax2\nQeTvwFaO/iogr7mmaQTFp5emWmxyWvvPcVAnjihWCeOOm4g/qYfnIfVde/td\n623PTxdFoImJOt97Wh3LSeWSkMJ01TyOFIAGD8fGBgWPPPlWvyoHuj9IYdEW\n8+ovQxbIkHAiktW+jAplOMqmU0qc8XPEQcyHT/T3bFLVevWfOJoW0eYNGPA9\nQuqJsvAFdbSEFJ8Je+eDbiei65qamY33NazQQ4l+lkaq8yk5VncH4k83RQUG\n72jmZ59mw+2EXOJJCUdQJMvcYPgXXDu4Y4+UtIyZgZ79F5rfv5AsfG3wO0eH\nktBog3Go7osnZydTreM0JsfZ9HTXC4z4UVUMvI2lURAV5Q0UbnH1AIUNzs0L\nkv/WnHSlLMOsyZ915+xwdSCJfjV/NNN3SIk4OCp8/0XEtQGOT9gsBvru6zAO\nlbFZvP7ACdOyPEf41+cy6YrBvsVTkzTGS6gIQfSYM0C/CwSEiiUzYZ+FVVde\neTQPnE2OLQ27ybghazPfD2Fa1wCg9xCoyy6QbzmLg/sU6eAtE1wnoC0fHv/C\nLNCyO6GqZW+vggBQhKRtjoFzMcoHjUpDJCQOfj4Ic+3Aru7HPpGRgebwjagP\nK8zr\r\n=goRb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuMeavRE8h4/ysIz05+vPn4sWYOLg3d4AKj7ZNbmUCNgIgQxwB1tZ3+lzUwFT00KMxHcdabFtM9d7WutHYbcpyals="}],"size":94191,"noattachment":false,"key":"/stylelint-config-rational-order/-/stylelint-config-rational-order-0.1.0.tgz"},"maintainers":[{"name":"constverum","email":"constverum@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stylelint-config-rational-order_0.1.0_1554970476968_0.20484754891610568"},"_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":1554970477102,"_cnpm_publish_time":1554970477102,"dist-tags":{"latest":"0.1.2"}}