eslint-define-config
Advanced tools
Comparing version 1.9.1 to 1.10.0
{ | ||
"name": "eslint-define-config", | ||
"version": "1.9.1", | ||
"version": "1.10.0", | ||
"description": "Provide a defineConfig function for .eslintrc.js files", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -116,1 +116,7 @@ import type { Parser, ParserOptions } from '../parser-options'; | ||
} | ||
export * from './env'; | ||
export * from './extends'; | ||
export * from './overrides'; | ||
export * from './plugin'; | ||
export * from './settings'; |
@@ -12,3 +12,3 @@ import type { ESLint, Linter } from 'eslint'; | ||
*/ | ||
export interface FlatESLintConfig { | ||
export interface FlatESLintConfigItem { | ||
/** | ||
@@ -71,2 +71,6 @@ * An array of glob patterns indicating the files that the configuration object should apply to. If not specified, the configuration object applies to all files. | ||
export type FlatESLintConfigs = Array<FlatESLintConfig | PredefinedConfig>; | ||
export type FlatESLintConfig = FlatESLintConfigItem | PredefinedConfig; | ||
export type FlatESLintConfigs = Array<FlatESLintConfig>; | ||
export * from './language-options'; | ||
export * from './linter-options'; |
import type { ESLintConfig } from './config'; | ||
import type { FlatESLintConfigs } from './flat-config'; | ||
import type { FlatESLintConfig, FlatESLintConfigs } from './flat-config'; | ||
@@ -13,2 +13,12 @@ /** | ||
/** | ||
* Define an item of Flat ESLint config. | ||
* | ||
* @see [Configuration Files (New)](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new) | ||
* | ||
* @param config an item of Flat ESLint config. | ||
* @returns an item of Flat ESLint config. | ||
*/ | ||
export function defineConfig(config: FlatESLintConfig): FlatESLintConfig; | ||
/** | ||
* Define a flat ESLint config. | ||
@@ -22,1 +32,6 @@ * | ||
export function defineConfig(config: FlatESLintConfigs): FlatESLintConfigs; | ||
export * from './config'; | ||
export * from './flat-config'; | ||
export * from './parser-options'; | ||
export * from './rules'; |
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
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
1117747
35813