Skip to content

Commit 0b47a82

Browse files
amir-rahmaniiASafaeirad
authored andcommitted
feat: add boolean support for typescript option
1 parent 392c03c commit 0b47a82

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ You can fine-tune module detection by overriding it, the `defineConfig` function
5151
```typescript
5252
interface Options {
5353
react?: boolean | { additionalEffectHooks?: string }; // controls react, react-hooks, jsx/a11y plugins
54-
typescript?: ParserOptions // https://typescript-eslint.io/packages/parser#configuration
54+
typescript?: boolean | ParserOptions // https://typescript-eslint.io/packages/parser#configuration
5555
node?: boolean; // controls node plugin
5656
sort?: boolean; // controls perfectionist plugin
5757
strict?: boolean; // controls strict rules

src/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export interface Options extends Linter.Config {
9393
* Controls [TypeScript plugin](https://www.npmjs.com/package/typescript-eslint).
9494
* @default true - If you have `typescript` in your dependencies.
9595
*/
96-
typescript?: { projectService?: boolean | ProjectService; tsconfigRootDir?: string; cacheLifetime?: number };
96+
typescript?: boolean | { projectService?: boolean | ProjectService; tsconfigRootDir?: string; cacheLifetime?: number };
9797
/**
9898
* Disables expensive rules.
9999
* @default false
@@ -111,7 +111,7 @@ export interface Options extends Linter.Config {
111111
gitignore?: string | false;
112112
/**
113113
* Controls regex plugin.
114-
* @default true
114+
* @default { allowedCharacterRanges: ['all'] }
115115
*/
116116
regex?: boolean | { allowedCharacterRanges: string[] };
117117
}

0 commit comments

Comments
 (0)