Skip to content

Commit

Permalink
chore: setup stylelint
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoporto committed Jan 18, 2025
1 parent 04322f5 commit b5571a9
Show file tree
Hide file tree
Showing 5 changed files with 753 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .lintstagedrc.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default {
'*': 'prettier --check --ignore-unknown --write',
'*.{md,markdown,mdx}': ['remark --frail', 'eslint --max-warnings 0'],
// '*.{scss,css}': 'stylelint',
'*.{css,scss}': 'stylelint --fix',
// '*.{ts,tsx}': () => 'tsc --project tsconfig.json',
'*.{js,mjs,jsx,ts,tsx}': [
'eslint --max-warnings 0',
Expand Down
3 changes: 3 additions & 0 deletions .stylelintrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
extends: ['@tiagoporto/stylelint-config'],
}
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
"license": "MIT",
"scripts": {
"prepare": "husky",
"checks": "npm run check-docs && npm run formatting:check && npm run lint",
"checks": "npm run check-docs && npm run formatting:check && npm run lint && npm run lint:styles",
"check-docs": "remark --frail . --ext md,markdown,mdx",
"formatting:check": "prettier --check --ignore-unknown \"**/*\"",
"formatting": "npm run formatting:check -- --write",
"lint": "eslint --max-warnings 0",
"lint:fix": "npm run lint -- --write"
"lint:fix": "npm run lint -- --write",
"lint:styles": "stylelint \"**/*.{css,scss}\"",
"lint:styles:fix": "stylelint \"**/*.{css,scss}\" --fix"
},
"packageManager": "[email protected]",
"engines": {
Expand All @@ -26,12 +28,14 @@
"@tiagoporto/eslint-config": "^2.6.0",
"@tiagoporto/prettier-config": "^1.2.0",
"@tiagoporto/remark-config": "^1.6.0",
"@tiagoporto/stylelint-config": "^1.1.0",
"eslint": "^9.18.0",
"globals": "^15.14.0",
"husky": "^9.1.7",
"lint-staged": "^15.3.0",
"prettier": "^3.4.2",
"remark": "^15.0.1",
"remark-cli": "^12.0.1"
"remark-cli": "^12.0.1",
"stylelint": "^16.13.2"
}
}
12 changes: 6 additions & 6 deletions packages/logo-downloadtip/src/logo-downloadtip.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.tippy-tooltip.logo-downloadtip-theme {
padding: 0;
background-color: #fff;
box-shadow: 0 3px 12px rgb(0 0 0 / 40%);
color: #555;
padding: 0;
box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.tippy-tooltip.logo-downloadtip-theme[data-animatefill] {
Expand All @@ -14,15 +14,15 @@
}

.logo-downloadtip-theme h1 {
padding: 8px 14px;
margin: 0;
background: #ebebeb;
font-size: 14px;
margin: 0;
padding: 8px 14px;
}

.logo-downloadtip-theme a {
color: #555;
display: block;
color: #555;
text-decoration: none;
}

Expand All @@ -31,7 +31,7 @@
}

.logo-downloadtip-theme .content {
padding: 9px 14px;
color: #333;
font-size: 13px;
padding: 9px 14px;
}
Loading

0 comments on commit b5571a9

Please sign in to comment.