Files
iris-context/commands/js/eslint.go
VERSE ebde9ba68f refactor(commands): separate commands and its core into two folders (#32)
- I think it would be better if one for commands only, one for the spec
handling core logic so people won't be confused by the core logic inside
the commands folder (cleaner I guess)
- Regen docs
2026-07-05 11:27:30 +07:00

50 lines
2.8 KiB
Go

package js
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "eslint",
Description: "Pluggable JavaScript linter",
Options: []spec.Option{
{Name: "--no-eslintrc", Description: "Disable use of configuration from .eslintrc.*"},
{Name: "-c", Description: "Use this configuration, overriding .eslintrc.* config options if present"},
{Name: "--env", Description: "Specify environments"},
{Name: "--ext", Description: "Specify JavaScript file extensions"},
{Name: "--global", Description: "Define global variables"},
{Name: "--parser", Description: "Specify the parser to be used"},
{Name: "--parser-options", Description: "Specify parser options"},
{Name: "--resolve-plugins-relative-to", Description: "A folder where plugins should be resolved from"},
{Name: "--rulesdir", Description: "Use additional rules from this directory"},
{Name: "--plugin", Description: "Specify plugins"},
{Name: "--rule", Description: "Specify rules"},
{Name: "--fix", Description: "Automatically fix problems"},
{Name: "--fix-dry-run", Description: "Automatically fix problems without saving the changes to the file system"},
{Name: "--fix-type", Description: "Specify the types of fixes to apply"},
{Name: "--ignore-path", Description: "Specify path of ignore file"},
{Name: "--no-ignore", Description: "Disable use of ignore files and patterns"},
{Name: "--ignore-pattern", Description: "Pattern of files to ignore (in addition to those in .eslintignore)"},
{Name: "--stdin", Description: "Lint code provided on <STDIN>"},
{Name: "--stdin-filename", Description: "Specify filename to process STDIN as"},
{Name: "--quiet", Description: "Report errors only"},
{Name: "--max-warnings", Description: "Number of warnings to trigger nonzero exit code"},
{Name: "-o", Description: "Specify file to write report to"},
{Name: "-f", Description: "Use a specific output format"},
{Name: "--color", Description: "Force enabling of color"},
{Name: "--no-color", Description: "Force disabling of color"},
{Name: "--no-inline-config", Description: "Prevent comments from changing config or rules"},
{Name: "--cache", Description: "Only check changed files"},
{Name: "--cache-location", Description: "Path to the cache file or directory"},
{Name: "--cache-strategy", Description: "Strategy to use for detecting changed files"},
{Name: "--init", Description: "Run config initialization wizard"},
{Name: "--env-info", Description: "Output execution environment information"},
{Name: "--debug", Description: "Output debugging information"},
{Name: "-h", Description: "Show help"},
{Name: "-v", Description: "Output the version number"},
{Name: "--print-config", Description: "Print the configuration for the give file"},
},
})
}