Socket
Socket
Sign inDemoInstall

babel-eslint

Package Overview
Dependencies
Maintainers
2
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-eslint - npm Package Compare versions

Comparing version 3.1.23 to 3.1.24

8

index.js

@@ -450,2 +450,10 @@ var acornToEsprima = require("./acorn-to-esprima");

// add comments
for (var i = 0; i < comments.length; i++) {
var comment = comments[i];
if (comment.type === "CommentBlock") {
comment.type = "Block";
} else if (comment.type === "CommentLine") {
comment.type = "Line";
}
}
ast.comments = comments;

@@ -452,0 +460,0 @@ exports.attachComments(ast, comments, tokens);

2

package.json
{
"name": "babel-eslint",
"version": "3.1.23",
"version": "3.1.24",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -9,13 +9,16 @@ # babel-eslint [![Build Status][travis-image]][travis-url]

If there is an issue, first check if it can be reproduced with the regular parser and with the latest versions of `eslint` and `babel-eslint`.
> 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`!
For questions and support please visit the `#linting` [babel slack channel](https://babel-slack.herokuapp.com)!
For questions and support please visit the [`#linting`](https://babeljs.slack.com/messages/linting/) babel slack channel (sign up [here](https://babel-slack.herokuapp.com))!
## Known Issues
Flow:
- `no-undef` for global flow types: `ReactElement`, `ReactClass` [#130](https://github.com/babel/babel-eslint/issues/130#issuecomment-111215076)
- Workaround: define types as globals in `.eslintrc` or define types and import them `import type ReactElement from './types'`
- `no-unused-vars/no-undef` with Flow declarations (`declare module A {}`) [#132](https://github.com/babel/babel-eslint/issues/132#issuecomment-112815926)
Modules/strict mode
- `no-unused-vars: [2, {vars: local}]` [#136](https://github.com/babel/babel-eslint/issues/136)
Please check out [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) for react/jsx issues
Please check out [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) for React/JSX issues
- `no-unused-vars` with jsx

@@ -22,0 +25,0 @@

@@ -64,3 +64,3 @@ var babelEslint = require("..");

comment: true,
attachComment: true
attachComments: true
});

@@ -67,0 +67,0 @@ var acornAST = babelEslint.parse(code);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc