Skip to content

Fully embrace ESLint stylistic with more deterministic rules #30

@alcpereira

Description

@alcpereira

All the repos of webdriverio, that I worked with, relies on ESLint (and some with .editorconfig) to format the files.

While this is a good way to enforce style consistency, there are still some gaps between the IDE formatting fallbacks and the present config.

This could be solved with 3 fixes:

  • Adopt the full set of rules from @stylistic/eslint-plugin with customize() for example (docs)
  • Adopt .editorconfig or other tools in all the repos (out of scope of webdriverio/eslint) for files that cannot be handled by ESLint (JSON, yaml, markdown, etc)
  • Document it in CONTRIBUTING.md of the repos: for example configure your IDE to run ESLint last (after Prettier or Biome for example)

If a maintainer can try a pre-release with a complete set of rules from @stylistic/eslint-plugin to measure the impact and adapt it accordingly 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions