2.1.0 • Published 1 year ago

@repeatgg/eslint-config v2.1.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Repeat Eslint Configuration

A reusable, adaptive eslint configuration for Repeat.gg.

Automatically detects which configurations are required based on the contents of package.json, including:

  • Which parser to use,
  • What parserOptions to set
  • Which eslint-plugin-* packages to use
  • Which eslint-config-* packages to use
  • Which rules to set
  • Which import/resolver settings to use
  • Which overrides are appropriate

Debug Your Configuration

run

npm run build
npx eslint --inspect-config

Installation

npm i -D eslint-config-repeat

Usage

.eslintrc.js setup:

module.exports = {
  extends: '@repeatgg',
};

.eslintrc.json setup:

{
  "extends": "@repeatgg",
};

package.json setup:

{
  ...
  "eslintConfig": {
    "extends": "@repeatgg"
  }
  ...
}