Skip to content

javascript MegaLinter Flavor

Docker Image Size (tag) Docker Pulls

Description

Optimized for JAVASCRIPT or TYPESCRIPT based projects

Usage

  • GitHub Action: megalinter/megalinter/flavors/javascript@v6-alpha
  • Docker image: megalinter/megalinter-javascript:v6-alpha
  • mega-linter-runner: mega-linter-runner --flavor javascript

Embedded linters

Languages

Language Linter Configuration key Additional
BASH bash-exec BASH_EXEC
shellcheck BASH_SHELLCHECK GitHub stars
shfmt BASH_SHFMT GitHub stars formatter
COFFEE coffeelint COFFEE_COFFEELINT GitHub stars
GROOVY npm-groovy-lint GROOVY_NPM_GROOVY_LINT GitHub stars autofix sarif
JAVASCRIPT eslint JAVASCRIPT_ES GitHub stars autofix sarif
standard JAVASCRIPT_STANDARD GitHub stars autofix
prettier JAVASCRIPT_PRETTIER GitHub stars formatter
JSX eslint JSX_ESLINT autofix sarif
KOTLIN ktlint KOTLIN_KTLINT GitHub stars autofix sarif
SQL sql-lint SQL_SQL_LINT GitHub stars
sqlfluff SQL_SQLFLUFF GitHub stars
TSX eslint TSX_ESLINT autofix sarif
TYPESCRIPT eslint TYPESCRIPT_ES GitHub stars autofix sarif
standard TYPESCRIPT_STANDARD GitHub stars autofix
prettier TYPESCRIPT_PRETTIER GitHub stars formatter

Formats

Format Linter Configuration key Additional
CSS stylelint CSS_STYLELINT GitHub stars autofix
scss-lint CSS_SCSS_LINT GitHub stars
ENV dotenv-linter ENV_DOTENV_LINTER GitHub stars autofix
GRAPHQL graphql-schema-linter GRAPHQL_GRAPHQL_SCHEMA_LINTER GitHub stars
HTML htmlhint HTML_HTMLHINT GitHub stars
JSON jsonlint JSON_JSONLINT GitHub stars
eslint-plugin-jsonc JSON_ESLINT_PLUGIN_JSONC GitHub stars autofix sarif
v8r JSON_V8R GitHub stars
prettier JSON_PRETTIER GitHub stars formatter
MARKDOWN markdownlint MARKDOWN_MARKDOWNLINT GitHub stars formatter
markdown-link-check MARKDOWN_MARKDOWN_LINK_CHECK GitHub stars
markdown-table-formatter MARKDOWN_MARKDOWN_TABLE_FORMATTER GitHub stars formatter
PROTOBUF protolint PROTOBUF_PROTOLINT GitHub stars autofix
XML xmllint XML_XMLLINT
YAML prettier YAML_PRETTIER GitHub stars formatter
yamllint YAML_YAMLLINT GitHub stars
v8r YAML_V8R GitHub stars

Tooling formats

Tooling format Linter Configuration key Additional
ACTION actionlint ACTION_ACTIONLINT GitHub stars
ANSIBLE ansible-lint ANSIBLE_ANSIBLE_LINT GitHub stars
DOCKERFILE hadolint DOCKERFILE_HADOLINT GitHub stars sarif
EDITORCONFIG editorconfig-checker EDITORCONFIG_EDITORCONFIG_CHECKER GitHub stars
KUBERNETES kubeval KUBERNETES_KUBEVAL GitHub stars
kubeconform KUBERNETES_KUBECONFORM GitHub stars
OPENAPI spectral OPENAPI_SPECTRAL GitHub stars
SNAKEMAKE snakemake SNAKEMAKE_LINT GitHub stars
TEKTON tekton-lint TEKTON_TEKTON_LINT GitHub stars

Other

Code quality checker Linter Configuration key Additional
COPYPASTE jscpd COPYPASTE_JSCPD GitHub stars
git_diff REPOSITORY_GIT_DIFF GitHub stars
gitleaks REPOSITORY_GITLEAKS GitHub stars sarif
goodcheck REPOSITORY_GOODCHECK GitHub stars
secretlint REPOSITORY_SECRETLINT GitHub stars sarif
semgrep REPOSITORY_SEMGREP GitHub stars sarif
trivy REPOSITORY_TRIVY GitHub stars sarif
SPELL misspell SPELL_MISSPELL GitHub stars autofix
cspell SPELL_CSPELL GitHub stars