0.3.0 • Published 1 year ago

@erkoware/eslint-config-ts v0.3.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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.

ConfigDescription
recommendedBasic rules applicabel to all projects
foalRecommendedRecommende rules for foal projects
foalStrictStrict 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
        */
    }
]