Summary
- Assembly
- Cake
.ESLint .dll - Namespace
- Cake
.ESLint - Base Types
-
- ToolSettings
Syntax
public sealed class ESLintSettings : ToolSettings
Constructors
Name | Summary |
---|---|
ESLintSettings |
Initializes a new instance of the ESLintSettings class.
|
Properties
Name | Value | Summary |
---|---|---|
Cache | bool |
Gets or sets a value indicating whether
to check only changed files.
Option: |
CacheLocation | Path |
Gets or sets the path to the cache file or directory.
Option: |
CacheStrategy | ESLintCacheStrategy |
Gets or sets the strategy to use for detecting changed files.
Option: |
Config | FilePath |
Gets or sets a path to a config file.
Option: |
ContinueOnErrors | bool |
Gets or sets a value indicating whether to continue on lint errors.
The default is to throw a |
Directories | IEnumerable |
Gets or sets the list of directories to lint.
|
Environments | IEnumerable |
Gets or sets the environments.
Option: |
Extensions | IEnumerable |
Gets or sets JavaScript file extensions.
Option: |
Files | IEnumerable |
Gets or sets the list of Files to lint.
|
Fix | bool |
Gets or sets a value indicating whether to fix problems.
Option: |
FixDryRun | bool |
Gets or sets a value indicating whether to fix problems without saving the changes to the file system.
Option: |
FixTypes | IEnumerable |
Gets or sets the types of fixes to apply.
Option: |
Globals | IEnumerable |
Gets or sets global variables.
Option: |
IgnorePath | FilePath |
Gets or sets the path to the ignoreFile.
Option: |
IgnorePatterns | IEnumerable |
Gets or sets patterns of files to ignore
(in addition to those in .eslintignore).
Option: |
MaxWarnings | Nullable |
Gets or sets the number of warnings to trigger nonzero exit code.
Option: |
NoEslintRc | bool |
Gets or Sets a value indicating whether to disable use of configuration from eslintrc.
Option: |
NoIgnore | bool |
Gets or sets a value indicating whether
to disable use of ignore files and patterns.
Option: |
NoInlineConfig | bool |
Gets or sets a value indicating whether
to prevent comments from changing config or rules.
Option: |
Output | FilePath |
Gets or sets the Output file.
Option: |
OutputFormat | ESLintOutputFormat |
Gets or sets output Format.
Option: |
Parser | string |
Gets or sets the parser to be used.
Option: |
ParserOptions | IEnumerable |
Gets or sets the parser options.
Option: |
Plugins | IEnumerable |
Gets or sets the plugins to use.
Option: |
Quiet | bool |
Gets or sets a value indicating whether
to report errors only.
Option: |
Report |
bool |
Gets or sets a value indicating whether
to report errors for unused eslint-disable directives.
Option: |
Resolve |
DirectoryPath |
Gets or sets a folder where plugins should be resolved from.
Option: |
Rules | IEnumerable |
Gets or sets the Rule(s).
Option: |
RulesDirs | IEnumerable |
Gets or sets a folder where additional rules are located.
Option: |
UseColors | Nullable |
Gets or sets whether to force the using of colors.
Option: |
Extension Methods
Name | Value | Summary |
---|---|---|
AddDirectory |
void |
Adds to
Directories .
Requires the Cake.ESLint addin
|
AddFile |
void |
adds to
Files .
Requires the Cake.ESLint addin
|
AddFixType |
void |
adds to
FixTypes .
Requires the Cake.ESLint addin
|
AddIgnorePattern |
void |
adds to
IgnorePatterns .
Requires the Cake.ESLint addin
|
AddIgnorePattern |
void |
adds to
IgnorePatterns .
Requires the Cake.ESLint addin
|
AddPlugin |
void |
adds to
Plugins .
Requires the Cake.ESLint addin
|
AddRule |
void |
adds to
Rules .
Requires the Cake.ESLint addin
|
AddRulesDir |
void |
adds to
RulesDirs .
Requires the Cake.ESLint addin
|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
SetParser |
void |
Sets
Parser to a FilePath.
Requires the Cake.ESLint addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
Returns the string value or a
Not set > markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|