Skip to content

erkoware/typescript-style

Repository files navigation

erkoware Formatting and Lint Rules

This repository contains the formatting and lint rules used by erkoware.

Usage

ESLint

Install the package

npm install --save-dev @erkoware/eslint-config-ts

Chose the lint config you want to use.

Config Description
recommended Basic rules applicabel to all projects
foalRecommended Recommende rules for foal projects
foalStrict Strict rules for foal projects

And at it to your eslint.config.js file like that.

// @ts-check
import erkowareTSeslint from '@erkoware/eslint-config-ts';

export default erkowareTSeslint.configs.foalStrict

Extending

To extend/override a config.

// @ts-check
import erkowareTSeslint from '@erkoware/eslint-config-ts';

export default [
    ...erkowareTSeslint.configs.foalStrict,
    {
        /* 
            config goes here
        */
    }
]