Skip to content

opp100/eslint-config

Repository files navigation

eslint-config

The Preferred eslint rules for TypeScript.

Installation

npm i @opp100/eslint-config

Usage

In .eslintrc.js

module.exports = {
    extends: ['@opp100/eslint-config/ts-react'],
    parser: '@typescript-eslint/parser',
    plugins: ['@typescript-eslint'],
    ignorePatterns: ['vite.*.ts', '**/dist/*', '.eslintrc.js'],
    env: {
        browser: true,
        node: true,
    }
    // ...
};