Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-eslint

Package Overview
Dependencies
Maintainers
11
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 9.0.0 to 10.0.0

9

lib/babylon-to-espree/toAST.js

@@ -75,2 +75,11 @@ "use strict";

if (path.isTypeAlias()) {
node.type = "FunctionDeclaration";
node.generator = false;
node.async = false;
node.expression = false;
node.params = [];
node.body = node.right;
}
// flow: prevent "no-undef"

@@ -77,0 +86,0 @@ // for "Component" in: "let x: React.Component"

5

lib/index.js

@@ -14,6 +14,3 @@ "use strict";

if (options.eslintVisitorKeys && options.eslintScopeManager) {
return require("./parse-with-scope")(code, options);
}
return { ast: require("./parse-with-patch")(code, options) };
return require("./parse-with-scope")(code, options);
};

@@ -20,0 +17,0 @@

16

package.json
{
"name": "babel-eslint",
"version": "9.0.0",
"version": "10.0.0",
"description": "Custom parser for ESLint",

@@ -23,5 +23,5 @@ "main": "lib/index.js",

"test": "npm run lint && npm run test-only",
"test-only": "mocha && mocha --require test/fixtures/preprocess-to-patch.js && mocha --require test/fixtures/use-eslint-old.js",
"lint": "eslint index.js babylon-to-espree test",
"fix": "eslint index.js babylon-to-espree test --fix",
"test-only": "mocha && mocha --require test/fixtures/preprocess-to-patch.js",
"lint": "eslint lib test",
"fix": "eslint lib test --fix",
"precommit": "lint-staged",

@@ -40,10 +40,12 @@ "preversion": "npm test",

"homepage": "https://github.com/babel/babel-eslint",
"peerDependencies": {
"eslint": ">= 4.12.1"
},
"devDependencies": {
"babel-eslint": "^8.2.6",
"dedent": "^0.7.0",
"eslint": "npm:eslint@4.19.1",
"eslint": "^5.6.0",
"eslint-config-babel": "^7.0.1",
"eslint-old": "npm:eslint@4.13.1",
"eslint-plugin-flowtype": "^2.30.3",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-prettier": "^2.1.2",

@@ -50,0 +52,0 @@ "espree": "^3.5.2",

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