Skip to content

Conversation

@oppai
Copy link

@oppai oppai commented Jun 3, 2025

📝 Description

This PR removes package.json from the list of files linted by ESLint.

Since package.json is a JSON configuration file—not JavaScript code—linting it with ESLint is non-standard and does not provide meaningful value. Dedicated tools such as npm-package-json-lint or sort-package-json are more appropriate for formatting and validating package.json.

Changes:

  • Removed package.json from the lint and lintfix npm scripts
  • Updated prepublishOnly script to exclude package.json

Motivation:

ESLint is designed for analyzing JavaScript/TypeScript source files. Including package.json could lead to confusion or unnecessary errors. This cleanup improves the clarity and accuracy of the linting process.

@CLAassistant
Copy link

CLAassistant commented Jun 3, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants