Skip to content

Commit

Permalink
Add constructor option flags
Browse files Browse the repository at this point in the history
  • Loading branch information
fasttime committed Jul 5, 2024
1 parent 60adec8 commit 1a0c874
Show file tree
Hide file tree
Showing 5 changed files with 299 additions and 281 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ See the linked content for details about each option.
* [`quiet`](#optionsquiet)
* [`warnIgnored`](#optionswarnignored)

**Other options**
* [`flags`][other options]

#### General Options

##### `options.configType`
Expand Down Expand Up @@ -431,5 +434,6 @@ The functions [`gulpESLintNew.result`](#gulpeslintnewresultaction) and [`gulpESL
[gulp-eslint]: https://github.com/adametry/gulp-eslint
[legacy linting options]: https://eslint.org/docs/v8.x/integrate/nodejs-api#linting
[linting options]: https://eslint.org/docs/latest/integrate/nodejs-api#linting
[npm badge]: https://img.shields.io/npm/v/gulp-eslint-new?logo=npm
[npm URL]: https://www.npmjs.com/package/gulp-eslint-new
[npm badge]: https://img.shields.io/npm/v/gulp-eslint-new?logo=npm
[other options]: https://eslint.org/docs/latest/integrate/nodejs-api#other-options
1 change: 1 addition & 0 deletions lib/eslint.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Omit<
{
baseConfig?: Linter.Config | null | undefined;
fixTypes?: Rule.RuleMetaData['type'][] | null | undefined;
flags?: string[] | undefined;
overrideConfig?: Linter.Config | null | undefined;
overrideConfigFile?: string | null | undefined;
plugins?: Record<string, ESLint.Plugin> | null | undefined;
Expand Down
1 change: 1 addition & 0 deletions lib/gulp-eslint-new.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ declare namespace gulpESLintNew
| 'cwd'
| 'fix'
| 'fixTypes'
| 'flags'
| 'ignore'
| 'plugins'
> &
Expand Down
Loading

0 comments on commit 1a0c874

Please sign in to comment.