Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor everything to ES Modules #1626

Merged
merged 10 commits into from May 13, 2021
Merged

Refactor everything to ES Modules #1626

merged 10 commits into from May 13, 2021

Conversation

FloEdelmann
Copy link
Member

@FloEdelmann FloEdelmann commented Dec 8, 2020

ECMAScript Modules (ESM) support first appeared without a command-line flag in Node.js v14: https://nodejs.org/docs/latest-v14.x/api/esm.html

In Node, import does not work with .json files (without another command-line flag), that's why in #1623 I replaced them and in #1625 implemented a workaround.

To do in this PR

To do after this is merged

  • Drop esm dependency from package.json
  • Enable import/no-duplicates rule
  • Enable import/order rule
  • Enable import/newline-after-import rule
  • Enable import/first rule
  • Enable import/exports-last rule
  • Replace unicorn/import-style configuration with no-restricted-imports
  • Remove explicit disabling of unicorn/prefer-node-protocol rule once Support node: protocol unjs/jiti#30 is fixed

@FloEdelmann FloEdelmann added the refactoring Improves code quality. label Dec 8, 2020
@FloEdelmann FloEdelmann temporarily deployed to open-fixture-library-pr-1626 December 8, 2020 16:50 Inactive
@FloEdelmann FloEdelmann temporarily deployed to open-fixture-library-pr-1626 December 11, 2020 16:14 Inactive
@FloEdelmann FloEdelmann temporarily deployed to open-fixture-library-pr-1626 December 11, 2020 16:38 Inactive
@FloEdelmann FloEdelmann marked this pull request as draft December 11, 2020 18:05
@github-actions

This comment has been minimized.

@FloEdelmann FloEdelmann temporarily deployed to open-fixture-library-pr-1626 May 13, 2021 21:09 Inactive
to ensures the correct decodings of percent-encoded characters
and cross-platform valid absolute path string
@FloEdelmann FloEdelmann temporarily deployed to open-fixture-library-pr-1626 May 13, 2021 22:27 Inactive
@github-actions

This comment has been minimized.

@FloEdelmann FloEdelmann marked this pull request as ready for review May 13, 2021 22:40
@FloEdelmann FloEdelmann merged commit a1a55e0 into master May 13, 2021
@FloEdelmann FloEdelmann deleted the esm branch May 13, 2021 22:46
FloEdelmann added a commit that referenced this pull request May 13, 2021
@FloEdelmann FloEdelmann restored the esm branch May 14, 2021 08:14
@FloEdelmann FloEdelmann temporarily deployed to open-fixture-library-pr-1929 May 14, 2021 08:16 Inactive
@FloEdelmann FloEdelmann deleted the esm branch May 14, 2021 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Improves code quality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant