Getting Started
Installation
Section titled “Installation”First, you need to install golar package.
npm i -D golarpnpm add -D golaryarn add -D golarGolar 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:
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.
Language Guides
Section titled “Language Guides”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.
npx golarpnpm golaryarn golarThis 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.