@eslint/config-helpers
Advanced tools
+11
-1
@@ -39,3 +39,3 @@ 'use strict'; | ||
| const allowedGlobalIgnoreKeys = new Set(["ignores", "name"]); | ||
| const allowedGlobalIgnoreKeys = new Set(["basePath", "ignores", "name"]); | ||
@@ -386,2 +386,8 @@ /** | ||
| // @ts-ignore -- ESLint types aren't updated yet | ||
| if (baseConfig.basePath) { | ||
| // @ts-ignore -- ESLint types aren't updated yet | ||
| result.basePath = baseConfig.basePath; | ||
| } | ||
| return result; | ||
@@ -446,2 +452,6 @@ } | ||
| if ("basePath" in extension) { | ||
| throw new TypeError("'basePath' in `extends` is not allowed."); | ||
| } | ||
| if ("extends" in extension) { | ||
@@ -448,0 +458,0 @@ throw new TypeError("Nested 'extends' is not allowed."); |
+11
-1
@@ -38,3 +38,3 @@ // @ts-self-types="./index.d.ts" | ||
| const allowedGlobalIgnoreKeys = new Set(["ignores", "name"]); | ||
| const allowedGlobalIgnoreKeys = new Set(["basePath", "ignores", "name"]); | ||
@@ -385,2 +385,8 @@ /** | ||
| // @ts-ignore -- ESLint types aren't updated yet | ||
| if (baseConfig.basePath) { | ||
| // @ts-ignore -- ESLint types aren't updated yet | ||
| result.basePath = baseConfig.basePath; | ||
| } | ||
| return result; | ||
@@ -445,2 +451,6 @@ } | ||
| if ("basePath" in extension) { | ||
| throw new TypeError("'basePath' in `extends` is not allowed."); | ||
| } | ||
| if ("extends" in extension) { | ||
@@ -447,0 +457,0 @@ throw new TypeError("Nested 'extends' is not allowed."); |
+3
-7
| { | ||
| "name": "@eslint/config-helpers", | ||
| "version": "0.2.3", | ||
| "version": "0.3.0", | ||
| "description": "Helper utilities for creating ESLint configuration", | ||
@@ -50,9 +50,5 @@ "type": "module", | ||
| "devDependencies": { | ||
| "@eslint/core": "^0.15.0", | ||
| "c8": "^9.1.0", | ||
| "@eslint/core": "^0.15.1", | ||
| "eslint": "^9.27.0", | ||
| "mocha": "^10.4.0", | ||
| "rollup": "^4.16.2", | ||
| "rollup-plugin-copy": "^3.5.0", | ||
| "typescript": "^5.4.5" | ||
| "rollup-plugin-copy": "^3.5.0" | ||
| }, | ||
@@ -59,0 +55,0 @@ "engines": { |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
57166
0.86%3
-57.14%1037
1.57%