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

Migrate to ESM, ESLint 9 and flat config #13

Merged
merged 1 commit into from
Oct 11, 2024
Merged

Migrate to ESM, ESLint 9 and flat config #13

merged 1 commit into from
Oct 11, 2024

Conversation

philippfromme
Copy link
Contributor

@philippfromme philippfromme commented Oct 4, 2024

Updates the library to support eslint@9 (only), as eslint@8 is out of maintainance, as of October, 1st.

Turns this into an ESM only package, so consume it in .mjs files in commonjs projects.


Related to https://github.com/bpmn-io/internal-docs/issues/1042
Related to https://github.com/bpmn-io/internal-docs/issues/883

configs/commercial.js Outdated Show resolved Hide resolved
@philippfromme philippfromme changed the title feat: migrate to flat config Migrate to ESLint 9 and flat config Oct 7, 2024
@philippfromme philippfromme force-pushed the eslint-9 branch 2 times, most recently from 4d806c0 to 4ff7efc Compare October 8, 2024 06:58
@philippfromme philippfromme marked this pull request as ready for review October 8, 2024 07:04
configs/commercial.js Outdated Show resolved Hide resolved
Copy link
Member

@nikku nikku left a comment

Choose a reason for hiding this comment

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

Copy link
Member

@nikku nikku left a comment

Choose a reason for hiding this comment

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

Two small nit-picks, and potential to include bpmn-io/eslint-plugin-bpmn-io@55c414d.

.github/workflows/CI.yml Outdated Show resolved Hide resolved
package.json Outdated
".": "./index.js",
"./configs/apache.js": "./configs/apache.js",
"./configs/commercial.js": "./configs/commercial.js",
"./configs/mit.js": "./configs/mit.js"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"./configs/mit.js": "./configs/mit.js"
"./configs/mit.js": "./configs/mit.js",
"./package.json": "./package.json"

package.json Outdated Show resolved Hide resolved
Related to bpmn-io/internal-docs#1042

BREAKING CHANGE: require eslint@9 (drop support for <= eslint@8)
  BREAKING CHANGE: use from ESM code-base, this module is ESM only
  BREAKING CHANGE: consume as ES module
@nikku nikku changed the title Migrate to ESLint 9 and flat config Migrate to ESM, ESLint 9 and flat config Oct 11, 2024
@nikku
Copy link
Member

nikku commented Oct 11, 2024

Thanks! I'll go ahead and merge + release this.

@nikku nikku merged commit 1b73614 into master Oct 11, 2024
7 checks passed
@nikku nikku deleted the eslint-9 branch October 11, 2024 09:18
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