Skip to content

Migrate to eslint-plugin-node#58

Merged
whymarrh merged 2 commits intomasterfrom
eslint-plugin-node
Oct 20, 2020
Merged

Migrate to eslint-plugin-node#58
whymarrh merged 2 commits intomasterfrom
eslint-plugin-node

Conversation

@whymarrh
Copy link
Copy Markdown
Contributor

Refs #46

This change disables deprecated core Node.js/CommonJS rules in favour of rules from eslint-plugin-node.

From the docs:[1]

The ten Node.js/CommonJS rules in core have been deprecated and moved to the eslint-plugin-node plugin.

All of the available eslint-plugin-node rules have been enabled.

@whymarrh whymarrh force-pushed the eslint-plugin-node branch from 62023ed to b1f7e66 Compare August 20, 2020 15:56
@whymarrh whymarrh mentioned this pull request Aug 20, 2020
3 tasks
@whymarrh whymarrh force-pushed the eslint-plugin-node branch from b1f7e66 to 9f667a0 Compare August 20, 2020 16:06
This change disables deprecated core Node.js/CommonJS rules in favour of rules
from eslint-plugin-node.

From the docs: [1]

> The ten Node.js/CommonJS rules in core have been deprecated and moved to the eslint-plugin-node plugin.

  [1]:https://eslint.org/docs/user-guide/migrating-to-7.0.0#deprecate-node-rules

All of the available eslint-plugin-node rules have been enabled.
@whymarrh whymarrh force-pushed the eslint-plugin-node branch from 9f667a0 to 6942063 Compare August 20, 2020 16:44
This was referenced Aug 20, 2020
@whymarrh whymarrh marked this pull request as ready for review October 9, 2020 13:07
@whymarrh whymarrh requested a review from a team as a code owner October 9, 2020 13:07
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM!

'node/no-process-env': 'error',
'node/no-restricted-import': 'error',
'node/no-restricted-require': 'error',
'node/no-sync': 'error',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This rule was previously disabled explicitly.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This also seems fine to enable.

'node/file-extension-in-import': 'error',
'node/global-require': 'error',
'node/no-mixed-requires': 'error',
'node/no-process-env': 'error',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This rule was previously disabled explicitly.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It seems fine to enable though 🤔 We can disable it in the extension.

@whymarrh whymarrh merged commit c26205e into master Oct 20, 2020
@whymarrh whymarrh deleted the eslint-plugin-node branch October 20, 2020 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants