{"_id":"@atduarte/eslint-config","_rev":"8-34e2c9600acf016b6e400cb27d2992e8","name":"@atduarte/eslint-config","time":{"modified":"2022-06-12T14:49:48.657Z","created":"2016-04-28T09:44:35.979Z","2.3.0":"2016-04-28T09:44:35.979Z","1.0.1":"2016-04-28T09:46:02.157Z","0.9.0":"2016-04-28T09:48:27.183Z","0.9.1":"2016-05-06T22:32:17.356Z"},"maintainers":[{"name":"atduarte","email":"hi@andreduarte.io"}],"dist-tags":{"latest":"0.9.1"},"description":"My own eslint configurations","readme":"# eslint-config\n\n[![Dependency status][david-dm-image]][david-dm-url] [![Dev Dependency status][david-dm-dev-image]][david-dm-dev-url]\n\n[david-dm-url]:https://david-dm.org/atduarte/eslint-config\n[david-dm-image]:https://img.shields.io/david/atduarte/eslint-config.svg\n[david-dm-dev-url]:https://david-dm.org/atduarte/eslint-config#info=devDependencies\n[david-dm-dev-image]:https://img.shields.io/david/dev/atduarte/eslint-config.svg\n\nMy own [eslint](http://eslint.org/) configurations.\n\n\n## Installation\n\n`$ npm install --save-dev @atduarte/eslint-config`\n\n\n## Usage\n\nFirst you need to choose the **base** configuration to use:\n\n- `es5` - The configuration to be used in ECMAScript 5 based projects\n- `es6` - The configuration to be used in ECMAScript 6 based projects\n\nThen enhance it with one or more **addons**:\n\n- `browser` - If you are going to develop code for the browser (having in mind IE >= 9)\n- `node` - If you are going to develop code for NodeJS\n- `node-v4-es6` - If you are going to develop code for NodeJS 4.x.x with the `es6` base configuration\n- `es6-modules` - If you are going to use ES6 import & export (must be used with the `es6` base configuration)\n- `react` - If you are going to use React and JSX (requires `eslint-plugin-react`)\n\nFinally, simply create a `.eslintrc.json` file with the chosen base configuration and addons. Feel free to override rules you won't agree with. You can look at some examples bellow.\n\nAlternatively, you can make your own configuration by using the set of **rules** individually. If you're interested in doing that, you can check `es5.js` to see how it is done.\n\n\n### Examples\n\nCutting edge ES6 with modules in the browser, using react:\n\n```json\n{\n    \"root\": true,\n    \"extends\": [\n        \"@atduarte/eslint-config/es6\",\n        \"@atduarte/eslint-config/addons/es6-modules\",\n        \"@atduarte/eslint-config/addons/browser\",\n        \"@atduarte/eslint-config/addons/react\"\n    ]\n}\n```\n\nCutting edge ES6 with modules in NodeJS (requires babel or similar):\n\n```json\n{\n    \"root\": true,\n    \"extends\": [\n        \"@atduarte/eslint-config/es6\",\n        \"@atduarte/eslint-config/addons/es6-modules\",\n        \"@atduarte/eslint-config/addons/node\"\n    ]\n}\n```\n\nUse ES6 in NodeJS without any transpiler:\n\n```json\n{\n    \"root\": true,\n    \"extends\": [\n        \"@atduarte/eslint-config/es6\",\n        \"@atduarte/eslint-config/addons/node\"\n    ]\n}\n```\n\n.. and if you are programming against NodeJS v4 please use:\n\n```json\n{\n    \"root\": true,\n    \"extends\": [\n        \"@atduarte/eslint-config/es6\",\n        \"@atduarte/eslint-config/addons/node\"\n        \"@atduarte/eslint-config/addons/node-v4-es6\"\n    ]\n}\n```\n\n\nGood old ES5 in NodeJS:\n\n```json\n{\n    \"root\": true,\n    \"extends\": [\n        \"@atduarte/eslint-config/es5\",\n        \"@atduarte/eslint-config/addons/node\"\n    ]\n}\n```\n\nNote that by setting `root` to true, we ensure that no ancestor configuration is used which also improves `eslint` performance because no more file lookups need to be done.\n\n\n## File name convention\n\nIf your file exports a single class, your filename should be exactly the name of the class. For other cases, the name of the file should be the same as the default exports (prefer camelCase).\n\n\n## License\n\n[MIT License](http://opensource.org/licenses/MIT)\n","versions":{"0.9.0":{"name":"@atduarte/eslint-config","description":"My own eslint configurations","version":"0.9.0","keywords":["eslint-config","eslintconfig","eslint","lint","linter","style"],"scripts":{"test":"npm run lint","lint":"eslint '{*.js,addons/**/*.js,rules/**/*.js}'"},"author":{"name":"André Duarte","email":"hi@andreduarte.io"},"homepage":"https://github.com/atduarte/eslint-config","bugs":{"url":"https://github.com/atduarte/eslint-config/issues"},"repository":{"type":"git","url":"git://github.com/atduarte/eslint-config.git"},"main":"index.js","license":"MIT","peerDependencies":{"eslint":"^2.8.0","eslint-plugin-react":"^5.0.1"},"devDependencies":{"eslint":"^2.8.0"},"gitHead":"eec29724bb309f55951ce13a25978d14d476cb92","_id":"@atduarte/eslint-config@0.9.0","_shasum":"290a003c0e70f88eb8ed3a0992cef80e9729c9bd","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.0.0","_npmUser":{"name":"atduarte","email":"hi@andreduarte.io"},"dist":{"shasum":"290a003c0e70f88eb8ed3a0992cef80e9729c9bd","tarball":"https://registry.npmjs.org/@atduarte/eslint-config/-/eslint-config-0.9.0.tgz","integrity":"sha512-aiGZYGeYT4wWHznKOsh4d0kgTNFPOL2kFe69VBxJjCqy4Pa4mz26DpLiFg7QxuI+c1VkPQatlamYooKiPtmt8Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSSwrWvAhvf8+xEpTg/dSjdHUEOjT+EIwGiD13clEm6wIhAI3GfETwkLpIqdPqtUrq8pJx1LpHImhc+7riFddi0ovH"}]},"maintainers":[{"name":"atduarte","email":"hi@andreduarte.io"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/eslint-config-0.9.0.tgz_1461836905978_0.37940629734657705"}},"0.9.1":{"name":"@atduarte/eslint-config","description":"My own eslint configurations","version":"0.9.1","keywords":["eslint-config","eslintconfig","eslint","lint","linter","style"],"scripts":{"test":"npm run lint","lint":"eslint '{*.js,addons/**/*.js,rules/**/*.js}'"},"author":{"name":"André Duarte","email":"hi@andreduarte.io"},"homepage":"https://github.com/atduarte/eslint-config","bugs":{"url":"https://github.com/atduarte/eslint-config/issues"},"repository":{"type":"git","url":"git://github.com/atduarte/eslint-config.git"},"main":"index.js","license":"MIT","peerDependencies":{"eslint":"^2.8.0","eslint-plugin-react":"^5.0.1"},"devDependencies":{"eslint":"^2.8.0"},"gitHead":"80af2df8a46cf137f0bac561764144c55394f46a","_id":"@atduarte/eslint-config@0.9.1","_shasum":"cae07a8cc2c6e0b9a2f8b8fc44a46c627f38c1a1","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.0.0","_npmUser":{"name":"atduarte","email":"hi@andreduarte.io"},"dist":{"shasum":"cae07a8cc2c6e0b9a2f8b8fc44a46c627f38c1a1","tarball":"https://registry.npmjs.org/@atduarte/eslint-config/-/eslint-config-0.9.1.tgz","integrity":"sha512-2kp+vFDO/xuEqnhGfxEqqjK4NpCI548EE3trl8/qSEZQ500bOEXN15dGrMJEUzwW+zQJdYMhh0WCDuXp5A76NA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtn6NbNQTYnSFNiLFfn2QWStKk8k85IeiWU1nGTKvKGgIhAJb9U6hFj5mGJfUiLxHCAmTB3OQ6XDoFmnTvvtWNz5YB"}]},"maintainers":[{"name":"atduarte","email":"hi@andreduarte.io"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/eslint-config-0.9.1.tgz_1462573934764_0.8362059018108994"}}},"homepage":"https://github.com/atduarte/eslint-config","keywords":["eslint-config","eslintconfig","eslint","lint","linter","style"],"repository":{"type":"git","url":"git://github.com/atduarte/eslint-config.git"},"author":{"name":"André Duarte","email":"hi@andreduarte.io"},"bugs":{"url":"https://github.com/atduarte/eslint-config/issues"},"license":"MIT","readmeFilename":"README.md"}