JSPM

  • Created
  • Published
  • Downloads 120552
  • Score
    100M100P100Q22717F
  • License MIT

Provide a defineConfig function for .eslintrc.js files

Package Exports

  • eslint-define-config

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-define-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

NPM package Downloads Build Status License: MIT Code Style: Prettier

eslint-define-config

Provide a defineConfig function for .eslintrc.js files.

Installation

# add eslint and eslint-define-config to project’s dev dependencies
npm install --dev eslint eslint-define-config
# or
yarn add --dev eslint eslint-define-config

Usage

.eslintrc.js

const { defineConfig } = require('eslint-define-config');

module.exports = defineConfig({
  root: true,
  rules: {
    // rules...
  }
});

Why?

Improve your eslint configuration experience with:

  • auto-suggestions
  • type checking
  • documentation
  • deprecation warnings

image

Credits