Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Update to eslint 5 #15

Merged
merged 10 commits into from
Aug 8, 2018
Merged

Update to eslint 5 #15

merged 10 commits into from
Aug 8, 2018

Conversation

jackw
Copy link
Contributor

@jackw jackw commented Aug 7, 2018

This PR bumps all dependencies bringing eslint up to version 5. It removes the need for deprecated.js as eslint-find-rules now skips deprecated rules.

I've set the majority of these new rules to their defaults but feel free to chip in with suggestions regarding the use of these new rules in line with our style guide.

Deprecated rules have been removed from the config files.

New rules introduced:

Deprecated rules:

Jack Westbrook added 6 commits August 7, 2018 12:02
@jackw jackw self-assigned this Aug 7, 2018
Copy link
Contributor

@camilleriluke camilleriluke left a comment

Choose a reason for hiding this comment

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

Nice one @jackw 👏

Requesting one small update:

  • Bump up the major version of this module since this will introduce a couple of "braking changes".

Copy link
Contributor

@leventebalogh leventebalogh left a comment

Choose a reason for hiding this comment

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

I actually like some of the new rules, nice one! 🎉

@@ -1,5 +1,8 @@
module.exports = {
rules: {
'for-direction': 0,
'getter-return': 0,
'no-async-promise-executor': 2,
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't it be 0 in the turned-off mode?

blankLine: 'any',
prev: ['const', 'let', 'var'],
next: ['const', 'let', 'var']
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I would probably add { blankLine: "always", prev: "*", next: "return" } as well.

@jackw jackw merged commit 2708310 into master Aug 8, 2018
@jackw jackw deleted the update-to-eslint5 branch August 8, 2018 12:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants