Fix stylelint issues

This commit is contained in:
Kuba Orlik 2025-06-28 09:31:42 +02:00
parent 5378ba0700
commit dd350e4998
4 changed files with 11 additions and 14 deletions

View File

@ -1,12 +1,8 @@
{
"extends": ["stylelint-config-standard"],
"rules": {
"selector-class-pattern": [
"^[a-z]([-]?[a-z0-9]+)*(__[a-z0-9]([-]?[a-z0-9]+)*)?(--[a-z0-9]([-]?[a-z0-9]+)*)?$",
{
"resolveNestedSelectors": true,
"message": "Expected class selector \"%s\" to match BEM CSS pattern https://en.bem.info/methodology/css. Selector validation tool: https://regexr.com/3apms"
}
]
"selector-class-pattern": null,
"import-notation": "string",
"color-hex-length": null
}
}

View File

@ -18,7 +18,8 @@
"pretest": "npm run build && docker compose up -d",
"test": "node test.cjs",
"prepare": "husky",
"lint": "eslint src",
"stylelint": "stylelint **/*.css",
"lint": "eslint src && npm run stylelint",
"lint-report": "npm run --silent lint -- --format json > .eslint-result.json",
"pretest-reports": "npm run build --ignore-scripts && rm -fr .xunit coverage",
"test-reports": "npx c8 --exclude \"\" ./node_modules/.bin/mocha --recursive --timeout=10000 --require source-map-support/register 'dist/**/*.test.js' --exit && c8 report --reporter cobertura --exclude \"\"",

View File

@ -14,7 +14,6 @@ body {
.delete-button {
height: 1rem;
padding: 0;
line-height: 0;
padding: 0.5rem;
}
@ -28,10 +27,11 @@ nav {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
ul {
display: flex;
gap: 8px;
padding-left: 0px;
padding-left: 0;
li {
list-style: none;

View File

@ -18,7 +18,7 @@ th {
thead th {
background-color: #ddd;
border-style: solid;
border-width: 1px 0 1px 0;
border-width: 1px 0;
border-color: #777;
padding: 9px 7px;
font-size: 14px;