canonical
Version:
Canonical code style linter and formatter for JavaScript, SCSS and CSS.
70 lines (69 loc) • 5.34 kB
JSON
{
"_args": [
[
"babel-eslint@https://registry.npmjs.org/babel-eslint/-/babel-eslint-5.0.0-beta6.tgz",
"/Users/gajus/Documents/dev/canonical-code-style/canonical"
]
],
"_from": "babel-eslint@>=5.0.0-beta6 <6.0.0",
"_id": "babel-eslint@5.0.0-beta6",
"_inCache": true,
"_location": "/babel-eslint",
"_phantomChildren": {},
"_requested": {
"name": "babel-eslint",
"raw": "babel-eslint@https://registry.npmjs.org/babel-eslint/-/babel-eslint-5.0.0-beta6.tgz",
"rawSpec": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-5.0.0-beta6.tgz",
"scope": null,
"spec": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-5.0.0-beta6.tgz",
"type": "remote"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-5.0.0-beta6.tgz",
"_shasum": "ba61da7d14f7b4e3a8098aee37b446d22e227614",
"_shrinkwrap": null,
"_spec": "babel-eslint@https://registry.npmjs.org/babel-eslint/-/babel-eslint-5.0.0-beta6.tgz",
"_where": "/Users/gajus/Documents/dev/canonical-code-style/canonical",
"author": {
"email": "sebmck@gmail.com",
"name": "Sebastian McKenzie"
},
"bugs": {
"url": "https://github.com/babel/babel-eslint/issues"
},
"dependencies": {
"acorn-to-esprima": "^2.0.4",
"babel-traverse": "^6.0.20",
"babel-types": "^6.0.19",
"babylon": "^6.0.18",
"lodash.assign": "^3.2.0",
"lodash.pick": "^3.1.0"
},
"description": "**babel-eslint** allows you to lint **ALL** valid Babel code with the fantastic [ESLint](https://github.com/eslint/eslint).",
"devDependencies": {
"eslint": "^1.10.2",
"espree": "^2.2.5",
"mocha": "^2.3.3"
},
"homepage": "https://github.com/babel/babel-eslint",
"license": "MIT",
"main": "index.js",
"name": "babel-eslint",
"optionalDependencies": {},
"readme": "# babel-eslint [![Build Status][travis-image]][travis-url]\n\n**babel-eslint** allows you to lint **ALL** valid Babel code with the fantastic\n[ESLint](https://github.com/eslint/eslint).\n\n`babel-eslint` is successfully linting [babel core](https://github.com/babel/babel/blob/master/.eslintrc) and many other projects.\n\n> If there is an issue, first check if it can be reproduced with the regular parser or with the latest versions of `eslint` and `babel-eslint`!\n\nFor questions and support please visit the [`#linting`](https://babeljs.slack.com/messages/linting/) babel slack channel (sign up [here](https://babel-slack.herokuapp.com))!\n\n> Note that the `ecmaFeatures` config property may still be required for ESLint to work properly with features not in ECMAScript 5 by default. Examples are `globalReturn` and `modules`)\n\n## Known Issues\nFlow:\n> Check out [eslint-plugin-flow-vars](https://github.com/zertosh/eslint-plugin-flow-vars): An `eslint` plugin that makes flow type annotations global variables and marks declarations as used. Solves the problem of false positives with `no-undef` and `no-unused-vars`.\n- `no-undef` for global flow types: `ReactElement`, `ReactClass` [#130](https://github.com/babel/babel-eslint/issues/130#issuecomment-111215076)\n - Workaround: define types as globals in `.eslintrc` or define types and import them `import type ReactElement from './types'`\n- `no-unused-vars/no-undef` with Flow declarations (`declare module A {}`) [#132](https://github.com/babel/babel-eslint/issues/132#issuecomment-112815926)\n\nModules/strict mode\n- `no-unused-vars: [2, {vars: local}]` [#136](https://github.com/babel/babel-eslint/issues/136)\n\nPlease check out [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) for React/JSX issues\n- `no-unused-vars` with jsx\n\nPlease check out [eslint-plugin-babel](https://github.com/babel/eslint-plugin-babel) for other issues such as (and more):\n- `generator-star` with async/await functions [#78](https://github.com/babel/babel-eslint/issues/78)\n- `object-shorthand` with spread operator [#131](https://github.com/babel/babel-eslint/issues/131)\n\n## How does it work?\n\nESLint allows custom parsers. This is great but some of the syntax nodes that Babel supports\naren't supported by ESLint. When using this plugin, ESLint is monkeypatched and your code is\ntransformed into code that ESLint can understand. All location info such as line numbers,\ncolumns is also retained so you can track down errors with ease.\n\n## Usage\n\n### Install\n\n```sh\n$ npm install -g eslint babel-eslint\n```\n\n### Setup\n\n**.eslintrc**\n\n```json\n{\n \"parser\": \"babel-eslint\",\n \"rules\": {\n \"strict\": 0\n }\n}\n```\n\nCheck out the [ESLint docs](http://eslint.org/docs/rules/) for all possible rules.\n\n### Run\n\n```sh\n$ eslint your-files-here\n```\n\n[travis-url]: https://travis-ci.org/babel/babel-eslint\n[travis-image]: https://travis-ci.org/babel/babel-eslint.svg?branch=master\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/babel/babel-eslint.git"
},
"scripts": {
"bootstrap": "git submodule update --init && cd eslint && npm install",
"eslint": "cd eslint && mocha -c tests/lib/rules/*.js -r ../eslint-tester.js",
"lint": "./node_modules/eslint/bin/eslint.js ./test index.js acorn-to-esprima.js",
"preversion": "npm test",
"test": "mocha"
},
"version": "5.0.0-beta6"
}