Skip to content

Getting Started

First, you need to install golar package.

Terminal window
npm i -D golar

Golar loads golar.config.ts from the current working directory, so start by creating that file.

In the root of your repository create a file named golar.config.ts:

golar.config.ts
import { defineConfig } from 'golar/unstable'
export default defineConfig({})

Next, open the guide for the language you’re using.

You can also register multiple language plugins in the same golar.config.ts file if your project mixes frameworks.

Golar CLI has four modes.

The default mode is recommended for most projects. To run Golar CLI in the default mode, call golar CLI without any command line arguments.

Terminal window
npx golar

This command locates golar.config.ts, loads all language plugins and lint rules, runs linting and then type-checks all project files.

See the mode docs for command-specific behavior and configuration: default mode, lint, typecheck, and tsc.