Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Commit

Permalink
Add styled components example
Browse files Browse the repository at this point in the history
  • Loading branch information
morewings committed Nov 30, 2023
1 parent e804786 commit 06209ac
Show file tree
Hide file tree
Showing 10 changed files with 251 additions and 57 deletions.
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"*.{js,ts,tsx}": [
"eslint --fix"
],
"*.css": [
"*.style.ts": [
"stylelint --fix --quiet"
]
}
1 change: 1 addition & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": ["stylelint-config-standard"],
"customSyntax": "postcss-styled-syntax",
"rules": {
"function-calc-no-unspaced-operator": true,
"order/order": [
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"url": "https://github.com/morewings/cra-template-npm-library/issues"
},
"dependencies": {
"lodash": "^4.17.21"
"lodash": "^4.17.21",
"styled-components": "^6.1.1"
},
"devDependencies": {
"@rollup/plugin-typescript": "11.1.5",
Expand Down Expand Up @@ -76,9 +77,11 @@
"husky": "8.0.3",
"identity-obj-proxy": "^3.0.0",
"is-ci": "3.0.1",
"jest-styled-components": "^7.2.0",
"lint-staged": "15.1.0",
"npm-run-all": "4.1.5",
"postcss-preset-env": "9.3.0",
"postcss-styled-syntax": "^0.5.0",
"prettier": "2.8.7",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down Expand Up @@ -111,7 +114,7 @@
"lint:code": "eslint ./src/",
"fix:code": "run-s 'lint:js --fix'",
"lint:types": "tsc --pretty --noEmit",
"lint:style": "stylelint ./src/**/*.css",
"lint:style": "stylelint ./src/**/*.style.ts",
"fix:style": "run-s 'lint:style --fix'",
"clean:files": "node ./cleanFiles.js",
"copy:files": "node ./copyFiles.js",
Expand Down
Loading

0 comments on commit 06209ac

Please sign in to comment.