eslint-plugin-flowtype
Advanced tools
Comparing version 6.1.1 to 7.0.0
@@ -8,13 +8,11 @@ "use strict"; | ||
var _noUnusedExpressions = _interopRequireDefault(require("eslint/lib/rules/no-unused-expressions")); | ||
var _getBuiltinRule = require("../utilities/getBuiltinRule"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
// A wrapper around ESLint's core rule no-unused-expressions, additionally ignores type cast | ||
// expressions. | ||
const meta = _noUnusedExpressions.default.meta; | ||
const noUnusedExpressionsRule = (0, _getBuiltinRule.getBuiltinRule)('no-unused-expressions'); | ||
const meta = noUnusedExpressionsRule.meta; | ||
const create = context => { | ||
const coreChecks = _noUnusedExpressions.default.create(context); | ||
const coreChecks = noUnusedExpressionsRule.create(context); | ||
return { | ||
@@ -21,0 +19,0 @@ ExpressionStatement(node) { |
@@ -8,2 +8,3 @@ "use strict"; | ||
// eslint-disable-next-line eslint-plugin/prefer-object-rule -- false positive, this is not a rule | ||
var _default = iterator => { | ||
@@ -10,0 +11,0 @@ return (context, ...rest) => { |
@@ -26,2 +26,3 @@ { | ||
"eslint-config-canonical": "^27.0.1", | ||
"eslint-plugin-eslint-plugin": "^4.0.1", | ||
"gitdown": "^3.1.4", | ||
@@ -36,3 +37,3 @@ "glob": "^7.1.7", | ||
"engines": { | ||
"node": "^10.12.0 || >=12.0.0" | ||
"node": ">=12.0.0" | ||
}, | ||
@@ -69,3 +70,3 @@ "husky": { | ||
}, | ||
"version": "6.1.1" | ||
"version": "7.0.0" | ||
} |
Sorry, the diff of this file is too big to display
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
334766
83
4350
21
7102
6