[Koha-devel] Updating SCSS lint process to use stylelint

dcook at prosentient.com.au dcook at prosentient.com.au
Tue Jul 19 01:56:05 CEST 2022


For what it's worth, I don't touch the SCSS. I try to avoid it wherever possible and leave it up to people who know it better than me. 

Curious to hear about others...

David Cook
Senior Software Engineer
Prosentient Systems
Suite 7.03
6a Glen St
Milsons Point NSW 2061
Australia

Office: 02 9212 0899
Online: 02 8005 0595

-----Original Message-----
From: Koha-devel <koha-devel-bounces at lists.koha-community.org> On Behalf Of Owen Leonard
Sent: Tuesday, 19 July 2022 12:33 AM
To: Koha Devel <koha-devel at lists.koha-community.org>
Subject: [Koha-devel] Updating SCSS lint process to use stylelint

Hi all,

Back when we switched from LESS to SCSS in the OPAC (Bug 20427) I added a linting configuration, .scss-lint.yml. I've always configured my editor to automatically lint SCSS using this configuration. I don't know if anyone else does this too.

In VS Code I was using scss-lint for this, but it's now deprecated.
They suggest stylelint instead: https://stylelint.io. I'd like to propose replacing .scss-lint.yml with .stylelintrc.json, transferring most of the same rules.

It could be left up to the individual to install the dependencies, or I could update package.json. One nice thing about stylelint is that it has a "--fix" feature for some simple rules. This could be build into our gulp tasks.

Has anyone else been linting SCSS? If so, does anyone have opinions about how our current rule set is working?

 -- Owen

--
Web Developer
Athens County Public Libraries
(740) 737-6006
https://www.myacpl.org
_______________________________________________
Koha-devel mailing list
Koha-devel at lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : https://www.koha-community.org/ git : https://git.koha-community.org/ bugs : https://bugs.koha-community.org/



More information about the Koha-devel mailing list