diff --git a/.stylelintrc.json b/.stylelintrc.json index 2c17ecf..e46241a 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -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" - } - ] - } + "extends": ["stylelint-config-standard"], + "rules": { + "selector-class-pattern": null, + "import-notation": "string", + "color-hex-length": null + } } diff --git a/package.json b/package.json index 1dfaf28..bb96696 100644 --- a/package.json +++ b/package.json @@ -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 \"\"", diff --git a/src/main.css b/src/main.css index 118b619..4844e50 100644 --- a/src/main.css +++ b/src/main.css @@ -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; diff --git a/src/tables.css b/src/tables.css index de76fdf..5817911 100644 --- a/src/tables.css +++ b/src/tables.css @@ -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;