kscript.json
Keys are snake_case. An old key is an error that names the new one.
| Before | Now |
|---|---|
lint.warningsAsErrors |
lint.warnings_as_errors |
format.tabWidth, format.printWidth |
format.tab_width, format.print_width |
format.maxBlankLines, format.endOfLine |
format.max_blank_lines, format.end_of_line |
format.rules.statementPerLine, tidyTags, wrapAttributes |
format.rules.statement_per_line, tidy_tags, wrap_attributes |
format.rules.trimTrailingWhitespace, collapseBlankLines, finalNewline |
format.rules.trim_trailing_whitespace, collapse_blank_lines, final_newline |
format.rules.braceStyle, wrapStrings, wrapChains, wrapBodies, wrapComments |
format.rules.brace_style, wrap_strings, wrap_chains, wrap_bodies, wrap_comments |
make.format |
make.syntax |
The config section holds your app's own settings now, and nothing in it says which files to load. config.files is an error that says where each of its files goes:
| Before | Now |
|---|---|
"config": { "files": ["config/config.kscript"] } |
config.kscript beside kscript.json, which is read on its own. Its configure(environment) is called as before |
".env", ".env?" in config.files |
nothing: .env and .env.<env> are read on their own, for @env() |
config/config.yaml |
the values in kscript.json's "config" section, and kscript.<env>.json for one environment's |
config.root, config.prefix, config.required, config.user, paths.config |
gone. app.user_config keeps settings in the user's own folder |
$config->sources() lists the files that were read, so you can check that your config is loaded.