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

eslint-define-config

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-define-config - npm Package Compare versions

Comparing version 1.9.1 to 1.10.0

2

package.json
{
"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';
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