Skip to content

Commit

Permalink
change some defaults for recommended ruleset
Browse files Browse the repository at this point in the history
  • Loading branch information
DetachHead committed Oct 16, 2024
1 parent 9126451 commit 4affcbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/pyright-internal/src/common/configOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ export const getRecommendedDiagnosticRuleSet = (): DiagnosticRuleSet => ({
reportMissingImports: 'error',
reportMissingModuleSource: 'error',
reportInvalidTypeForm: 'error',
reportMissingTypeStubs: 'error',
reportMissingTypeStubs: 'warning',
reportImportCycles: 'error',
reportUnusedImport: 'warning',
reportUnusedClass: 'warning',
Expand All @@ -986,7 +986,7 @@ export const getRecommendedDiagnosticRuleSet = (): DiagnosticRuleSet => ({
reportOptionalIterable: 'error',
reportOptionalContextManager: 'error',
reportOptionalOperand: 'error',
reportRedeclaration: 'error',
reportRedeclaration: 'warning',
reportReturnType: 'error',
reportTypedDictNotRequiredAccess: 'error',
reportUntypedFunctionDecorator: 'warning',
Expand Down Expand Up @@ -1019,7 +1019,7 @@ export const getRecommendedDiagnosticRuleSet = (): DiagnosticRuleSet => ({
reportUnnecessaryCast: 'warning',
reportUnnecessaryComparison: 'warning',
reportUnnecessaryContains: 'warning',
reportAssertAlwaysTrue: 'warning',
reportAssertAlwaysTrue: 'error',
reportSelfClsParameterName: 'error',
reportImplicitStringConcatenation: 'warning',
reportUnboundVariable: 'error',
Expand Down

0 comments on commit 4affcbd

Please sign in to comment.