1.1.0 • Published 2 years ago

@dopustim/eslint-config v1.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
2 years ago

@dopustim/eslint-config

Configuration file for ESLint

NPM

Features

  • Provide Errors and Warnings
  • 4 spaces for indentation (warning)
  • 90 symbols per line (warning)
  • Unix linebreaks (warning)

Usage

Install @dopustim/eslint-config package via NPM:

npm install -D eslint @dopustim/eslint-config

Extend this config in your .eslintrc.json:

{
    "extends": "@dopustim/eslint-config"
}

Or use your package.json:

"eslintConfig": {
    "extends": "@dopustim/eslint-config"
}

You can also set environment and reassign any rule for your needs:

{
    "extends": "@dopustim/eslint-config",
    "env": {
        "browser": true,
        "es2020": true,
        "node": true
    },
    "parserOptions": {
        "sourceType": "module",
        "ecmaVersion": 2020
    },
    "rules": {
        "max-len": [ 1, { "code": 100 } ]
    }
}

About

Visit the ESLint website to find out all rules and descriptions.