Files
formipay/node_modules/stylelint-config-recommended/README.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

52 lines
1.3 KiB
Markdown

# stylelint-config-recommended
[![NPM version](https://img.shields.io/npm/v/stylelint-config-recommended.svg)](https://www.npmjs.org/package/stylelint-config-recommended) [![Build Status](https://github.com/stylelint/stylelint-config-recommended/workflows/CI/badge.svg)](https://github.com/stylelint/stylelint-config-recommended/actions)
> The recommended shareable config for Stylelint.
It turns on all the [_possible errors_](https://stylelint.io/user-guide/rules/list/#possible-errors) rules within Stylelint.
Use it as is or as a foundation for your own config.
## Installation
```bash
npm install stylelint-config-recommended --save-dev
```
## Usage
Set your `stylelint` config to:
```json
{
"extends": "stylelint-config-recommended"
}
```
### Extending the config
Add a `"rules"` key to your config, then add your overrides and additions there.
For example, to change the `at-rule-no-unknown` rule to use its `ignoreAtRules` option, turn off the `block-no-empty` rule, and add the `unit-allowed-list` rule:
```json
{
"extends": "stylelint-config-recommended",
"rules": {
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": ["extends"]
}
],
"block-no-empty": null,
"unit-allowed-list": ["em", "rem", "s"]
}
}
```
## [Changelog](CHANGELOG.md)
## [License](LICENSE)