{"name":"eslint-plugin-sorting","version":"0.2.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":"f5cf36be1938c0aef859a3813ff181eaf86836a3","bugs":{"url":"https://github.com/jacobrask/eslint-plugin-sorting/issues"},"_id":"eslint-plugin-sorting@0.2.0","_shasum":"9bf24427ffc1b3012210ced80f2699e781f3964d","_from":".","_npmVersion":"3.4.0","_nodeVersion":"5.0.0","_npmUser":{"name":"jacobrask","email":"jacob@jacobrask.net"},"dist":{"shasum":"9bf24427ffc1b3012210ced80f2699e781f3964d","tarball":"http://registry-npm.ywwl.com/eslint-plugin-sorting/download/eslint-plugin-sorting-0.2.0.tgz","integrity":"sha512-aTSjeFHeS0I8UqCUuoBNdzdQ7N9b1mSb4ea5PnjmN08vef3gAKwEvOm3X6uUcwIEjDsfaOggTDtDyCKJ5E4vtA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDn7/FulFK0H3gddIbD+0CFjdc2IqoIMD9rntIRxdYHowIhAMFl5uxkctXkpVwRSLgBwtzRM4lf13ZH6uhrSsc61CQg"}],"size":2535,"noattachment":false,"key":"/eslint-plugin-sorting/-/eslint-plugin-sorting-0.2.0.tgz"},"maintainers":[{"name":"jacobrask","email":"jacob@jacobrask.net"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/eslint-plugin-sorting-0.2.0.tgz_1465798277554_0.06679118075408041"},"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":1465798280246,"_cnpm_publish_time":1465798280246,"dist-tags":{"latest":"0.4.1"}}