@simdo/eslint-config

1.1.0 • Public • Published

SIMDO ESLint Configuration

Getting Started

Install

Add our ESLint configuration and the Prettier plugin to your project:

Using Yarn

yarn add -D @simdo/eslint-config eslint-plugin-prettier prettier

Setup

.eslintrc

Create a .eslintrc file in the root of your project with the following content:

{
    "root": true,
    "extends": [
        "@simdo/eslint-config"
    ]
}

And be sure to check out our other ESLint configurations if your project uses other technologies like React, for example:

Note: Always import "@simdo/eslint-config" last to override any conflicting rules.

{
    ...
    "extends": [
        "@simdo/eslint-config-react",
        "@simdo/eslint-config"
    ]
}

.prettierrc

Create a .prettierrc file in the root of your project with our compatible Prettier configuration:

{
    "printWidth": 110,
    "tabWidth": 4,
    "singleQuote": true,
    "quoteProps": "consistent",
    "jsxSingleQuote": true,
    "trailingComma": "all"
}

package.json

Add the following scripts to easily validate your code:

{
    "scripts": {
        ...
        "lint": "eslint --ext ts,tsx src scripts",
        "lint-fix": "yarn lint --fix",
        ...
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @simdo/eslint-config

Weekly Downloads

1

Version

1.1.0

License

UNLICENSED

Unpacked Size

7.45 kB

Total Files

10

Last publish

Collaborators

  • simdo