- The config is now based on eslint-config-airbnb-base
- Extending with our own overrides
- ESLint 6.8.0
- Test on Node.js latest stable and LTS
- ESLint 6.7.1
- Add rule
'grouped-accessor-pairs': ['error', 'getBeforeSet']
- Add rule
'no-constructor-return': 'error'
- Add rule
'no-dupe-else-if': 'error'
- Add rule
'no-setter-return': 'error'
- Add rule
'prefer-exponentiation-operator': 'error'
- ESLint 6.6.0
- ESLint 6.5.1
- ESLint 6.4.0
- Add rule
'no-import-assign': 'error'
- Add rule
'prefer-regex-literals': 'error'
- Add rule
'default-param-last': 'error'
- Update rule
'prefer-named-capture-group': 'warning'
- ESLint 6.2.2
- Add rule
'function-call-argument-newline': ['error', 'consistent']
- Update
ecmaVersion
to2020
.
- ESLint 6.1.0
- ESLint 6.0.1
- Remove
vi/legacy
config.
- ESLint 5.16.0
- ESLint 5.15.3
- Add rule
'prefer-named-capture-group': 'error'
- ESLint 5.14.1
- Update rule
'no-console': ['warn', { allow: ['warn', 'error'] }]
- ESLint 5.13.0
- Add rule
'no-useless-catch': 'error'
. - Remove rule
'require-jsdoc': 'off'
. - Remove rule
'valid-jsdoc': 'off'
.
- ESLint 5.6.0
- Add rule
'no-misleading-character-class': 'off'
. - Add rule
'require-atomic-updates': 'off'
. - Add rule
'no-async-promise-executor': 'error'
. - Add rule
'require-unicode-regexp': 'off'
.
- ESLint 5.1.0
- Remove deprecated rule
no-catch-shadow
.
- ESLint 5.0.1
- Add rule
'max-classes-per-file': ['error', 1]
. - Add rule
'max-lines-per-function': 'off'
. - Add rule
'prefer-object-spread': 'error'
. - Update rule
'array-element-newline': ['error', 'consistent']
. - Update rule
'camelcase': ['error', { properties: 'always', ignoreDestructuring: false }]
. - Update rule
'no-self-assign': ['error', { props: true }]
. - Update rule
'func-name-matching': ['error', { includeCommonJSModuleExports: false, considerPropertyDescriptor: true }]
. - Update rule
'max-len': ['warn', 100, 4, { ignoreComments: true, ignoreUrls: true, ignoreStrings: true, ignoreTemplateLiterals: true, ignoreRegExpLiterals: true }]
. - Update rule
'prefer-destructuring': ['warn', { array: true, object: true }, { enforceForRenamedProperties: false }]
. - Remove rule
'prefer-reflect': 'off'
.
- ESLint 4.19.1
- ESLint 4.18.2
- ESLint 4.18.1
- Update
ecmaVersion
to2018
.
- ESLint 4.16.0
- ESLint 4.15.0
- Add rule
'implicit-arrow-linebreak': ['error', 'beside']
. - Update rule
'array-callback-return': ['error', { allowImplicit: false }]
.
- ESLint 4.10.0
- ESLint 4.9.0
- Disable rule
require-await
. - Add rule
'multiline-comment-style': ['error', 'separate-lines']
. - Add rule
'lines-between-class-members': ['error', 'always']
.
- Support ES8 syntax
ecmaVersion: 8
.
- ESLint 4.6.1
- Add rule
'function-paren-newline': ['error', 'multiline']
. - Fix conflicting rules
no-return-assign
andno-extra-parens
.
- ESLint 4.5.0
- ESLint 4.3.0
- ESLint 4.2.0
- Add rule
'array-element-newline': 'off'
. - Add rule
'semi-style': ['error', 'last']
. - Add rule
padding-line-between-statements
. - Add rule
'for-direction': 'error'
. - Add rule
'switch-colon-spacing': ['error', { after: true, before: false }]
. - Add rule
'array-bracket-newline': 'off'
. - Add rule
'no-buffer-constructor': 'error'
. - Add rule
'getter-return': 'error'
. - Remove deprecated rule
lines-around-directive
. - Remove deprecated rule
newline-after-var
. - Remove deprecated rule
newline-before-return
.
- ESLint 3.18.0
- Add rule
'no-compare-neg-zero': 'error'
. - Add rule
'nonblock-statement-body-position': 'off'
.
- ESLint 3.16.1
- ESLint 3.15.0
- Add rule
'template-tag-spacing': ['error', 'never']
. - Add rule
'no-multi-assign': 'error'
. - Add rule
'prefer-promise-reject-errors': 'error'
.
- ESLint 3.13.1
- Add rule
prefer-destructuring
.
- Disable rule
capitalized-comments
.
- ESLint 3.12.2
- Add rule
'no-await-in-loop': 'error'
. - Add rule
'capitalized-comments': ['error', 'always']
. - Add rule
'require-await': 'error'
.
- Added missing rules.
- ESLint 3.10.2
- Enable rule
prefer-const
. - Update rule
comma-dangle
toalways-multiline
. - Switch to ECMAScript 2016/ES7.
- ESLint 3.9.1
- ESLint 3.8.1
- Require function names to match the variable which they are assigned to:
'func-name-matching': ['error', { includeCommonJSModuleExports: false }]
. - Added option
asyncArrow: 'ignore'
to thespace-before-function-paren
rule.
- Allow inline comments:
'line-comment-position': 'off'
- Use ES6 arrow parens when needed (per spec) and when braces are used:
'arrow-parens': ['error', 'as-needed', { requireForBlockBody: true }]
- ESLint 3.7.1
- ESLint 3.6.1
- ESLint 3.5.0
- Ignore strings and template literals for max line length:
'max-len': ['error', 80, 4, { ignoreComments: true, ignoreUrls: true, ignoreStrings: true, ignoreTemplateLiterals: true }]
- Allow all object properties on one line:
'object-property-newline': ['error', { allowMultiplePropertiesPerLine: true }]
- Use implied strict mode for node modules:
impliedStrict: true
- Warn when class methods don't use this:
'class-methods-use-this': 'warn'
- ESLint 3.4.0
- Allow ternary operators on multiple lines:
'operator-linebreak': ['error', 'after', { overrides: { '?': 'before', ':': 'before' } }]