Class EslintOptions.Jsii$Proxy

  • All Implemented Interfaces:
    EslintOptions, software.amazon.jsii.JsiiSerializable
    Enclosing interface:
    EslintOptions

    @Stability(Experimental)
    @Internal
    public static final class EslintOptions.Jsii$Proxy
    extends software.amazon.jsii.JsiiObject
    implements EslintOptions
    An implementation for EslintOptions
    • Constructor Detail

      • Jsii$Proxy

        protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
        Constructor that initializes the object based on values retrieved from the JsiiObject.
        Parameters:
        objRef - Reference to the JSII managed object.
    • Method Detail

      • getDirs

        public final List<String> getDirs()
        Description copied from interface: EslintOptions
        (experimental) Files or glob patterns or directories with source files to lint (e.g. [ "src" ]).
        Specified by:
        getDirs in interface EslintOptions
      • getDevdirs

        public final List<String> getDevdirs()
        Description copied from interface: EslintOptions
        (experimental) Files or glob patterns or directories with source files that include tests and build tools.

        These sources are linted but may also import packages from devDependencies.

        Default: []

        Specified by:
        getDevdirs in interface EslintOptions
      • getFileExtensions

        public final List<String> getFileExtensions()
        Description copied from interface: EslintOptions
        (experimental) File types that should be linted (e.g. [ ".js", ".ts" ]).

        Default: [".ts"]

        Specified by:
        getFileExtensions in interface EslintOptions
      • getIgnorePatterns

        public final List<String> getIgnorePatterns()
        Description copied from interface: EslintOptions
        (experimental) List of file patterns that should not be linted, using the same syntax as .gitignore patterns.

        Default: [ '*.js', '*.d.ts', 'node_modules/', '*.generated.ts', 'coverage' ]

        Specified by:
        getIgnorePatterns in interface EslintOptions
      • getLintProjenRcFile

        public final String getLintProjenRcFile()
        Description copied from interface: EslintOptions
        (deprecated) Projenrc file to lint.

        Use empty string to disable.

        Default: "projenrc.js"

        Specified by:
        getLintProjenRcFile in interface EslintOptions
      • getPrettier

        public final Boolean getPrettier()
        Description copied from interface: EslintOptions
        (experimental) Enable prettier for code formatting.

        Default: false

        Specified by:
        getPrettier in interface EslintOptions
      • getTsAlwaysTryTypes

        public final Boolean getTsAlwaysTryTypes()
        Description copied from interface: EslintOptions
        (experimental) Always try to resolve types under <root>@types directory even it doesn't contain any source code.

        This prevents import/no-unresolved eslint errors when importing a @types/* module that would otherwise remain unresolved.

        Default: true

        Specified by:
        getTsAlwaysTryTypes in interface EslintOptions
      • getTsconfigPath

        public final String getTsconfigPath()
        Description copied from interface: EslintOptions
        (experimental) Path to tsconfig.json which should be used by eslint.

        Default: "./tsconfig.json"

        Specified by:
        getTsconfigPath in interface EslintOptions
      • getYaml

        public final Boolean getYaml()
        Description copied from interface: EslintOptions
        (experimental) Write eslint configuration as YAML instead of JSON.

        Default: false

        Specified by:
        getYaml in interface EslintOptions
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object