{"name":"eslint-plugin-sorting","version":"0.0.1","description":"Require property names in object literals to be sorted alphabetically.","keywords":["eslint","eslintplugin"],"author":{"name":"Jacob Rask"},"license":"MIT","main":"index.js","peerDependencies":{"eslint":">=0.8.0"},"repository":{"type":"git","url":"git+https://github.com/jacobrask/eslint-plugin-sorting.git"},"gitHead":"dda2f980f9a386f78eb913b3b270f857338e2a9b","bugs":{"url":"https://github.com/jacobrask/eslint-plugin-sorting/issues"},"homepage":"https://github.com/jacobrask/eslint-plugin-sorting#readme","_id":"eslint-plugin-sorting@0.0.1","scripts":{},"_shasum":"8a982d387f4fe34c1ac9d9e1836da89a2d02672a","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.2","_npmUser":{"name":"jacobrask","email":"jacob@jacobrask.net"},"dist":{"shasum":"8a982d387f4fe34c1ac9d9e1836da89a2d02672a","tarball":"http://registry-npm.ywwl.com/eslint-plugin-sorting/download/eslint-plugin-sorting-0.0.1.tgz","integrity":"sha512-k+PSsX+WxyxJbPnFn/pXZd5cz9AIklzM+eHNaTf4d0VwrjrFgBK745R+SfQ8vDsxOwo1ZtxDZga8OC4DOpq8NQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAfimQ02tMiCOFMvKUwEaKyA77p1+BsKF8mgsPejFOKwAiB8i9TpN2j0YCWDuAavrysKPhUvszp4YOB27Gi2hoFaIQ=="}],"size":1801,"noattachment":false,"key":"/eslint-plugin-sorting/-/eslint-plugin-sorting-0.0.1.tgz"},"maintainers":[{"name":"jacobrask","email":"jacob@jacobrask.net"}],"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":1434394092555,"_cnpm_publish_time":1434394092555,"dist-tags":{"latest":"0.4.1"}}