Skip to content

templates: add eslint ignore rule for 'src/migrations/*' #12535

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Rot4tion
Copy link
Contributor

What?

Added a new ignore pattern 'src/migrations/*' to the ESLint configuration to exclude migration files from linting.

Why?

The files inside the src/migrations directory are automatically generated by Payload. These files often trigger ESLint warnings such as:

  • Warning: 'payload' is defined but never used.
  • Warning: 'req' is defined but never used.

Ignoring this directory prevents unnecessary and irrelevant lint warnings on auto-generated code.

How?

Added the 'src/migrations/*' pattern to the ESLint ignore configuration to prevent linting of migration files.

 This change helps prevent linting errors from migration scripts, improving the overall development experience.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant