Class Linter.Builder

java.lang.Object
com.google.javascript.jscomp.Linter.Builder
Enclosing class:
Linter

public static final class Linter.Builder extends Object
Builder for a Linter that allows some customization.

Note: A builder is not designed to generate multiple Linters, just a single one. The underlying CompilerOptions it builds is never copied defensively, so futher edits to this builder will affect previously built Linters.

  • Method Details

    • withModuleResolutionMode

      @CanIgnoreReturnValue public Linter.Builder withModuleResolutionMode(ModuleLoader.ResolutionMode moduleResolutionMode)
    • withBrowserResolverPrefixReplacements

      @CanIgnoreReturnValue public Linter.Builder withBrowserResolverPrefixReplacements(com.google.common.collect.ImmutableMap<String,String> replacements)
    • build

      public Linter build()