New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-esnext

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-esnext

Pluggable eslint config for ECMAScript Next that you can import, extend and override

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11K
decreased by-77.31%
Maintainers
1
Weekly downloads
 
Created
Source

Pluggable ESLint config for ECMAScript Next that you can import, extend and override

Usage

In your js project directory:

npm install --save-dev eslint-config-esnext

And in your .eslintrc.yaml:

---
  extends:
    - esnext
    - esnext/style-guide #optional

Alternatively, in your .eslintrc.js or .eslintrc.json:

{
  "extends": ["esnext", "esnext/style-guide"]
}

To add a git-hook to your commits, consider using husky

npm install --save-dev husky

And in your package.json:

  "scripts": {
    "precommit": "eslint ."
  }

safety checks and best practices supporting commonly used ESNext features with a bias toward code concision / brevity
  env:
    es6: true

enables es6 features

  parser: babel-eslint

enables parsing all babel supported code

  parserOptions:
    ecmaVersion: 7
    sourceType: module
    ecmaFeatures:
      impliedStrict: true
      modules: true
      experimentalObjectRestSpread: true

allows es2015 modules and es2016 object rest and spread to be parsed, and applies strict mode to all js code

  extends: eslint:recommended

includes the following rules:

  rules:

selected from here, configured to:


style-guide: for consistency, readability and more brevity
---
  plugins:
    - babel

provides some alternatives to standard rules that are better compatible with babel-supported code

  rules:

selected from here, configured to:

Keywords

FAQs

Package last updated on 19 Jul 2016

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