{"name":"stylelint-config-rational-order","version":"0.0.2","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","properties-order","css property order","declaration-order","css declaration order","rational-css","order-css","order"],"dependencies":{"stylelint-order":"^0.8.0"},"devDependencies":{"eslint":"^4.13.1","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-import":"^2.8.0","eslint-plugin-jest":"^21.4.2","jest":"^21.2.1","stylelint":"^8.3.1"},"homepage":"https://github.com/constverum/stylelint-config-rational-order","gitHead":"f6befd2b1608a46da839fbe8b644dd44a33bdd8f","_id":"stylelint-config-rational-order@0.0.2","_npmVersion":"5.5.1","_nodeVersion":"9.3.0","_npmUser":{"name":"constverum","email":"constverum@gmail.com"},"dist":{"integrity":"sha512-WCYvNMui1Zco7amO+F+pBtXBy+IvXGqBV5NcT0j3O5JS/1vsedLAY3PuNXjccShb1bLLdNaIckzBG/NbZ+rOMg==","shasum":"19cff04c8233dd8320e483c8653c14c8965e22f4","tarball":"http://registry-npm.ywwl.com/stylelint-config-rational-order/download/stylelint-config-rational-order-0.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlpkwOWMe4xL78Uiu8VgLcxIZmjTfVTQtooIlNdc1xegIhAK9TMoXT6IVHPIoU9iVlgJ50KJWFDfFBX2Tv6ElsPRYh"}],"size":42911,"noattachment":false,"key":"/stylelint-config-rational-order/-/stylelint-config-rational-order-0.0.2.tgz"},"maintainers":[{"name":"constverum","email":"constverum@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stylelint-config-rational-order-0.0.2.tgz_1513187237796_0.9090257897041738"},"directories":{},"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":1513187238034,"_cnpm_publish_time":1513187238034,"dist-tags":{"latest":"0.1.2"}}