Skip to content

Commit 1742823

Browse files
Update stylelint config to allow :global pseudo-class selector (#42881)
1 parent d2a2ca0 commit 1742823

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

stylelint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* @type {import('stylelint').Config}
3+
*/
14
const config = {
25
extends: 'jetpack-js-tools/stylelint.config.base.mjs',
36
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
import { fileURLToPath } from 'node:url';
22

3+
/**
4+
* @type {import('stylelint').Config}
5+
*/
36
const baseConfig = {
47
extends: fileURLToPath( import.meta.resolve( '@wordpress/stylelint-config/scss' ) ),
8+
rules: {
9+
'selector-pseudo-class-no-unknown': [
10+
true,
11+
{
12+
ignorePseudoClasses: [ 'global' ],
13+
},
14+
],
15+
},
516
};
617

718
export default baseConfig;

0 commit comments

Comments
 (0)