]> git.koha-community.org Git - koha.git/commit
Bug 31528: Replace scss-lint configuration with one for stylelint
authorOwen Leonard <oleonard@myacpl.org>
Wed, 7 Sep 2022 12:24:02 +0000 (12:24 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 3 Oct 2022 11:23:14 +0000 (08:23 -0300)
commitb90c13912d27b8ad4d0cf1bd5b246f73d21e51a9
treea82c47a7ca6b7ade4e220948caaaa4e87967214b
parent44537c58d1ea689c974bdba216b2ae69eac79e5c
Bug 31528: Replace scss-lint configuration with one for stylelint

This patch removes the SCSS linting configuration .scss-lint.yml which
was intended to be used with a now-obsolete tool, scss-lint.

It is replaced with .stylelintrc.json, for use with stylelint. I've
tried to keep the linting rules the same as before.

To test, run 'yarn install' to install the new dependencies.

You can test stylelint from the command line like so:

npx stylelint koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss

It should output a list of problems with the file:

koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
   30:27   ✖  Expected "#e6f0f2" to be "#E6F0F2" color-hex-case
   81:31   ✖  Expected single space after "("    function-parentheses-space-inside
   ...etc.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
.scss-lint.yml [deleted file]
.stylelintrc.json [new file with mode: 0644]
package.json
yarn.lock