SimenB / stylint

Improve your Stylus code with Stylint
https://simenb.github.io/stylint/
GNU General Public License v2.0
348 stars 62 forks source link

Valid attribute selectors flagged as invalid properties #404

Open phun-ky opened 7 years ago

phun-ky commented 7 years ago

Related to #c54 ? I get these warnings

Warning: property is not valid
File: tables.styl
Line: 90: table.table.table--inCard

Warning: property is not valid
File: tables.styl
Line: 94: table.table.table--inCard td:first-child,

Warning: property is not valid
File: tables.styl
Line: 95: table.table.table--inCard th:first-child

Warning: property is not valid
File: tables.styl
Line: 98: table.table.table--inCard td:last-child,

Warning: property is not valid
File: tables.styl
Line: 99: table.table.table--inCard th:last-child

Warning: property is not valid
File: tables.styl
Line: 102: table.table.table--inCard tr:first-child td,

Warning: property is not valid
File: tables.styl
Line: 103: table.table.table--inCard tr:first-child th

Warning: property is not valid
File: tables.styl
Line: 106: table.table.table--inCard tr:last-child td,

Warning: property is not valid
File: tables.styl
Line: 107: table.table.table--inCard tr:last-child th

Stylint: 0 Errors.
Stylint: 9 Warnings.

On this stylus section: (first line is line 90)

table.table.table--inCard
  border none
  margin 0

table.table.table--inCard td:first-child,
table.table.table--inCard th:first-child
  border-left none

table.table.table--inCard td:last-child,
table.table.table--inCard th:last-child
  border-right none

table.table.table--inCard tr:first-child td,
table.table.table--inCard tr:first-child th
  border-top none

table.table.table--inCard tr:last-child td,
table.table.table--inCard tr:last-child th
  border-bottom none

What could be the issue here?

SimenB commented 7 years ago

The warning should include what property it doesn't like... If I'd guess, I'd say it doesn't like the --inCard syntax. WHat sort of syntax is that?