8000 docs: clean up remaining allowDefaultProject(ForFiles) vestiges (#9959) · ronami/typescript-eslint@ee2617a · GitHub
[go: up one dir, main page]

Skip to content

Commit ee2617a

Browse files
docs: clean up remaining allowDefaultProject(ForFiles) vestiges (typescript-eslint#9959)
1 parent 3710c9c commit ee2617a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/developers/Custom_Rules.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ const ruleTester = new RuleTester({
399399
languageOptions: {
400400
parserOptions: {
401401
projectService: {
402-
allowDefaultProjectForFiles: ['*.ts*'],
402+
allowDefaultProject: ['*.ts*'],
403403
},
404404
tsconfigRootDir: __dirname,
405405
},

docs/packages/Rule_Tester.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ ruleTester.run('my-rule', rule, {
123123
### Type-Aware Testing
124124

125125
Type-aware rules can be tested in almost exactly the same way as regular code, using `parserOptions.projectService`.
126-
Most rule tests specify `parserOptions.allowDefaultProjectForFiles: ["*.ts*"]` to enable type checking on all test files.
126+
Most rule tests specify `parserOptions.allowDefaultProject: ["*.ts*"]` to enable type checking on all test files.
127127

128128
You can then test your rule by providing the type-aware config:
129129

0 commit comments

Comments
 (0)
0