Skip to content

Commit

Permalink
feat: more tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Jul 29, 2024
1 parent 8dbd0ed commit 2b2e26d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default rsEslint(
projectRoot: import.meta.dirname,
mode: "none",
typescript: {
enableDefaultProject: false,
useDefaultDefaultProject: false,
},
formatters: true,
functional: "lite",
Expand Down
4 changes: 2 additions & 2 deletions src/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export function rsEslint(
const {
filesTypeAware,
parserOptions,
enableDefaultProject,
useDefaultDefaultProject,
...typeScriptSubOptions
} = resolveSubOptions(options, "typescript") as OptionsTypescript &
OptionsTypeScriptParserOptions &
Expand All @@ -151,7 +151,7 @@ export function rsEslint(
projectService:
parserOptions?.projectService === false
? false
: enableDefaultProject === false
: useDefaultDefaultProject === false
? projectServiceUserConfig
: {
defaultProject: "./tsconfig.json",
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export type OptionsTypeScriptShorthands = {
*
* @default true
*/
enableDefaultProject?: boolean;
useDefaultDefaultProject?: boolean;
};

export type OptionsTypeScriptUnsafeSeverity = {
Expand Down

0 comments on commit 2b2e26d

Please sign in to comment.