Files
formipay/node_modules/npm-package-json-lint/CONTRIBUTING.md
dwindown e8fbfb14c1 fix: prevent asset conflicts between React and Grid.js versions
Add coexistence checks to all enqueue methods to prevent loading
both React and Grid.js assets simultaneously.

Changes:
- ReactAdmin.php: Only enqueue React assets when ?react=1
- Init.php: Skip Grid.js when React active on admin pages
- Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0
- Customer.php, Product.php, License.php: Add coexistence checks

Now the toggle between Classic and React versions works correctly.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-18 17:02:14 +07:00

77 lines
1.7 KiB
Markdown

# Contributing
## System Dependencies
### Node
* [Node.js](https://nodejs.org/) - v14.0.0+
* [npm](https://www.npmjs.com/) - v6.0.0+
## Install project dependencies
### Code
* Fork and clone the npm-package-json-lint repo
### Install project dependencies
`npm install`
This installs dependencies from `package.json`.
### Running the module Locally
Run `node src/cli.js`
## npm scripts
`npm run lint`
This will:
* run linters
`npm test`
This will:
* run all of the jest tests
## Code guidelines
### JS
npm-package-json-lint utilizes ESLint to enforce JavaScript standards. Please see the `.eslintrc.json` file for ESLint config.
* [eslint](https://github.com/eslint/eslint)
#### Checking coding style
Run `npm run lint` before committing to ensure your changes follow our coding standards.
## Versioning
Please use the following commands to increment the package's version numbers
EX: Assume current version is 0.0.1
`npm version patch --no-git-tag-version`
If you run this command the version will increase the patch number (ie 0.0.2)
`npm version minor --no-git-tag-version`
If you run this command the version will increase the minor number (ie 0.1.0)
`npm version major --no-git-tag-version`
If you run this command the version will increase the major number (ie 1.0.0)
## EditorConfig
EditorConfig helps maintain consistent file formatting between different editors and developers. Please [install the plugin for you editor of choice](https://editorconfig.org/#download). Please see the `.editorconfig` file at the root of this repo to see what settings are enforced.
## License
Contributions to npm-package-json-lint are subject to the [MIT License](https://github.com/tclindner/npm-package-json-lint/blob/master/LICENSE).