{"name":"eslint-plugin-sorting","version":"0.1.0","description":"Require property names in object literals to be sorted alphabetically.","keywords":["eslint","eslintplugin"],"author":{"name":"Jacob Rask"},"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/jacobrask/eslint-plugin-sorting.git"},"gitHead":"ad323fc3831f2e4e8e5d3b622ccf8965d9405ab2","bugs":{"url":"https://github.com/jacobrask/eslint-plugin-sorting/issues"},"homepage":"https://github.com/jacobrask/eslint-plugin-sorting#readme","_id":"eslint-plugin-sorting@0.1.0","scripts":{},"_shasum":"af62093d24df9c09d3e080d6af10908e35d3e0cc","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jacobrask","email":"jacob@jacobrask.net"},"dist":{"shasum":"af62093d24df9c09d3e080d6af10908e35d3e0cc","tarball":"http://registry-npm.ywwl.com/eslint-plugin-sorting/download/eslint-plugin-sorting-0.1.0.tgz","integrity":"sha512-AXd4uS1OKnGXZcV8Q4WOb20++Gb8EoDWDwF8xtotg9pZSbhXMLlDOZc3fsuBwpiAklF6xvz77O6lEiGLudLBuA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBULuUfTtpdiwbIj1XVxJW+UQTuh0hiWanMNX1C6FfPbAiEA8COdIMXs881G805Y8V8URUO1/OmT6ymjgF2aADSa9y4="}],"size":1884,"noattachment":false,"key":"/eslint-plugin-sorting/-/eslint-plugin-sorting-0.1.0.tgz"},"maintainers":[{"name":"jacobrask","email":"jacob@jacobrask.net"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/eslint-plugin-sorting-0.1.0.tgz_1461003654608_0.9099525480996817"},"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":1461003655739,"_cnpm_publish_time":1461003655739,"dist-tags":{"latest":"0.4.1"}}