Skip to content

Enable linting and formatting in examples #1981

@maribethb

Description

@maribethb

Check for duplicates

  • I have searched for similar issues before opening a new one.

Component

all examples

Problem

Current behavior: examples are not linted, nothing is formatted
After #1946: examples are excluded from linting and formatting

We want to lint and format examples as well

Request

  1. Remove examples from the ignore list in eslint.config.js
  2. Remove examples from the ignore list in .prettierignore
  3. Potentially need to add new files to the ignore list(s) if there are any files in the examples that shouldn't be formatted. Commit all changes so far
  4. Run npm run lint:fix and commit the changes.
  5. Run npm run format and commit the changes.
  6. Run npm run lint, manually fix any remaining lint errors or warnings, and commit the changes.

It is important that steps 4, 5, and 6 each be committed separately, as this will make reviewing and rebasing the PR easier.

Note that some examples specify their own lint command and I'm not sure how this will interact with the new flat config. If you attempt this process and find issues with linting any of the examples, let us know in the comments!

Alternatives considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions