Skip to content

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