File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments