plotly / plotly/plotly.py

to_html produces js which doesn't pass eslint-config-standard

Open
#5,034 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
16h 26m
Merged PRs (30d)
21

Description

It would be good to know what JS linting is correct for the output of a Figure.to_html (full_html=False) function.

Currently using eslint-config-standard and the html plugin we get "2025 problems (2025 errors, 0 warnings)" per div.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the eslint-config-standard and HTML-plugin errors on JavaScript emitted by Figure.to_html with full_html=False. Trace the generated output and determine the appropriate linting expectation; done means the expected linting behavior is documented or the reported errors are addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, javascript, python
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.