babel-eslint
Advanced tools
Comparing version 9.0.0 to 10.0.0
@@ -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" |
@@ -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 @@ |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
12
0
30330
7
15
774