config.diagnostics.prettier
Prettier configuration is used to be provided for korob format
& korob lint
commands. It configures the diagnostics checking steps:
korob.config.ts
import { defineConfig } from "korob";
export default defineConfig({
diagnostics: {
// options for the format & lint commands
prettier: {
endOfLine: "lf",
jsxSingleQuote: true,
useTabs: false,
},
},
});
Default values
Default config
prettier: {
tabWidth: 2,
semi: true,
}
Configuration reference
All of the configuration options are identical to the prettier ones as korob is a wrapper around it.
⚠️
Documentation for all of the options can be found in prettier docs (opens in a new tab).