Package com.google.javascript.jscomp.lint
package com.google.javascript.jscomp.lint
-
ClassDescriptionLints against passing arrays to goog.object methods with the intention of iterating over them as though with a for-in loop, which is discouraged with arrays.This pass looks for module-level variable declarations that use CONSTANT_CASE, according to the Google style guide, and verifies that they are also annotated @const or are in a const clause.This pass looks for properties that are not modified and ensures they use the @const annotation.Check for duplicate case labels in a switch statement Eg: switch (foo) { case 1: case 1: }Check for empty statements (i.e.Checks the following: Whether there are duplicate values in enums.Checks the file structure of ES6 modules.Miscellaneous checks for style in ES6 modules.Walks the AST looking for usages of qualified names, and 'goog.require's of those names.Checks that goog.module statement matches the generated TypeScript module namespace, which is based on the file path.Checks for errors related to interfaces.Checks for various JSDoc-related style issues, such as function definitions without JsDoc, params with no corresponding
@param
annotation, coding conventions not being respected, etc.Check for statements that should end with a semicolon according to the Google style guide.Checks if code has a module-level static property assignment (`X.Y`) inside a `goog.module`.Checks that exports of ES6 modules are not mutated outside of module initialization.Checks for missing or redundant nullability modifiers.Check for explicit creation of the object equivalents of primitive types (e.g.Checks when a mutable property is assigned to a prototype.Checks that goog.provide statements are sorted and deduplicated, exposing the necessary information to produce a suggested fix.Operation modes.Checks that Closure import statements (goog.require, goog.requireType, and goog.forwardDeclare) are sorted and deduplicated, exposing the necessary information to produce a suggested fix.Operation modes.Check for unused labels blocks.This pass looks for properties that are never read.Check for useless blocks.Check for `var` (prefer `const` or `let`).