@onefinity/eslint-config

2.0.1 • Public • Published

Onefinity ESLint Config

Generic base configuration for ESLint supporting setups using ESNext, Node.js, React, and TypeScript. Combine it with @onefinity/stylelint-config to lint CSS as well.

Available configurations

The following configurations are available and can be extended in a project-specific ESLint configuration. Note that it's possible to mix and match configurations.

Usage

Installation

Install the package using the following command.

$ npm install --save-dev @onefinity/eslint-config

Extending

Use the extends feature provided by ESLint in the project-specific .eslintrc configuration file.

{
    "extends": [
        "@onefinity/eslint-config/esnext"
    ]
}

Scripts

The following scripts can be added to package.json to make it easier to start the linter.

{
    "scripts": {
        "lint:js": "eslint \"source/**/*.js\" \"*.js\"",
        "lint:fix": "npm run lint:js -- --fix"
    }
}

/@onefinity/eslint-config/

    Package Sidebar

    Install

    npm i @onefinity/eslint-config

    Weekly Downloads

    2

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    33.9 kB

    Total Files

    14

    Last publish

    Collaborators

    • cascornelissen