Skip to content

Commit

Permalink
Merge pull request #2110 from flanksource/chore-prettier-add-tailwind…
Browse files Browse the repository at this point in the history
…-plugin

chore: add prettier plugin for tailwind to sort tailwind classes
  • Loading branch information
mainawycliffe authored Jul 25, 2024
2 parents 326d34c + 7282173 commit 65ce76d
Show file tree
Hide file tree
Showing 503 changed files with 2,186 additions and 2,081 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
uses: elgohr/Publish-Docker-Github-Action@742a180fa47f3adfb5115902ae4955acc6ad769b # v4
env:
APP_DEPLOYMENT: CANARY_CHECKER
WITHOUT_AUTH: 'true'
WITHOUT_AUTH: "true"
with:
name: flanksource/canary-checker-ui
username: ${{ secrets.DOCKER_USERNAME }}
Expand All @@ -55,8 +55,8 @@ jobs:
- name: Publish incident-manager-ui to Registry
uses: elgohr/Publish-Docker-Github-Action@742a180fa47f3adfb5115902ae4955acc6ad769b # v4
env:
APP_DEPLOYMENT: 'INCIDENT_MANAGER'
WITHOUT_AUTH: 'false'
APP_DEPLOYMENT: "INCIDENT_MANAGER"
WITHOUT_AUTH: "false"
with:
name: flanksource/incident-manager-ui
username: ${{ secrets.DOCKER_USERNAME }}
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
REPOSITORY: canary-checker-ui
IMAGE_TAG: "v${{ needs.semantic-release.outputs.release-version }}"
APP_DEPLOYMENT: CANARY_CHECKER
WITHOUT_AUTH: 'true'
WITHOUT_AUTH: "true"
run: |
docker build --build-arg APP_DEPLOYMENT --build-arg WITHOUT_AUTH -t $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:$IMAGE_TAG .
docker push $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:$IMAGE_TAG
Expand All @@ -96,8 +96,8 @@ jobs:
REGISTRY_ALIAS: k4y9r6y5
REPOSITORY: incident-manager-ui
IMAGE_TAG: "v${{ needs.semantic-release.outputs.release-version }}"
APP_DEPLOYMENT: 'INCIDENT_MANAGER'
WITHOUT_AUTH: 'false'
APP_DEPLOYMENT: "INCIDENT_MANAGER"
WITHOUT_AUTH: "false"
run: |
docker build --build-arg APP_DEPLOYMENT --build-arg WITHOUT_AUTH -t $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:$IMAGE_TAG .
docker push $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:$IMAGE_TAG
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"semi": true,
"singleQuote": false,
"trailingComma": "none",
"endOfLine": "auto"
"endOfLine": "auto",
"plugins": ["prettier-plugin-tailwindcss"]
}
6 changes: 3 additions & 3 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&display=swap"
rel="stylesheet"
/>
href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&display=swap"
rel="stylesheet"
/>
4 changes: 2 additions & 2 deletions development.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ typescript: {
check: false,
}
```

With CRA it's more complicated.

### css prop type
Expand All @@ -21,11 +22,10 @@ For type information related to css prop types (see: [issue-comment](https://git
"jsxImportSource": "@emotion/react",
```


## Packages

### @headlressui/react

We are using incsider (master) version of headlessui/react, for the `by` property on `Combobox`. Without `by`, selected item logic was difficult to achieve.
We are using incsider (master) version of headlessui/react, for the `by` property on `Combobox`. Without `by`, selected item logic was difficult to achieve.

Be careful about updating this package.
54 changes: 23 additions & 31 deletions e2e/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,25 @@
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"sourceType": "script"
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
env: {
browser: true,
es2021: true
},
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
overrides: [
{
env: {
node: true
},
files: [".eslintrc.{js,cjs}"],
parserOptions: {
sourceType: "script"
}
}
}
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module"
},
plugins: ["@typescript-eslint"],
rules: {}
};
134 changes: 127 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@
"postcss": "^8",
"postcss-loader": "^7.0.1",
"postcss-nesting": "^12.1.2",
"prettier": "^2.3.2",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.5",
"semantic-release": "^22.0.12",
"source-map-explorer": "^2.5.2",
"storybook": "^7.6.17",
Expand Down
2 changes: 1 addition & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function MyApp({ Component, pageProps }: AppProps) {
<QueryClientProvider client={queryClient}>
<div
id="root"
className="flex flex-col w-screen h-screen overflow-auto"
className="flex h-screen w-screen flex-col overflow-auto"
suppressHydrationWarning
>
{authProvider === "clerk" ? (
Expand Down
2 changes: 1 addition & 1 deletion pages/api/[...paths].ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ export default async function handler(
...(isClerkAuth ? clerkBackendPathRewrites : kratosBackendPathRewrites)
]
});
}
}
Loading

0 comments on commit 65ce76d

Please sign in to comment.