Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-define-config

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-define-config

Provide a defineConfig function for .eslintrc.js files

  • 1.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
80K
increased by4.88%
Maintainers
1
Weekly downloads
 
Created
Source

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 --save-dev eslint eslint-define-config
# or
yarn add --dev eslint eslint-define-config

Usage

.eslintrc.js

// @ts-check
const { defineConfig } = require('eslint-define-config');

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

Why?

Improve your eslint configuration experience with:

  • auto-suggestions
  • type checking (Use // @ts-check at the first line in your .eslintrc.js)
  • documentation
  • deprecation warnings

image

Credits

Keywords

FAQs

Package last updated on 26 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc