@eslint/config-helpers
Advanced tools
@@ -141,3 +141,2 @@ 'use strict'; | ||
| function normalizePluginConfig(userNamespace, plugin, config) { | ||
| // @ts-ignore -- ESLint types aren't updated yet | ||
| const pluginNamespace = plugin.meta?.namespace; | ||
@@ -211,2 +210,3 @@ | ||
| * @return {InfiniteConfigArray} The normalized plugin config. | ||
| * @throws {TypeError} If the plugin config is a legacy config. | ||
| */ | ||
@@ -246,2 +246,3 @@ function deepNormalizePluginConfig( | ||
| * @return {InfiniteConfigArray} The plugin config. | ||
| * @throws {TypeError} If the plugin config is not found or is a legacy config. | ||
| */ | ||
@@ -395,2 +396,3 @@ function findPluginConfig(config, pluginConfigName) { | ||
| * @return {Config[]} The flattened list of config objects. | ||
| * @throws {TypeError} If the `extends` property is not an array or if nested `extends` is found. | ||
| */ | ||
@@ -500,2 +502,3 @@ function processExtends(config, configNames) { | ||
| * @returns {Config[]} The config array. | ||
| * @throws {TypeError} If no arguments are provided or if an argument is not an object. | ||
| */ | ||
@@ -553,2 +556,3 @@ function defineConfig(...args) { | ||
| * @returns {Config} The global ignores config. | ||
| * @throws {TypeError} If ignorePatterns is not an array or if it is empty. | ||
| */ | ||
@@ -555,0 +559,0 @@ function globalIgnores(ignorePatterns, name) { |
@@ -14,2 +14,3 @@ export type Config = import("eslint").Linter.Config; | ||
| * @returns {Config[]} The config array. | ||
| * @throws {TypeError} If no arguments are provided or if an argument is not an object. | ||
| */ | ||
@@ -22,3 +23,4 @@ export function defineConfig(...args: ConfigWithExtendsArray): Config[]; | ||
| * @returns {Config} The global ignores config. | ||
| * @throws {TypeError} If ignorePatterns is not an array or if it is empty. | ||
| */ | ||
| export function globalIgnores(ignorePatterns: string[], name?: string): Config; |
@@ -14,2 +14,3 @@ export type Config = import("eslint").Linter.Config; | ||
| * @returns {Config[]} The config array. | ||
| * @throws {TypeError} If no arguments are provided or if an argument is not an object. | ||
| */ | ||
@@ -22,3 +23,4 @@ export function defineConfig(...args: ConfigWithExtendsArray): Config[]; | ||
| * @returns {Config} The global ignores config. | ||
| * @throws {TypeError} If ignorePatterns is not an array or if it is empty. | ||
| */ | ||
| export function globalIgnores(ignorePatterns: string[], name?: string): Config; |
@@ -140,3 +140,2 @@ // @ts-self-types="./index.d.ts" | ||
| function normalizePluginConfig(userNamespace, plugin, config) { | ||
| // @ts-ignore -- ESLint types aren't updated yet | ||
| const pluginNamespace = plugin.meta?.namespace; | ||
@@ -210,2 +209,3 @@ | ||
| * @return {InfiniteConfigArray} The normalized plugin config. | ||
| * @throws {TypeError} If the plugin config is a legacy config. | ||
| */ | ||
@@ -245,2 +245,3 @@ function deepNormalizePluginConfig( | ||
| * @return {InfiniteConfigArray} The plugin config. | ||
| * @throws {TypeError} If the plugin config is not found or is a legacy config. | ||
| */ | ||
@@ -394,2 +395,3 @@ function findPluginConfig(config, pluginConfigName) { | ||
| * @return {Config[]} The flattened list of config objects. | ||
| * @throws {TypeError} If the `extends` property is not an array or if nested `extends` is found. | ||
| */ | ||
@@ -499,2 +501,3 @@ function processExtends(config, configNames) { | ||
| * @returns {Config[]} The config array. | ||
| * @throws {TypeError} If no arguments are provided or if an argument is not an object. | ||
| */ | ||
@@ -552,2 +555,3 @@ function defineConfig(...args) { | ||
| * @returns {Config} The global ignores config. | ||
| * @throws {TypeError} If ignorePatterns is not an array or if it is empty. | ||
| */ | ||
@@ -554,0 +558,0 @@ function globalIgnores(ignorePatterns, name) { |
+5
-4
| { | ||
| "name": "@eslint/config-helpers", | ||
| "version": "0.2.2", | ||
| "version": "0.2.3", | ||
| "description": "Helper utilities for creating ESLint configuration", | ||
@@ -38,3 +38,4 @@ "type": "module", | ||
| "type": "git", | ||
| "url": "git+https://github.com/eslint/rewrite.git" | ||
| "url": "git+https://github.com/eslint/rewrite.git", | ||
| "directory": "packages/config-helpers" | ||
| }, | ||
@@ -50,5 +51,5 @@ "keywords": [ | ||
| "devDependencies": { | ||
| "@eslint/core": "^0.14.0", | ||
| "@eslint/core": "^0.15.0", | ||
| "c8": "^9.1.0", | ||
| "eslint": "^9.19.0", | ||
| "eslint": "^9.27.0", | ||
| "mocha": "^10.4.0", | ||
@@ -55,0 +56,0 @@ "rollup": "^4.16.2", |
+4
-4
@@ -18,3 +18,3 @@ # @eslint/config-helpers | ||
| # or | ||
| bun install @eslint/config-helpers | ||
| bun add @eslint/config-helpers | ||
| ``` | ||
@@ -91,7 +91,7 @@ | ||
| <h3>Diamond Sponsors</h3> | ||
| <p><a href="https://www.ag-grid.com/"><img src="https://images.opencollective.com/ag-grid/2c8d545/logo.png" alt="AG Grid" height="128"></a></p><h3>Platinum Sponsors</h3> | ||
| <p><a href="https://www.ag-grid.com/"><img src="https://images.opencollective.com/ag-grid/bec0580/logo.png" alt="AG Grid" height="128"></a></p><h3>Platinum Sponsors</h3> | ||
| <p><a href="https://automattic.com"><img src="https://images.opencollective.com/automattic/d0ef3e1/logo.png" alt="Automattic" height="128"></a> <a href="https://www.airbnb.com/"><img src="https://images.opencollective.com/airbnb/d327d66/logo.png" alt="Airbnb" height="128"></a></p><h3>Gold Sponsors</h3> | ||
| <p><a href="https://qlty.sh/"><img src="https://images.opencollective.com/qltysh/33d157d/logo.png" alt="Qlty Software" height="96"></a> <a href="https://trunk.io/"><img src="https://images.opencollective.com/trunkio/fb92d60/avatar.png" alt="trunk.io" height="96"></a> <a href="https://shopify.engineering/"><img src="https://avatars.githubusercontent.com/u/8085" alt="Shopify" height="96"></a></p><h3>Silver Sponsors</h3> | ||
| <p><a href="https://vite.dev/"><img src="https://images.opencollective.com/vite/e6d15e1/logo.png" alt="Vite" height="64"></a> <a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/5c4fa84/logo.png" alt="Liftoff" height="64"></a> <a href="https://americanexpress.io"><img src="https://avatars.githubusercontent.com/u/3853301" alt="American Express" height="64"></a></p><h3>Bronze Sponsors</h3> | ||
| <p><a href="https://cybozu.co.jp/"><img src="https://images.opencollective.com/cybozu/933e46d/logo.png" alt="Cybozu" height="32"></a> <a href="https://www.crosswordsolver.org/anagram-solver/"><img src="https://images.opencollective.com/anagram-solver/2666271/logo.png" alt="Anagram Solver" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://www.gitbook.com"><img src="https://avatars.githubusercontent.com/u/7111340" alt="GitBook" height="32"></a> <a href="https://nolebase.ayaka.io"><img src="https://avatars.githubusercontent.com/u/11081491" alt="Neko" height="32"></a> <a href="https://nx.dev"><img src="https://avatars.githubusercontent.com/u/23692104" alt="Nx" height="32"></a> <a href="https://opensource.mercedes-benz.com/"><img src="https://avatars.githubusercontent.com/u/34240465" alt="Mercedes-Benz Group" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774" alt="HeroCoders" height="32"></a> <a href="https://www.lambdatest.com"><img src="https://avatars.githubusercontent.com/u/171592363" alt="LambdaTest" height="32"></a></p> | ||
| <p><a href="https://vite.dev/"><img src="https://images.opencollective.com/vite/e6d15e1/logo.png" alt="Vite" height="64"></a> <a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/5c4fa84/logo.png" alt="Liftoff" height="64"></a> <a href="https://americanexpress.io"><img src="https://avatars.githubusercontent.com/u/3853301" alt="American Express" height="64"></a> <a href="https://stackblitz.com"><img src="https://avatars.githubusercontent.com/u/28635252" alt="StackBlitz" height="64"></a></p><h3>Bronze Sponsors</h3> | ||
| <p><a href="https://sentry.io"><img src="https://github.com/getsentry.png" alt="Sentry" height="32"></a> <a href="https://syntax.fm"><img src="https://github.com/syntaxfm.png" alt="Syntax" height="32"></a> <a href="https://cybozu.co.jp/"><img src="https://images.opencollective.com/cybozu/933e46d/logo.png" alt="Cybozu" height="32"></a> <a href="https://www.crosswordsolver.org/anagram-solver/"><img src="https://images.opencollective.com/anagram-solver/2666271/logo.png" alt="Anagram Solver" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://www.gitbook.com"><img src="https://avatars.githubusercontent.com/u/7111340" alt="GitBook" height="32"></a> <a href="https://nolebase.ayaka.io"><img src="https://avatars.githubusercontent.com/u/11081491" alt="Neko" height="32"></a> <a href="https://nx.dev"><img src="https://avatars.githubusercontent.com/u/23692104" alt="Nx" height="32"></a> <a href="https://opensource.mercedes-benz.com/"><img src="https://avatars.githubusercontent.com/u/34240465" alt="Mercedes-Benz Group" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774" alt="HeroCoders" height="32"></a> <a href="https://www.lambdatest.com"><img src="https://avatars.githubusercontent.com/u/171592363" alt="LambdaTest" height="32"></a></p> | ||
| <h3>Technology Sponsors</h3> | ||
@@ -98,0 +98,0 @@ Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work. |
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
56681
2.55%1021
0.99%2
-66.67%