@gergoszaszvaradi/eslint-config

1.1.2 • Public • Published

@gergoszaszvaradi/eslint-config

Personal ESLint configuration and rules

Note: This is an all-round eslint config, meaning it works with nodejs applications and web frontend applications

Installation

Install this config package:

npm i -D @gergoszaszvaradi/eslint-config
yarn add -D @gergoszaszvaradi/eslint-config

Usage

Extend your eslint config file with the eslintrc provided by this package.

.eslintrc.json

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

Overriding Rules

You can still override certain rules by defining the rules again in your config file:

.eslintrc.json

{
    // ...
    "rules": {
        "camelCase": "off"
    }
}

Before turning off already defined rules, check the eslint documentation for the benefits of using those rules.

Using it on specific environments

By default this configuration is set to support both node and browser. You can turn off either of these in order to regulate what features are available:

.eslintrc.json

{
    // ...
    "env": {
        // this turns node specific features off.
        "node": false,
        // this turns browser specific features off.
        // E.g. DOM related features will be reported.
        "browser": false,
    }
}

Package Sidebar

Install

npm i @gergoszaszvaradi/eslint-config

Weekly Downloads

0

Version

1.1.2

License

MIT

Unpacked Size

38.7 kB

Total Files

4

Last publish

Collaborators

  • gergoszaszvaradi