SimenB / stylint

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

Add support for "font-variation-settings" (variable fonts) #449

Open phun-ky opened 5 years ago

phun-ky commented 5 years ago

Although font-variation-settings is WD, I'm wondering if I can either a) suppress attribution specific warnings, or b) get a fix that recognizes font-variation-settings as a valid syntax.

Stylint: 0 Errors.
Stylint: 1 Warnings.
Warning: property is not valid
File: .../search.styl
Line: 409: font-variation-settings "wght" 400

(I'm getting the same type of error for grid-gap)

koynoyno commented 3 years ago

Add

"customProperties": ['grid-gap', 'font-variation-settings'],

line to your .stylintrc file.