@babel/eslint-plugin
Advanced tools
Comparing version 7.13.0 to 7.13.10
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = exports.rulesConfig = exports.rules = void 0; | ||
var _newCap = _interopRequireDefault(require("./rules/new-cap")); | ||
@@ -15,17 +20,22 @@ | ||
module.exports = { | ||
rules: { | ||
"new-cap": _newCap.default, | ||
"no-invalid-this": _noInvalidThis.default, | ||
"no-unused-expressions": _noUnusedExpressions.default, | ||
"object-curly-spacing": _objectCurlySpacing.default, | ||
semi: _semi.default | ||
}, | ||
rulesConfig: { | ||
"new-cap": "off", | ||
"no-invalid-this": "off", | ||
"no-unused-expressions": "off", | ||
"object-curly-spacing": "off", | ||
semi: "off" | ||
} | ||
}; | ||
const rules = { | ||
"new-cap": _newCap.default, | ||
"no-invalid-this": _noInvalidThis.default, | ||
"no-unused-expressions": _noUnusedExpressions.default, | ||
"object-curly-spacing": _objectCurlySpacing.default, | ||
semi: _semi.default | ||
}; | ||
exports.rules = rules; | ||
const rulesConfig = { | ||
"new-cap": "off", | ||
"no-invalid-this": "off", | ||
"no-unused-expressions": "off", | ||
"object-curly-spacing": "off", | ||
semi: "off" | ||
}; | ||
exports.rulesConfig = rulesConfig; | ||
var _default = { | ||
rules, | ||
rulesConfig | ||
}; | ||
exports.default = _default; |
@@ -8,10 +8,8 @@ "use strict"; | ||
var _eslintRuleComposer = _interopRequireDefault(require("eslint-rule-composer")); | ||
const ruleComposer = require("eslint-rule-composer"); | ||
var _eslint = _interopRequireDefault(require("eslint")); | ||
const eslint = require("eslint"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const rule = new eslint.Linter().getRules().get("new-cap"); | ||
const rule = new _eslint.default.Linter().getRules().get("new-cap"); | ||
function isDecorator(node) { | ||
@@ -21,4 +19,4 @@ return node.parent.type === "Decorator"; | ||
var _default = _eslintRuleComposer.default.filterReports(rule, problem => !isDecorator(problem.node)); | ||
var _default = ruleComposer.filterReports(rule, problem => !isDecorator(problem.node)); | ||
exports.default = _default; |
@@ -8,11 +8,9 @@ "use strict"; | ||
var _eslintRuleComposer = _interopRequireDefault(require("eslint-rule-composer")); | ||
const ruleComposer = require("eslint-rule-composer"); | ||
var _eslint = _interopRequireDefault(require("eslint")); | ||
const eslint = require("eslint"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const noInvalidThisRule = new eslint.Linter().getRules().get("no-invalid-this"); | ||
const noInvalidThisRule = new _eslint.default.Linter().getRules().get("no-invalid-this"); | ||
var _default = _eslintRuleComposer.default.filterReports(noInvalidThisRule, problem => { | ||
var _default = ruleComposer.filterReports(noInvalidThisRule, problem => { | ||
let inClassMember = false; | ||
@@ -19,0 +17,0 @@ let node = problem.node; |
@@ -8,10 +8,8 @@ "use strict"; | ||
var _eslintRuleComposer = _interopRequireDefault(require("eslint-rule-composer")); | ||
const ruleComposer = require("eslint-rule-composer"); | ||
var _eslint = _interopRequireDefault(require("eslint")); | ||
const eslint = require("eslint"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const rule = new eslint.Linter().getRules().get("no-unused-expressions"); | ||
const rule = new _eslint.default.Linter().getRules().get("no-unused-expressions"); | ||
function isFinalStatementInBlockStatement(node) { | ||
@@ -41,4 +39,4 @@ const parent = node.parent; | ||
var _default = _eslintRuleComposer.default.filterReports(rule, problem => !isInDoStatement(problem.node) && !isOptionalCallExpression(problem.node)); | ||
var _default = ruleComposer.filterReports(rule, problem => !isInDoStatement(problem.node) && !isOptionalCallExpression(problem.node)); | ||
exports.default = _default; |
@@ -8,11 +8,9 @@ "use strict"; | ||
var _eslintRuleComposer = _interopRequireDefault(require("eslint-rule-composer")); | ||
const ruleComposer = require("eslint-rule-composer"); | ||
var _eslint = _interopRequireDefault(require("eslint")); | ||
const eslint = require("eslint"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const rule = new eslint.Linter().getRules().get("object-curly-spacing"); | ||
const rule = new _eslint.default.Linter().getRules().get("object-curly-spacing"); | ||
var _default = _eslintRuleComposer.default.filterReports(rule, problem => { | ||
var _default = ruleComposer.filterReports(rule, problem => { | ||
const node = problem.node; | ||
@@ -19,0 +17,0 @@ |
@@ -8,10 +8,8 @@ "use strict"; | ||
var _eslintRuleComposer = _interopRequireDefault(require("eslint-rule-composer")); | ||
const ruleComposer = require("eslint-rule-composer"); | ||
var _eslint = _interopRequireDefault(require("eslint")); | ||
const eslint = require("eslint"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const OPT_OUT_PATTERN = /^[-[(/+`]/; | ||
const rule = new _eslint.default.Linter().getRules().get("semi"); | ||
const rule = new eslint.Linter().getRules().get("semi"); | ||
@@ -81,3 +79,3 @@ function isSemicolon(token) { | ||
var _default = _eslintRuleComposer.default.joinReports([rule, context => ({ | ||
var _default = ruleComposer.joinReports([rule, context => ({ | ||
"ClassProperty, ClassPrivateProperty, PropertyDefinition"(node) { | ||
@@ -84,0 +82,0 @@ const options = context.options[1]; |
{ | ||
"name": "@babel/eslint-plugin", | ||
"version": "7.13.0", | ||
"version": "7.13.10", | ||
"description": "Companion rules for @babel/eslint-parser", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
187
11027