Skip to content

[INFRA] Share the eslint configuration #2771

@tbouffard

Description

@tbouffard

bpmn-visualization uses it own dedicated eslint configuration but we have the we have the same need in several repositories.
For demos, we recently experiment xo that also allows shared configuration but we didn't setup it.
Some other repositories that need a linter configuration

The website has its own eslint configuration which initially duplicated from the configuration of this repository.

So, it's time to consider to create one or several shared configurations

We could start by extracting the configuration and create a first shared configuration for TypeScript browser project.

Prerequisites

IMPORTANT: requires to implement #2078 and #2742 first

Prettier configuration

Editor configuration

Notice plugin (license header)

  • it is currently stored in a dedicated configuration file. Investigate if it can be integrated in a shared eslint configuration

Editor configuration

  • a .editorconfig file exists in the repo to provide some styling config for JS/TS and documentation (markdown, adoc, ...)
  • See if it can be shared or removed in favor of prettier/eslint or other configuration
    -Find alternatives for (see below)

Review the configuration of the demo repositories (xo) and evaluate adding new rules

Alternatives for .editorconfig

We may need to introduce linter for markdown and AsciiDoc

Share the configuration

Create a dedicated repository to host the shared configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    choreBuild, CI/CD or repository tasks (issues/PR maintenance, environments, ...)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions