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>
31 lines
493 B
Plaintext
31 lines
493 B
Plaintext
{
|
|
"root": true,
|
|
|
|
"extends": "@ljharb",
|
|
|
|
"rules": {
|
|
"array-bracket-newline": 0,
|
|
"complexity": 0,
|
|
"eqeqeq": 1,
|
|
"func-style": [2, "declaration"],
|
|
"max-depth": 0,
|
|
"max-lines-per-function": 0,
|
|
"max-statements": 0,
|
|
"multiline-comment-style": 0,
|
|
"no-negated-condition": 1,
|
|
"no-param-reassign": 1,
|
|
"no-lonely-if": 1,
|
|
"no-shadow": 1,
|
|
"no-template-curly-in-string": 0,
|
|
},
|
|
|
|
"overrides": [
|
|
{
|
|
"files": "example/**",
|
|
"rules": {
|
|
"no-console": 0,
|
|
},
|
|
},
|
|
],
|
|
}
|