Skip to content

[ESLint] Dogfood the @elastic/eslint-plugin-eui #9243

Closed

Description

@weronikaolejniczak

The purpose of this issue is to use our plugin for the ESLint configuration in packages/eui. The goal is to be able to spot the same types of issues we warn against in our own code.

Details

The point is to install @elastic/eslint-plugin-eui in packages/eui and set it to workspace dependency. Then, use it in eui/packages/eui/.eslintrc.js:

module.exports = {
  extends: [
    // ...
    'plugin:@elastic/eui/recommended',
  ],
  plugins: [
    '@elastic/eui',
  ],
}

Acceptance criteria

  • @elastic/eslint-plugin-eui is installed in packages/eui,
  • our recommended list is extended in packages/eui ESLint configuration,
  • we validate that warnings are reported.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions