Interface EslintOptions
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EslintOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-03-28T21:16:43.163Z") @Stability(Experimental) public interface EslintOptions extends software.amazon.jsii.JsiiSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classEslintOptions.BuilderA builder forEslintOptionsstatic classEslintOptions.Jsii$ProxyAn implementation forEslintOptions
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description static EslintOptions.Builderbuilder()default List<String>getAliasExtensions()(experimental) Enable import alias for module paths.default Map<String,String>getAliasMap()(experimental) Enable import alias for module paths.default List<String>getDevdirs()(experimental) Files or glob patterns or directories with source files that include tests and build tools.List<String>getDirs()(experimental) Files or glob patterns or directories with source files to lint (e.g.default List<String>getFileExtensions()(experimental) File types that should be linted (e.g.default List<String>getIgnorePatterns()(experimental) List of file patterns that should not be linted, using the same syntax as .gitignore patterns.default BooleangetLintProjenRc()Deprecated.set tofalseto remove any automatic rules and add manuallydefault StringgetLintProjenRcFile()Deprecated.provide asdevdirsdefault BooleangetPrettier()(experimental) Enable prettier for code formatting.default BooleangetTsAlwaysTryTypes()(experimental) Always try to resolve types under<root>@typesdirectory even it doesn't contain any source code.default StringgetTsconfigPath()(experimental) Path totsconfig.jsonwhich should be used by eslint.default BooleangetYaml()(experimental) Write eslint configuration as YAML instead of JSON.
-
-
-
Method Detail
-
getDirs
@Stability(Experimental) @NotNull List<String> getDirs()
(experimental) Files or glob patterns or directories with source files to lint (e.g. [ "src" ]).
-
getAliasExtensions
@Stability(Experimental) @Nullable default List<String> getAliasExtensions()
(experimental) Enable import alias for module paths.Default: undefined
-
getAliasMap
@Stability(Experimental) @Nullable default Map<String,String> getAliasMap()
(experimental) Enable import alias for module paths.Default: undefined
-
getDevdirs
@Stability(Experimental) @Nullable default List<String> getDevdirs()
(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: []
-
getFileExtensions
@Stability(Experimental) @Nullable default List<String> getFileExtensions()
(experimental) File types that should be linted (e.g. [ ".js", ".ts" ]).Default: [".ts"]
-
getIgnorePatterns
@Stability(Experimental) @Nullable default List<String> getIgnorePatterns()
(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' ]
-
getLintProjenRc
@Stability(Deprecated) @Deprecated @Nullable default Boolean getLintProjenRc()
Deprecated.set tofalseto remove any automatic rules and add manually(deprecated) Should we lint .projenrc.js.Default: true
-
getLintProjenRcFile
@Stability(Deprecated) @Deprecated @Nullable default String getLintProjenRcFile()
Deprecated.provide asdevdirs(deprecated) Projenrc file to lint.Use empty string to disable.
Default: "projenrc.js"
-
getPrettier
@Stability(Experimental) @Nullable default Boolean getPrettier()
(experimental) Enable prettier for code formatting.Default: false
-
getTsAlwaysTryTypes
@Stability(Experimental) @Nullable default Boolean getTsAlwaysTryTypes()
(experimental) Always try to resolve types under<root>@typesdirectory even it doesn't contain any source code.This prevents
import/no-unresolvedeslint errors when importing a@types/*module that would otherwise remain unresolved.Default: true
-
getTsconfigPath
@Stability(Experimental) @Nullable default String getTsconfigPath()
(experimental) Path totsconfig.jsonwhich should be used by eslint.Default: "./tsconfig.json"
-
getYaml
@Stability(Experimental) @Nullable default Boolean getYaml()
(experimental) Write eslint configuration as YAML instead of JSON.Default: false
-
builder
@Stability(Experimental) static EslintOptions.Builder builder()
- Returns:
- a
EslintOptions.BuilderofEslintOptions
-
-