Skip to content

Commit

Permalink
fix(valid-types): update closure suppress types; fixes #1349 (#1350)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 authored Jan 17, 2025
1 parent d2c6040 commit a57f36e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/rules/validTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ const suppressTypes = new Set([
// https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/parsing/ParserConfig.properties#L154
'accessControls',
'checkDebuggerStatement',
'checkEs5InheritanceCorrectnessConditions',
'checkPrototypalTypes',
'checkRegExp',
'checkTypes',
'checkVars',
'closureClassChecks',
'closureDepMethodUsageChecks',
'const',
'constantProperty',
'dangerousUnrecognizedTypeError',
'deprecated',
'duplicate',
'es5Strict',
Expand All @@ -42,19 +45,23 @@ const suppressTypes = new Set([
'lateProvide',
'legacyGoogScopeRequire',
'lintChecks',
'lintVarDeclarations',
'messageConventions',
'misplacedTypeAnnotation',
'missingOverride',
'missingPolyfill',
'missingProperties',
'missingProvide',
'missingRequire',
'missingReturn',
'missingSourcesWarnings',
'moduleLoad',
'msgDescriptions',
'nonStandardJsDocs',
'partialAlias',
'polymer',
'reportUnknownTypes',
'strictCheckTypes',
'strictMissingProperties',
'strictModuleDepCheck',
'strictPrimitiveOperators',
Expand All @@ -69,6 +76,8 @@ const suppressTypes = new Set([
'unknownDefines',
'untranspilableFeatures',
'unusedLocalVariables',

// Not documented?
'unusedPrivateMembers',
'useOfGoogProvide',
'uselessCode',
Expand Down

0 comments on commit a57f36e

Please sign in to comment.