eslint-config-standard-next v12.0.0
eslint-config-standard-next

An opinionated ESLint Shareable Config based on JavaScript Standard Style with ES Next rules support.
Difference from eslint-config-standard
Force semi-colons ;
- "semi" : "error","always"
- "semi-style" : "error"
Allows ES6 trailing commas
Extenstion to eslint-config-standard
- "array-callback-return" : "warn"
- "arrow-body-style" : "error","as-needed"
- "arrow-parens" : "error","as-needed"
- "block-scoped-var" : "warn"
- "class-methods-use-this" : "error"
- "computed-property-spacing" : "error","never"
- "consistent-return" : "error"
- "dot-notation" : "warn"
- "for-direction" : "warn"
- "global-require" : "warn"
- "guard-for-in" : "warn"
- "linebreak-style" : "warn","unix"
- "newline-per-chained-call" : "error",{"ignoreChainWithDepth":3}
- "no-case-declarations" : "warn"
- "no-continue" : "warn"
- "no-duplicate-imports" : "error",{"includeExports":true}
- "no-else-return" : "warn"
- "no-empty-function" : "error"
- "no-eq-null" : "off"
- "no-implicit-coercion" : "warn"
- "no-invalid-this" : "error"
- "no-lonely-if" : "warn"
- "no-loop-func" : "error"
- "no-mixed-requires" : "error",{"grouping":true,"allowCall":true}
- "no-negated-condition" : "warn"
- "no-param-reassign" : "warn",{"props":false}
- "no-script-url" : "error"
- "no-shadow" : "warn",{"builtinGlobals":true,"hoist":"all"}
- "no-undefined" : "off"
- "no-var" : "warn"
- "no-void" : "error"
- "no-warning-comments" : ["warn",{"location":"start","terms":"todo","fixme"}]
- "object-shorthand" : "error","always",{"avoidExplicitReturnArrows":true,"avoidQuotes":true}
- "one-var-declaration-per-line" : "error"
- "operator-assignment" : "warn","always"
- "prefer-arrow-callback" : "error"
- "prefer-const" : "error",{"destructuring":"all"}
- "prefer-destructuring" : "warn"
- "prefer-numeric-literals" : "warn"
- "prefer-rest-params" : "warn"
- "prefer-spread" : "warn"
- "prefer-template" : "error"
- "quote-props" : "error","as-needed"
- "sort-imports" : ["error",{"ignoreCase":true,"ignoreMemberSort":false,"memberSyntaxSortOrder":"none","all","multiple","single"}]
- "switch-colon-spacing" : "error"
Install
Global
npm install -g eslint-config-standard-next eslint-config-standard eslint-plugin-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-nodeLocal
npm install --save-dev eslint-config-standard-next eslint-config-standard eslint-plugin-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-nodeUsage
Shareable configs are designed to work with the extends feature of .eslintrc files.
You can learn more about
Shareable Configs on the
official ESLint website.
To use this shareable config, first install it globally or locally.
Then, add this to your .eslintrc file:
{
"extends": "standard-next"
}Note: We omitted the eslint-config- prefix since it is automatically assumed by ESLint.
You can override settings from the shareable config by adding them directly into your
.eslintrc file.
Version Notice
Starting from 12.0.0 this package use the sematic version to indicate the compatibility to eslint-config-standard package.
i.e. eslint-config-standard-next 12.x is expected to be used with eslint-config-standard 12.x.
Changelog
12.0.0
Using new sematic versioning to match the version of
eslint-config-standard1.1.0
Dependency update to match
eslint-config-standard 12.x, deprecatedexperimentalObjectRestSpreadoption.1.0.0
Updated the peer dependency versions and dropped rule
{"space-before-function-paren":"off"}and{sourceType: 'module'}option.