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>
1.5 KiB
1.5 KiB
Disallow commented out tests (no-commented-out-tests)
⚠️ This rule warns in the ✅ recommended
config.
This rule raises a warning about commented out tests. It's similar to no-disabled-tests rule.
Rule details
The rule uses fuzzy matching to do its best to determine what constitutes a
commented out test, checking for a presence of it(, describe(, it.skip(,
etc. in code comments.
The following patterns are considered warnings:
// describe('foo', () => {});
// it('foo', () => {});
// test('foo', () => {});
// describe.skip('foo', () => {});
// it.skip('foo', () => {});
// test.skip('foo', () => {});
// describe['skip']('bar', () => {});
// it['skip']('bar', () => {});
// test['skip']('bar', () => {});
// xdescribe('foo', () => {});
// xit('foo', () => {});
// xtest('foo', () => {});
/*
describe('foo', () => {});
*/
These patterns would not be considered warnings:
describe('foo', () => {});
it('foo', () => {});
test('foo', () => {});
describe.only('bar', () => {});
it.only('bar', () => {});
test.only('bar', () => {});
// foo('bar', () => {});
Limitations
The plugin looks at the literal function names within test code, so will not catch more complex examples of commented out tests, such as:
// const testSkip = test.skip;
// testSkip('skipped test', () => {});
// const myTest = test;
// myTest('does not have function body');