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

eslint-plugin-orbit-components

Package Overview
Dependencies
Maintainers
7
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-orbit-components - npm Package Compare versions

Comparing version 0.6.9 to 0.6.10

./dist/index.cjs

56

dist/index.js

@@ -1,40 +0,3 @@

"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/index.ts
var src_exports = {};
__export(src_exports, {
configs: () => configs,
rules: () => rules
});
module.exports = __toCommonJS(src_exports);
// src/rules/buttonHasTitle.ts
var t2 = __toESM(require("@babel/types"));
import * as t2 from "@babel/types";

@@ -46,3 +9,3 @@ // src/utils/isOrbitComponent.ts

// src/utils/detectOriginalOrbitName.ts
var t = __toESM(require("@babel/types"));
import * as t from "@babel/types";
var detectOriginalOrbitName = (node) => {

@@ -143,3 +106,3 @@ const specifier = node.specifiers[0];

// src/rules/defaultTheme.ts
var t3 = __toESM(require("@babel/types"));
import * as t3 from "@babel/types";
var ERRORS = {

@@ -249,3 +212,3 @@ variableDeclaration: "Do not use defaultTheme as value, use useTheme() hook or ThemeConsumer",

// src/rules/rtlUtils.ts
var t4 = __toESM(require("@babel/types"));
import * as t4 from "@babel/types";
var RightOrLeftError = "Do not use theme.rtl as the test value of conditional expression. Consider importing either left or right function from @kiwicom/orbit-components. See more on https://orbit.kiwi/utilities/right-to-left-languages/.";

@@ -487,3 +450,3 @@ var SpacingError = "Do not use theme.rtl as the test value of conditional expression. Consider importing rtlSpacing function from @kiwicom/orbit-components. See more on https://orbit.kiwi/utilities/right-to-left-languages/.";

// src/rules/preferSingleDestructure.ts
var t5 = __toESM(require("@babel/types"));
import * as t5 from "@babel/types";
var LIMIT = 1;

@@ -552,3 +515,3 @@ var ERROR = "Using many arrow function expressions in a single styled component can negatively impact performance. Consider using one single function to destructure all props and return one single css helper function if possible.";

// src/rules/uniqueId.ts
var t6 = __toESM(require("@babel/types"));
import * as t6 from "@babel/types";
var uniqueId = {

@@ -584,3 +547,3 @@ meta: {

// src/rules/unnecessaryText.ts
var t7 = __toESM(require("@babel/types"));
import * as t7 from "@babel/types";
var unnecessaryText_default = {

@@ -655,6 +618,5 @@ create: (context) => {

};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
export {
configs,
rules
});
};
{
"name": "eslint-plugin-orbit-components",
"description": "Collection of ESLint rules to enforce the best usage practices of @kiwicom/orbit-components",
"version": "0.6.9",
"version": "0.6.10",
"author": "Kiwi.com",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"type": "module",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./README.md": "./README.md",
"./package.json": "./package.json"
},
"license": "MIT",

@@ -14,3 +24,3 @@ "repository": {

},
"gitHead": "390e995efcfab2fe791a2681811b2450d0ecfc38",
"gitHead": "8160b3c1c3b9a751c098007e17ddc5df934d602c",
"files": [

@@ -32,3 +42,2 @@ "dist",

"build": "tsup",
"postinstall": "yarn build",
"prepublishOnly": "yarn build"

@@ -40,8 +49,8 @@ },

"devDependencies": {
"del-cli": "^5.0.0"
"del-cli": "^5.0.0",
"tsup": "^6.1.0"
},
"dependencies": {
"@babel/types": "=7.12.10",
"tsup": "^6.1.0"
"@babel/types": "=7.12.10"
}
}
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