Skip to content

Modernize lint stack and convert to ESM#23

Merged
soulgalore merged 1 commit into
mainfrom
edgedriver-lint-bump
May 20, 2026
Merged

Modernize lint stack and convert to ESM#23
soulgalore merged 1 commit into
mainfrom
edgedriver-lint-bump

Conversation

@soulgalore
Copy link
Copy Markdown
Member

Replace eslint 5 / prettier 1 (2018) with the same flat-config setup
sitespeed.io uses: eslint 10 + eslint-plugin-unicorn + current
prettier/config-prettier/plugin-prettier. The unicorn rules push the
package away from CommonJS, so flip the package to "type": "module" and
rewrite require/module.exports/__dirname with import/export and
import.meta.url. browsertime already imports via
await import('@sitespeed.io/') and reads .default.binPath(),
which still works under the new exports.

Co-authored-by: Claude noreply@anthropic.com

  Replace eslint 5 / prettier 1 (2018) with the same flat-config setup
  sitespeed.io uses: eslint 10 + eslint-plugin-unicorn + current
  prettier/config-prettier/plugin-prettier. The unicorn rules push the
  package away from CommonJS, so flip the package to "type": "module" and
  rewrite require/module.exports/__dirname with import/export and
  import.meta.url. browsertime already imports via
  await import('@sitespeed.io/<driver>') and reads .default.binPath(),
  which still works under the new exports.

  Co-authored-by: Claude noreply@anthropic.com
@soulgalore soulgalore merged commit e14f11c into main May 20, 2026
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.

1 participant