Skip to content

ravorona/eslint-config

Repository files navigation

Publish

ESLint configuration

Javascript code quality guide using ESLint

Install

Yarn:

yarn add -D \
    @ravorona/eslint-config \
    @eslint/js \
    eslint

NPM:

npm i --save-dev \
    @ravorona/eslint-config \
    @eslint/js \
    eslint

Usage

Set the shared configurations inside your ESLint configuration

import ravorona from '@ravorona/eslint-config'

export default [
    ...ravorona.configs.all,
    {
        rules: {
            'no-unused-vars': 'warn'
        }
    }
]

Formatting rules

Prefer Prettier for formatting rules.