Skip to content

Commit 001d755

Browse files
committed
fix
1 parent b3fd824 commit 001d755

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

docs/rules/no-invalid-css-declaration.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ The following code
2424
#$?#body { remove: true; }
2525
```
2626

27-
should be reported as:
28-
29-
```shell
30-
2:11 Unknown property `remove`
31-
```
27+
should not be reported
3228

3329
## Incorrect examples
3430

src/rules/no-invalid-css-declaration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ export default defineRule({
3737
return {
3838
Declaration: (node: DeclarationPlain) => {
3939
// special case: `remove` property
40-
if (node.property === REMOVE_VALUE) {
40+
if (node.property === REMOVE_PROPERTY) {
4141
// its value should be `true`
4242
if (
4343
node.value?.type !== 'Value'
4444
|| node.value?.children.length !== 1
4545
|| node.value.children[0]?.type !== 'Identifier'
46-
|| node.value.children[0].name !== REMOVE_PROPERTY
46+
|| node.value.children[0].name !== REMOVE_VALUE
4747
) {
4848
const position = context.sourceCode.getLinterPositionRangeFromOffsetRange([
4949
node.loc!.start.offset,

0 commit comments

Comments
 (0)