Skip to content

Commit

Permalink
Enable Tailwind CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
morewings committed Jul 1, 2024
1 parent 5af156b commit 95e9659
Show file tree
Hide file tree
Showing 17 changed files with 273 additions and 84 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Node.js CI

on:
pull_request:
branches: [ master ]
branches: ["master", "tailwind"]

jobs:
lint-test:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
v20
10 changes: 9 additions & 1 deletion .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@
"at-rule-no-vendor-prefix": true,
"selector-no-vendor-prefix": true,
"max-nesting-depth": 3,
"selector-max-compound-selectors": 5
"selector-max-compound-selectors": 5,
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": [
"tailwind"
]
}
]
},
"plugins": [
"stylelint-order"
Expand Down
2 changes: 2 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ import pluginReactHooks from 'eslint-plugin-react-hooks';
import {fixupPluginRules} from '@eslint/compat';
import configPrettierRecommended from 'eslint-plugin-prettier/recommended';
import pluginSSR from 'eslint-plugin-ssr-friendly';
import tailwindPlugin from 'eslint-plugin-tailwindcss';

export default [
eslint.configs.recommended,
...eslintTS.configs.recommended,
...eslintTS.configs.stylistic,
...tailwindPlugin.configs['flat/recommended'],
configReactRecommended,
configReactJSXRuntime,
configPrettierRecommended,
Expand Down
1 change: 0 additions & 1 deletion generate-react-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"withHookTest": true,
"customTemplates": {
"component": "templates/Component/TemplateName.tsx",
"style": "templates/Component/TemplateName.module.css",
"story": "templates/Component/TemplateName.stories.tsx",
"index": "templates/Component/index.ts",
"mdx": "templates/Component/TemplateName.mdx",
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
"eslint-plugin-react-refresh": "0.4.7",
"eslint-plugin-ssr-friendly": "1.3.0",
"eslint-plugin-storybook": "0.8.0",
"eslint-plugin-tailwindcss": "3.17.4",
"generate-react-cli": "8.4.6",
"husky": "9.0.11",
"identity-obj-proxy": "3.0.0",
Expand All @@ -110,6 +111,7 @@
"stylelint-config-standard": "36.0.1",
"stylelint-order": "6.0.4",
"stylelint-prettier": "5.0.0",
"tailwindcss": "3.4.4",
"ts-jest": "29.1.5",
"ts-node": "10.9.2",
"typescript": "5.5.2",
Expand Down
Loading

0 comments on commit 95e9659

Please sign in to comment.