7.0.1 • Published 1 year ago

@pangolinjs/eslint-config v7.0.1

Weekly downloads
187
License
Hippocratic-2.1
Repository
github
Last release
1 year ago

Pangolin.js ESLint Config

Shareable ESLint configuration for Pangolin.js based on eslint-config-standard.

Installation

Install the configuration and all peer dependencies with one command:

npm install --save-dev @pangolinjs/eslint-config eslint eslint-config-standard

Usage

Create a config

Create an ESLint configuration either as a JSON or a JavaScript file:

.eslintrc.json

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

.eslintrc.js

module.exports = {
  extends: [
    '@pangolinjs/eslint-config',
  ],
}

Modifying config and rules

Overwrite rules from the default config:

JSON configuration file

{
  "extends": [
    "@pangolinjs/eslint-config"
  ],
  "rules": {
    "no-warning-comments": "error"
  }
}

JavaScript configuration file

module.exports = {
  extends: [
    '@pangolinjs/eslint-config',
  ],
  rules: {
    'no-warning-comments': 'error',
  },
}

ESLint has an extensive list of rules. Additional rules are provided by the following plugins:

7.0.1

1 year ago

7.0.0

1 year ago

6.0.0

2 years ago

5.3.1

3 years ago

5.3.0

3 years ago

5.2.1

3 years ago

5.2.0

3 years ago

5.1.0

3 years ago

5.0.0

4 years ago

4.0.2

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.2.0

4 years ago

3.1.3

4 years ago

3.1.2

4 years ago

3.1.1

5 years ago

3.1.0

5 years ago