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

eslint-flat-config-utils

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-flat-config-utils - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

20

dist/index.d.ts

@@ -117,2 +117,3 @@ import { Linter } from 'eslint';

type PluginConflictsError<T extends Linter.Config = Linter.Config> = (pluginName: string, configs: T[]) => string;
/**

@@ -177,2 +178,3 @@ * Awaitable array of ESLint flat configs or a composer object.

private _renames;
private _pluginsConflictsError;
constructor(...configs: ResolvableFlatConfig<T>[]);

@@ -254,2 +256,18 @@ /**

/**
* Set a custom warning message for plugins conflicts.
*
* The error message can be a string or a function that returns a string.
*
* Error message accepts template strings:
* - `{{pluginName}}`: the name of the plugin that has conflicts
* - `{{configName1}}`: the name of the first config that uses the plugin
* - `{{configName2}}`: the name of the second config that uses the plugin
* - `{{configNames}}`: a list of config names that uses the plugin
*
* When only one argument is provided, it will be used as the default error message.
*/
setPluginConflictsError(warning?: string | PluginConflictsError): this;
setPluginConflictsError(pluginName: string, warning: string | PluginConflictsError): this;
private _verifyPluginsConflicts;
/**
* Hook when all configs are resolved but before returning the final configs.

@@ -303,2 +321,2 @@ *

export { type Arrayable, type Awaitable, type DefaultConfigNamesMap, type FilterType, FlatConfigComposer, type FlatConfigItem, FlatConfigPipeline, type GetRuleRecordFromConfig, type NullableObject, type ResolvableFlatConfig, type StringLiteralUnion, composer, concat, defineFlatConfig, extend, mergeConfigs, pipe, renamePluginsInConfigs, renamePluginsInRules };
export { type Arrayable, type Awaitable, type DefaultConfigNamesMap, type FilterType, FlatConfigComposer, type FlatConfigItem, FlatConfigPipeline, type GetRuleRecordFromConfig, type NullableObject, type PluginConflictsError, type ResolvableFlatConfig, type StringLiteralUnion, composer, concat, defineFlatConfig, extend, mergeConfigs, pipe, renamePluginsInConfigs, renamePluginsInRules };

22

package.json
{
"name": "eslint-flat-config-utils",
"type": "module",
"version": "0.3.0",
"packageManager": "pnpm@9.6.0",
"version": "0.3.1",
"packageManager": "pnpm@9.7.1",
"description": "Utils for managing and manipulating ESLint flat config arrays",

@@ -58,12 +58,12 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>",

"devDependencies": {
"@antfu/eslint-config": "^2.23.2",
"@antfu/ni": "^0.22.0",
"@antfu/eslint-config": "^2.26.0",
"@antfu/ni": "^0.22.4",
"@antfu/utils": "^0.7.10",
"@types/node": "^20.14.12",
"bumpp": "^9.4.1",
"eslint": "^9.8.0",
"@types/node": "^22.4.1",
"bumpp": "^9.5.1",
"eslint": "^9.9.0",
"esno": "^4.7.0",
"jsr": "^0.13.1",
"lint-staged": "^15.2.7",
"pnpm": "^9.6.0",
"lint-staged": "^15.2.9",
"pnpm": "^9.7.1",
"rimraf": "^6.0.1",

@@ -73,4 +73,4 @@ "simple-git-hooks": "^2.11.1",

"unbuild": "^2.0.0",
"vite": "^5.3.5",
"vitest": "^2.0.4"
"vite": "^5.4.1",
"vitest": "^2.0.5"
},

@@ -77,0 +77,0 @@ "simple-git-hooks": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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