Skip to content

Commit 61e9ceb

Browse files
committed
Enable Tailwind CSS
1 parent dd19c9f commit 61e9ceb

File tree

17 files changed

+510
-295
lines changed

17 files changed

+510
-295
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = {
2121
'plugin:react/jsx-runtime',
2222
'plugin:react-hooks/recommended',
2323
'plugin:ssr-friendly/recommended',
24+
'plugin:tailwindcss/recommended',
2425
'plugin:storybook/recommended',
2526
'plugin:prettier/recommended',
2627
],

.github/workflows/pull-request-jobs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Node.js CI
55

66
on:
77
pull_request:
8-
branches: [ master ]
8+
branches: ["master", "tailwind"]
99

1010
jobs:
1111
lint-test:

.stylelintrc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,15 @@
1515
"at-rule-no-vendor-prefix": true,
1616
"selector-no-vendor-prefix": true,
1717
"max-nesting-depth": 3,
18-
"selector-max-compound-selectors": 5
18+
"selector-max-compound-selectors": 5,
19+
"at-rule-no-unknown": [
20+
true,
21+
{
22+
"ignoreAtRules": [
23+
"tailwind"
24+
]
25+
}
26+
]
1927
},
2028
"plugins": [
2129
"stylelint-order"

generate-react-cli.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"withHookTest": true,
1717
"customTemplates": {
1818
"component": "templates/Component/TemplateName.tsx",
19-
"style": "templates/Component/TemplateName.module.css",
2019
"story": "templates/Component/TemplateName.stories.tsx",
2120
"index": "templates/Component/index.ts",
2221
"mdx": "templates/Component/TemplateName.mdx",

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"@typescript-eslint/eslint-plugin": "7.0.0",
7777
"@typescript-eslint/parser": "6.21.0",
7878
"@vitejs/plugin-react": "4.2.1",
79-
"@yelo/rollup-node-external": "^1.0.1",
79+
"@yelo/rollup-node-external": "1.0.1",
8080
"alias-hq": "6.2.3",
8181
"eslint": "8.57.0",
8282
"eslint-config-prettier": "9.1.0",
@@ -87,6 +87,7 @@
8787
"eslint-plugin-react-refresh": "0.4.6",
8888
"eslint-plugin-ssr-friendly": "1.3.0",
8989
"eslint-plugin-storybook": "0.8.0",
90+
"eslint-plugin-tailwindcss": "3.15.1",
9091
"generate-react-cli": "^8.4.1",
9192
"husky": "9.0.11",
9293
"identity-obj-proxy": "3.0.0",
@@ -96,7 +97,7 @@
9697
"lint-staged": "15.2.2",
9798
"npm-run-all2": "5.0.0",
9899
"postcss": "8.4.38",
99-
"postcss-preset-env": "^9.5.9",
100+
"postcss-preset-env": "9.5.12",
100101
"prettier": "3.2.5",
101102
"react": "18.3.1",
102103
"react-dom": "18.2.0",
@@ -105,10 +106,11 @@
105106
"stylelint-config-standard": "36.0.0",
106107
"stylelint-order": "6.0.4",
107108
"stylelint-prettier": "5.0.0",
109+
"tailwindcss": "3.4.3",
108110
"ts-jest": "29.1.2",
109111
"ts-node": "10.9.2",
110112
"typescript": "5.4.5",
111113
"vite": "5.2.10",
112-
"vite-plugin-dts": "^3.9.0"
114+
"vite-plugin-dts": "3.9.0"
113115
}
114116
}

0 commit comments

Comments
 (0)