gitea push
This commit is contained in:
+6
@@ -490,6 +490,9 @@ function fixupConfigRules(config) {
|
||||
* Converts an ESLint ignore pattern to a minimatch pattern.
|
||||
* @param {string} pattern The .eslintignore or .gitignore pattern to convert.
|
||||
* @returns {string} The converted pattern.
|
||||
*
|
||||
* @deprecated Use the `convertIgnorePatternToMinimatch()` function exported by
|
||||
* `@eslint/config-helpers` instead.
|
||||
*/
|
||||
function convertIgnorePatternToMinimatch(pattern) {
|
||||
const isNegated = pattern.startsWith("!");
|
||||
@@ -538,6 +541,9 @@ function convertIgnorePatternToMinimatch(pattern) {
|
||||
* @param {string} [name] The name of the ignore file config.
|
||||
* @returns {FlatConfig} An object with an `ignores` property that is an array of ignore patterns.
|
||||
* @throws {Error} If the ignore file path is not an absolute path.
|
||||
*
|
||||
* @deprecated Use the `includeIgnoreFile()` function exported by
|
||||
* `@eslint/config-helpers` instead (also available at `eslint/config`).
|
||||
*/
|
||||
function includeIgnoreFile(ignoreFilePath, name) {
|
||||
if (!path.isAbsolute(ignoreFilePath)) {
|
||||
|
||||
+6
@@ -13,6 +13,9 @@ export type FixupConfigArray = Array<FixupConfig>;
|
||||
* Converts an ESLint ignore pattern to a minimatch pattern.
|
||||
* @param {string} pattern The .eslintignore or .gitignore pattern to convert.
|
||||
* @returns {string} The converted pattern.
|
||||
*
|
||||
* @deprecated Use the `convertIgnorePatternToMinimatch()` function exported by
|
||||
* `@eslint/config-helpers` instead.
|
||||
*/
|
||||
export function convertIgnorePatternToMinimatch(pattern: string): string;
|
||||
/**
|
||||
@@ -42,5 +45,8 @@ export function fixupRule(ruleDefinition: FixupRuleDefinition | FixupLegacyRuleD
|
||||
* @param {string} [name] The name of the ignore file config.
|
||||
* @returns {FlatConfig} An object with an `ignores` property that is an array of ignore patterns.
|
||||
* @throws {Error} If the ignore file path is not an absolute path.
|
||||
*
|
||||
* @deprecated Use the `includeIgnoreFile()` function exported by
|
||||
* `@eslint/config-helpers` instead (also available at `eslint/config`).
|
||||
*/
|
||||
export function includeIgnoreFile(ignoreFilePath: string, name?: string): FlatConfig;
|
||||
|
||||
+6
@@ -13,6 +13,9 @@ export type FixupConfigArray = Array<FixupConfig>;
|
||||
* Converts an ESLint ignore pattern to a minimatch pattern.
|
||||
* @param {string} pattern The .eslintignore or .gitignore pattern to convert.
|
||||
* @returns {string} The converted pattern.
|
||||
*
|
||||
* @deprecated Use the `convertIgnorePatternToMinimatch()` function exported by
|
||||
* `@eslint/config-helpers` instead.
|
||||
*/
|
||||
export function convertIgnorePatternToMinimatch(pattern: string): string;
|
||||
/**
|
||||
@@ -42,5 +45,8 @@ export function fixupRule(ruleDefinition: FixupRuleDefinition | FixupLegacyRuleD
|
||||
* @param {string} [name] The name of the ignore file config.
|
||||
* @returns {FlatConfig} An object with an `ignores` property that is an array of ignore patterns.
|
||||
* @throws {Error} If the ignore file path is not an absolute path.
|
||||
*
|
||||
* @deprecated Use the `includeIgnoreFile()` function exported by
|
||||
* `@eslint/config-helpers` instead (also available at `eslint/config`).
|
||||
*/
|
||||
export function includeIgnoreFile(ignoreFilePath: string, name?: string): FlatConfig;
|
||||
|
||||
+6
@@ -489,6 +489,9 @@ function fixupConfigRules(config) {
|
||||
* Converts an ESLint ignore pattern to a minimatch pattern.
|
||||
* @param {string} pattern The .eslintignore or .gitignore pattern to convert.
|
||||
* @returns {string} The converted pattern.
|
||||
*
|
||||
* @deprecated Use the `convertIgnorePatternToMinimatch()` function exported by
|
||||
* `@eslint/config-helpers` instead.
|
||||
*/
|
||||
function convertIgnorePatternToMinimatch(pattern) {
|
||||
const isNegated = pattern.startsWith("!");
|
||||
@@ -537,6 +540,9 @@ function convertIgnorePatternToMinimatch(pattern) {
|
||||
* @param {string} [name] The name of the ignore file config.
|
||||
* @returns {FlatConfig} An object with an `ignores` property that is an array of ignore patterns.
|
||||
* @throws {Error} If the ignore file path is not an absolute path.
|
||||
*
|
||||
* @deprecated Use the `includeIgnoreFile()` function exported by
|
||||
* `@eslint/config-helpers` instead (also available at `eslint/config`).
|
||||
*/
|
||||
function includeIgnoreFile(ignoreFilePath, name) {
|
||||
if (!path.isAbsolute(ignoreFilePath)) {
|
||||
|
||||
Reference in New Issue
Block a user