Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 728 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 728 Bytes

ElementX's Eslint Config

This package provides ElementX's eslint config as an extensible shared config

Install and Setup

Install the library using:

npm i -D eslint @elementx-ai/eslint-config

Usage

Create a eslint.config.js file in the root of the repo you are working on and import the config you wish to use

e.g. using the ts linting rules (additional rules can be added to the array)

// eslint.config.js
import ts from "@elementx-ai/eslint-config/configs/ts.js";

export default [
    ...ts,
    // anything from here will override ts
    {
        rules: {
            "no-unused-vars": "warn"
        }
    }
];