KScript docs
EN

Lint standards

Seeing the result

kscript check --print-config prints the settings that apply to a file or folder after its standards and kscript.json are combined, and which layer set each one:

Text
$ kscript check --print-config
Project: /work/app/kscript.json

Standards (applied in this order; later ones win, and kscript.json wins over all of them):
  kscript:recommended
      The default. Style rules (KS6xxx, such as KS6001 early returns) are warnings, and files use the formatter's standard layout.
  ../shared/acme/kscript-standard.json  "acme"  extends kscript:recommended
      Acme house style.

  lint.warnings_as_errors                true      ../shared/acme/kscript-standard.json
  lint.rules.KS3003                    off       kscript.json
  lint.rules.KS6*                      error     ../shared/acme/kscript-standard.json
  format.indent                        4         ../shared/acme/kscript-standard.json
  format.print_width                    100       kscript.json
  format.max_blank_lines                 2         ../shared/acme/kscript-standard.json
  format.end_of_line                     auto      kscript:recommended
  ...