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

Remove temporary x-pack/legacy/plugins/canvas eslint overrides #49558

Closed
spalger opened this issue Oct 28, 2019 · 3 comments
Closed

Remove temporary x-pack/legacy/plugins/canvas eslint overrides #49558

spalger opened this issue Oct 28, 2019 · 3 comments
Assignees
Labels
chore Feature:Canvas Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas

Comments

@spalger
Copy link
Contributor

spalger commented Oct 28, 2019

In order to move forward with #49244 we needed to disable some rules in x-pack/legacy/plugins/canvas. We need to remove the related overrides and get the package passing these rules pretty soon.

// .eslintrc.js
{
  files: ['x-pack/legacy/plugins/canvas/**/*.{js,ts,tsx}'],
  rules: {
    'react-hooks/exhaustive-deps': 'off',
    'jsx-a11y/click-events-have-key-events': 'off',
  },
},
@spalger spalger added the chore label Oct 28, 2019
@timroes timroes added the Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas label Nov 18, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-canvas (Team:Canvas)

@poffdeluxe
Copy link
Contributor

Only the jsx-a11y/click-events-have-key-events issues currently remain.

Currently three problem areas:

/Users/poffdeluxe/Dev/kibana/x-pack/plugins/canvas/public/components/autocomplete/autocomplete.js
  231:23  warning  Visible, non-interactive elements with click handlers must have at least one keyboard listener  jsx-a11y/click-events-have-key-events

/Users/poffdeluxe/Dev/kibana/x-pack/plugins/canvas/public/components/element_content/invalid_element_type.js
  17:3  warning  Visible, non-interactive elements with click handlers must have at least one keyboard listener  jsx-a11y/click-events-have-key-events

/Users/poffdeluxe/Dev/kibana/x-pack/plugins/canvas/public/components/element_content/invalid_expression.js
  17:3  warning  Visible, non-interactive elements with click handlers must have at least one keyboard listener  jsx-a11y/click-events-have-key-events

✖ 3 problems (0 errors, 3 warnings)

@ThomThomson
Copy link
Contributor

Closing this as it was mostly completed.

@ThomThomson ThomThomson closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Feature:Canvas Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas
Projects
None yet
Development

No branches or pull requests

5 participants