govariantsteam / govariants

A place to play Go variants
https://www.govariants.com
GNU Affero General Public License v3.0
5 stars 1 forks source link

Add enforce-style-attribute lint rule #311

Closed benjaminpjones closed 1 month ago

benjaminpjones commented 1 month ago

Inspired by #298, scoped seems to be best practice. Let's enforce it everywhere.

benjaminpjones commented 1 month ago

There are still ways to manipulate styles out of scope, particularly ":deep(selector)" seems useful.

There's also ":global" but I think we should use main.css for that.

Didn't know that! Glad we have an escape hatch, though I agree main.css seems to be the best place as well.