eslint-plugin-orbit-components
Advanced tools
Comparing version 0.6.9 to 0.6.10
@@ -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" | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
85682
2
16
1950
0
Yes
2
1
- Removedtsup@^6.1.0
- Removed@esbuild/android-arm@0.17.19(transitive)
- Removed@esbuild/android-arm64@0.17.19(transitive)
- Removed@esbuild/android-x64@0.17.19(transitive)
- Removed@esbuild/darwin-arm64@0.17.19(transitive)
- Removed@esbuild/darwin-x64@0.17.19(transitive)
- Removed@esbuild/freebsd-arm64@0.17.19(transitive)
- Removed@esbuild/freebsd-x64@0.17.19(transitive)
- Removed@esbuild/linux-arm@0.17.19(transitive)
- Removed@esbuild/linux-arm64@0.17.19(transitive)
- Removed@esbuild/linux-ia32@0.17.19(transitive)
- Removed@esbuild/linux-loong64@0.17.19(transitive)
- Removed@esbuild/linux-mips64el@0.17.19(transitive)
- Removed@esbuild/linux-ppc64@0.17.19(transitive)
- Removed@esbuild/linux-riscv64@0.17.19(transitive)
- Removed@esbuild/linux-s390x@0.17.19(transitive)
- Removed@esbuild/linux-x64@0.17.19(transitive)
- Removed@esbuild/netbsd-x64@0.17.19(transitive)
- Removed@esbuild/openbsd-x64@0.17.19(transitive)
- Removed@esbuild/sunos-x64@0.17.19(transitive)
- Removed@esbuild/win32-arm64@0.17.19(transitive)
- Removed@esbuild/win32-ia32@0.17.19(transitive)
- Removed@esbuild/win32-x64@0.17.19(transitive)
- Removed@isaacs/cliui@8.0.2(transitive)
- Removed@jridgewell/gen-mapping@0.3.5(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/set-array@1.2.1(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@jridgewell/trace-mapping@0.3.25(transitive)
- Removed@nodelib/fs.scandir@2.1.5(transitive)
- Removed@nodelib/fs.stat@2.0.5(transitive)
- Removed@nodelib/fs.walk@1.2.8(transitive)
- Removed@pkgjs/parseargs@0.11.0(transitive)
- Removedansi-regex@5.0.16.1.0(transitive)
- Removedansi-styles@6.2.1(transitive)
- Removedany-promise@1.3.0(transitive)
- Removedanymatch@3.1.3(transitive)
- Removedarray-union@2.1.0(transitive)
- Removedbinary-extensions@2.3.0(transitive)
- Removedbrace-expansion@2.0.1(transitive)
- Removedbraces@3.0.3(transitive)
- Removedbundle-require@4.2.1(transitive)
- Removedcac@6.7.14(transitive)
- Removedchokidar@3.6.0(transitive)
- Removedcommander@4.1.1(transitive)
- Removeddir-glob@3.0.1(transitive)
- Removedeastasianwidth@0.2.0(transitive)
- Removedemoji-regex@8.0.09.2.2(transitive)
- Removedesbuild@0.17.19(transitive)
- Removedexeca@5.1.1(transitive)
- Removedfast-glob@3.3.2(transitive)
- Removedfastq@1.17.1(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedforeground-child@3.3.0(transitive)
- Removedfsevents@2.3.3(transitive)
- Removedget-stream@6.0.1(transitive)
- Removedglob@10.4.5(transitive)
- Removedglob-parent@5.1.2(transitive)
- Removedglobby@11.1.0(transitive)
- Removedhuman-signals@2.1.0(transitive)
- Removedis-binary-path@2.1.0(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedis-number@7.0.0(transitive)
- Removedis-stream@2.0.1(transitive)
- Removedjackspeak@3.4.3(transitive)
- Removedjoycon@3.1.1(transitive)
- Removedlilconfig@2.1.0(transitive)
- Removedlines-and-columns@1.2.4(transitive)
- Removedload-tsconfig@0.2.5(transitive)
- Removedlodash.sortby@4.7.0(transitive)
- Removedlru-cache@10.4.3(transitive)
- Removedmerge-stream@2.0.0(transitive)
- Removedmerge2@1.4.1(transitive)
- Removedmicromatch@4.0.8(transitive)
- Removedmimic-fn@2.1.0(transitive)
- Removedminimatch@9.0.5(transitive)
- Removedminipass@7.1.2(transitive)
- Removedmz@2.7.0(transitive)
- Removednormalize-path@3.0.0(transitive)
- Removednpm-run-path@4.0.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedonetime@5.1.2(transitive)
- Removedpackage-json-from-dist@1.0.1(transitive)
- Removedpath-scurry@1.11.1(transitive)
- Removedpath-type@4.0.0(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedpirates@4.0.6(transitive)
- Removedpostcss-load-config@3.1.4(transitive)
- Removedqueue-microtask@1.2.3(transitive)
- Removedreaddirp@3.6.0(transitive)
- Removedresolve-from@5.0.0(transitive)
- Removedreusify@1.0.4(transitive)
- Removedrollup@3.29.5(transitive)
- Removedrun-parallel@1.2.0(transitive)
- Removedsignal-exit@3.0.74.1.0(transitive)
- Removedslash@3.0.0(transitive)
- Removedsource-map@0.8.0-beta.0(transitive)
- Removedstring-width@4.2.35.1.2(transitive)
- Removedstrip-ansi@6.0.17.1.0(transitive)
- Removedstrip-final-newline@2.0.0(transitive)
- Removedsucrase@3.35.0(transitive)
- Removedthenify@3.3.1(transitive)
- Removedthenify-all@1.6.0(transitive)
- Removedto-regex-range@5.0.1(transitive)
- Removedtr46@1.0.1(transitive)
- Removedtree-kill@1.2.2(transitive)
- Removedts-interface-checker@0.1.13(transitive)
- Removedtsup@6.7.0(transitive)
- Removedwebidl-conversions@4.0.2(transitive)
- Removedwhatwg-url@7.1.0(transitive)
- Removedwrap-ansi@7.0.08.1.0(transitive)
- Removedyaml@1.10.2(transitive)