car·di·nal /ˈkärd(ə)nl/
adjective
- of the greatest importance; fundamental.
First you need to install Cardinal:
npm i -D @remark/cardinal
Once that finishes, you can configure your desired scripts:
{
"scripts": {
+ "format": "remark-cardinal format"
}
}
build
builds your code.
Currently only supports TypeScript (via the --typescript
flag).
--typescript [<tsc_flag>...]
- Builds your code using the TypeScript compiler. May optionally take any number of TypeScript compiler options.
format
formats your code using Prettier.
lint
lints your code using ESLint.
--config <path>
- Specify a custom Prettier configuration file.--ignore-path <path>
- Path to a file containing patterns that describe files to ignore. By default, Cardinal respects the project's.gitignore
.--no-write
- Disables Prettier's--write
option.