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>
2.1 KiB
2.1 KiB
stylelint-config-recommended-scss
The recommended shareable SCSS config for stylelint.
This config:
- extends the
stylelint-config-recommendedshared config and configures its rules for SCSS - bundles the
stylelint-scssplugin pack and turns on its rules that check for possible errors - bundles the
postcss-scsscustom syntax and configures it
This config is extended by the stylelint-config-standard-scss shared config. That config is better suited to most users as it also turns on the stylistic rules in the stylelint-scss plugin pack.
To see the rules that this config uses, please read the config itself.
Installation
npm install --save-dev stylelint-config-recommended-scss
Usage
Set your stylelint config to:
{
"extends": "stylelint-config-recommended-scss"
}
Extending the config
Simply add a "rules" key to your config, then add your overrides and additions there.
For example, to turn off the scss/at-if-no-null rule:
{
"extends": "stylelint-config-recommended-scss",
"rules": {
"scss/at-if-no-null": null
}
}