eslint-plugin-orbit-components
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.2.3](https://github.com/kiwicom/orbit/compare/eslint-plugin-orbit-components@0.2.2...eslint-plugin-orbit-components@0.2.3) (2021-01-22) | ||
### Bug Fixes | ||
* stop relying on a transient dependency ([#2675](https://github.com/kiwicom/orbit/issues/2675)) ([4895971](https://github.com/kiwicom/orbit/commit/48959716c4ea209b94ad3efec4af68a92605910c)), closes [#2660](https://github.com/kiwicom/orbit/issues/2660) [#2674](https://github.com/kiwicom/orbit/issues/2674) | ||
## [0.2.2](https://github.com/kiwicom/orbit/compare/eslint-plugin-orbit-components@0.2.1...eslint-plugin-orbit-components@0.2.2) (2021-01-13) | ||
@@ -8,0 +19,0 @@ |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -12,4 +14,8 @@ value: true | ||
var _core = require("@babel/core"); | ||
var t = _interopRequireWildcard(require("@babel/types")); | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -58,7 +64,7 @@ | ||
node.declarations.forEach(function (declaration) { | ||
if (_core.types.isObjectExpression(declaration.init)) { | ||
if (t.isObjectExpression(declaration.init)) { | ||
if (declaration.init.properties.length > 0) { | ||
if (_core.types.isIdentifier(declaration.id)) { | ||
if (t.isIdentifier(declaration.id)) { | ||
variables[declaration.id.name] = declaration.init.properties.map(function (property) { | ||
if (_core.types.isProperty(property) && _core.types.isIdentifier(property.key)) { | ||
if (t.isProperty(property) && t.isIdentifier(property.key)) { | ||
return property.key.name; | ||
@@ -92,3 +98,3 @@ } | ||
JSXElements.forEach(function (node) { | ||
if (_core.types.isJSXIdentifier(node.openingElement.name)) { | ||
if (t.isJSXIdentifier(node.openingElement.name)) { | ||
var localName = node.openingElement.name.name; | ||
@@ -120,3 +126,3 @@ | ||
spread.forEach(function (s) { | ||
if (_core.types.isJSXSpreadAttribute(s) && _core.types.isIdentifier(s.argument)) { | ||
if (t.isJSXSpreadAttribute(s) && t.isIdentifier(s.argument)) { | ||
var name = s.argument.name; | ||
@@ -123,0 +129,0 @@ /* |
{ | ||
"name": "eslint-plugin-orbit-components", | ||
"description": "Collection of ESLint rules to enforce the best usage practices of @kiwicom/orbit-components", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"author": "Kiwi.com", | ||
@@ -31,2 +31,5 @@ "main": "dist/index.js", | ||
}, | ||
"dependencies": { | ||
"@babel/types": "=7.12.10" | ||
}, | ||
"devDependencies": { | ||
@@ -37,3 +40,3 @@ "@babel/preset-env": "^7.12.11", | ||
}, | ||
"gitHead": "b28e54822848766daddb4eb278f2f37111225295" | ||
"gitHead": "2d3d7b8e6f2811b7b4ad2ac704a70cbc973c6a04" | ||
} |
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
17748
254
1
+ Added@babel/types@=7.12.10