Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Update to ESLint 5 #1025

Merged
merged 1 commit into from
Aug 19, 2018
Merged

Update to ESLint 5 #1025

merged 1 commit into from
Aug 19, 2018

Conversation

edmorley
Copy link
Member

  • Updates all dependencies to the latest available to pick up any ESLint 5 compatibility fixes (in the case of babel-eslint and eslint-plugin-vue this meant beta versions, so for those the tilde range has been changed to exact, pending the final versions).
  • Raises ecmaVersion to 2018.
  • Removes all custom ecmaFeatures options since:
    • impliedStrict is redundant when using sourceType: 'module'
    • none of the others are recognised by latest ESLint/babel-eslint

Migration guide:
https://eslint.org/docs/user-guide/migrating-to-5.0.0

Docs to help with reviewing the parserOptions changes:
https://eslint.org/docs/user-guide/configuring#specifying-parser-options
https://github.com/babel/babel-eslint#configuration
https://eslint.org/docs/rules/strict#rule-details (for impliedStrict)

Fixes #383.
Closes #963.
Closes #1001.

@edmorley edmorley self-assigned this Aug 15, 2018
@edmorley edmorley added this to the v9 milestone Aug 15, 2018
@edmorley edmorley requested a review from eliperelman August 15, 2018 19:25
Copy link
Member

@eliperelman eliperelman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice.

* Updates all dependencies to the latest available to pick up any
  ESLint 5 compatibility fixes (in the case of `babel-eslint` and
  `eslint-plugin-vue` this meant beta versions, so for those the
  tilde range has been changed to exact, pending the final versions).
* Raises `ecmaVersion` to `2018`.
* Removes all custom `ecmaFeatures` options since:
  - `impliedStrict` is redundant when using `sourceType: 'module'`
  - none of the others are recognised by latest ESLint/`babel-eslint`

Migration guide:
https://eslint.org/docs/user-guide/migrating-to-5.0.0

Docs to help with reviewing the `parserOptions` changes:
https://eslint.org/docs/user-guide/configuring#specifying-parser-options
https://github.com/babel/babel-eslint#configuration
https://eslint.org/docs/rules/strict#rule-details (for `impliedStrict`)

Fixes #383.
Closes #963.
Closes #1001.
@edmorley edmorley merged commit 9ceebe7 into neutrinojs:master Aug 19, 2018
@edmorley edmorley deleted the eslint-5 branch August 19, 2018 15:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

See if any of the @neutrinojs/eslint defaults are unnecessary
2 participants