UNPKG

canonical

Version:

Canonical code style linter and formatter for JavaScript, SCSS and CSS.

70 lines (69 loc) 3.58 kB
{ "_args": [ [ "eslint-plugin-babel@https://registry.npmjs.org/eslint-plugin-babel/-/eslint-plugin-babel-3.0.0.tgz", "/Users/gajus/Documents/dev/canonical-code-style/canonical" ] ], "_from": "eslint-plugin-babel@>=3.0.0 <4.0.0", "_id": "eslint-plugin-babel@3.0.0", "_inCache": true, "_location": "/eslint-plugin-babel", "_phantomChildren": {}, "_requested": { "name": "eslint-plugin-babel", "raw": "eslint-plugin-babel@https://registry.npmjs.org/eslint-plugin-babel/-/eslint-plugin-babel-3.0.0.tgz", "rawSpec": "https://registry.npmjs.org/eslint-plugin-babel/-/eslint-plugin-babel-3.0.0.tgz", "scope": null, "spec": "https://registry.npmjs.org/eslint-plugin-babel/-/eslint-plugin-babel-3.0.0.tgz", "type": "remote" }, "_requiredBy": [ "/eslint-config-canonical" ], "_resolved": "https://registry.npmjs.org/eslint-plugin-babel/-/eslint-plugin-babel-3.0.0.tgz", "_shasum": "2078170b5c1e337735fadca8128be2de077debf7", "_shrinkwrap": null, "_spec": "eslint-plugin-babel@https://registry.npmjs.org/eslint-plugin-babel/-/eslint-plugin-babel-3.0.0.tgz", "_where": "/Users/gajus/Documents/dev/canonical-code-style/canonical", "author": { "name": "Jason Quense @monasticpanic" }, "bugs": { "url": "https://github.com/babel/eslint-plugin-babel/issues" }, "dependencies": {}, "description": "an eslint rule plugin companion to babel-eslint", "devDependencies": { "babel-eslint": "^4.0.7", "eslint": "^1.1.0", "is-my-json-valid": "^2.12.0", "mocha": "^2.2.5", "phantomjs": "^1.9.17" }, "homepage": "https://github.com/babel/eslint-plugin-babel#readme", "keywords": [ "babel", "babel-eslint", "eslint", "eslint-plugin", "eslintplugin" ], "license": "MIT", "main": "index.js", "name": "eslint-plugin-babel", "optionalDependencies": {}, "peerDependencies": { "eslint": ">=1.0.0" }, "readme": "# eslint-plugin-babel\n\nAn `eslint` plugin companion to `babel-eslint`. `babel-eslint` does a great job at adapting `eslint` for use with Babel, but it can't change the built in rules to support experimental features. `eslint-plugin-babel` reimplements problematic rules so they do not give false positives or negatives.\n\n### Install\n\n```sh\nnpm install eslint-plugin-babel -D\n```\n\nLoad the plugin in your `.eslintrc` file:\n\n```json\n{\n \"plugins\": [\n \"babel\"\n ]\n}\n```\n\nFinally enable all the rules you would like to use (remember to disable the\noriginal ones as well!).\n\n```json\n{\n \"rules\": {\n \"babel/generator-star-spacing\": 1,\n \"babel/new-cap\": 1,\n \"babel/object-curly-spacing\": 1,\n \"babel/object-shorthand\": 1,\n \"babel/arrow-parens\": 1,\n \"babel/no-await-in-loop\": 1\n }\n}\n```\n### Rules\n\nEach rule corresponds to a core `eslint` rule, and has the same options.\n\n- `babel/generator-star-spacing`: Handles async/await functions correctly\n- `babel/new-cap`: Ignores capitalized decorators (`@Decorator`)\n- `babel/object-curly-spacing`: doesn't complain about `export x from \"mod\";` or `export * as x from \"mod\";`\n- `babel/object-shorthand`: doesn't fail when using object spread (`...obj`)\n- `babel/arrow-parens`: Handles async functions correctly\n- `bael/no-await-in-loop`: guard against awaiting async functions inside of a loop\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/babel/eslint-plugin-babel.git" }, "scripts": { "test": "mocha ./tests/*.js" }, "version": "3.0.0" }