{"name":"eslint-plugin-sorting","version":"0.3.0","description":"Sorting rules for eslint","keywords":["eslint","eslintplugin"],"scripts":{"lint":"eslint lib/ tests/","test":"npm run lint && npm run unit-test","unit-test":"mocha tests/**/*.js","unit-test:watch":"npm run unit-test -- --watch"},"author":{"name":"Jacob Rask","email":"jacob@jacobrask.net"},"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/jacobrask/eslint-plugin-sorting.git"},"homepage":"https://github.com/jacobrask/eslint-plugin-sorting","devDependencies":{"babel-eslint":"^6.0.4","eslint":"^2.12.0","eslint-config-eslint":"^3.0.0","mocha":"^2.5.3"},"gitHead":"2e5d5558cdc5c2ea6354c721b46f32f9cf8ea556","bugs":{"url":"https://github.com/jacobrask/eslint-plugin-sorting/issues"},"_id":"eslint-plugin-sorting@0.3.0","_shasum":"acf43ca88f34b42ba3d0f6bf0e0c50485a20f60d","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"laggingreflex","email":"laggingreflex@gmail.com"},"dist":{"shasum":"acf43ca88f34b42ba3d0f6bf0e0c50485a20f60d","tarball":"http://registry-npm.ywwl.com/eslint-plugin-sorting/download/eslint-plugin-sorting-0.3.0.tgz","integrity":"sha512-pav1UgLu8MFMn4Ri3Omqxu1L+gBepk7xGkgZlKKnRymvadG7gu+zw7MR/zZVrvDG2azNl8kVELHdC7UfbnP9ug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHSUz2OIyECGqoh43+KdywT0XOu+LHJFdfKpMxTEJDCRAiEAvzF9gqmAn3JYFbsSTbDieGcHUphI621fh3/ivPjf6PY="}],"size":3430,"noattachment":false,"key":"/eslint-plugin-sorting/-/eslint-plugin-sorting-0.3.0.tgz"},"maintainers":[{"name":"jacobrask","email":"jacob@jacobrask.net"},{"name":"laggingreflex","email":"laggingreflex@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/eslint-plugin-sorting-0.3.0.tgz_1468809291112_0.6330191832967103"},"directories":{},"readme":"## Install\n\n`npm install --save-dev eslint eslint-plugin-sorting`\n\nIn the plugins section of your `.eslintrc`, add `sorting`.\n\n```json\n{\n  \"plugins\": [\n    \"sorting\"\n  ],\n  \"rules\": {\n    \"sorting/sort-object-props\": [ 1, {\n      \"ignoreCase\": true,\n      \"ignoreMethods\": false,\n      \"ignoreMethodSiblings\": false\n    } ]\n  }\n}\n```\n\n## Rule Details\n\nBy default all rules are case insensitive and methods (functions as values) are not ignored.\n\n\nWarnings:\n\n```js\nvar obj = {\n  c: \"foo\",\n  a: \"bar\",\n  b: {\n    e: 1,\n    d: 2,\n  },\n  A: 5\n};\n```\n\nOK:\n\n```js\nvar obj = {\n  A: 5,\n  a: \"bar\",\n  b: {\n    d: 2,\n    e: 1,\n  },\n  c: \"foo\",\n};\n```\n\nOK if `ignoreMethods: true`\n\n```js\nvar Foo = {\n  b: function() {},\n  a: function() {}\n};\n```\n\nOK if `ignoreMethodSiblings: true`\n\n```js\nvar Foo = {\n  c: 1,\n  b: 2,\n  a: function() {}\n};\n```\n","publish_time":1468809293160,"_cnpm_publish_time":1468809293160,"dist-tags":{"latest":"0.4.1"}}