Owen Leonard
b90c13912d
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>
30 lines
1 KiB
JSON
30 lines
1 KiB
JSON
{
|
|
"extends": "stylelint-config-standard-scss",
|
|
"plugins": [
|
|
"stylelint-order"
|
|
],
|
|
"rules": {
|
|
"alpha-value-notation": null,
|
|
"color-hex-case": "upper",
|
|
"color-hex-length": null,
|
|
"color-named": "never",
|
|
"declaration-colon-space-after": "always",
|
|
"declaration-no-important": true,
|
|
"function-parentheses-space-inside": "always",
|
|
"indentation": 4,
|
|
"keyframes-name-pattern": null,
|
|
"max-line-length": null,
|
|
"media-feature-parentheses-space-inside": "always",
|
|
"no-descending-specificity": null,
|
|
"no-duplicate-selectors": true,
|
|
"number-leading-zero": "never",
|
|
"order/properties-alphabetical-order": true,
|
|
"selector-class-pattern": null,
|
|
"selector-id-pattern": null,
|
|
"selector-no-qualifying-type": null,
|
|
"selector-pseudo-class-parentheses-space-inside": "always",
|
|
"selector-pseudo-element-colon-notation": "double",
|
|
"shorthand-property-no-redundant-values": null,
|
|
"font-family-no-missing-generic-family-keyword": null
|
|
}
|
|
}
|