JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 56145
  • Score
    100M100P100Q150616F
  • License ISC

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

Package Exports

  • eslint-config-esnext/style-guide

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-config-esnext) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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: