Skip to content

Commit

Permalink
chore: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavPetrik committed Mar 22, 2024
1 parent 2f26284 commit 2f15fe8
Show file tree
Hide file tree
Showing 10 changed files with 68 additions and 253 deletions.
3 changes: 1 addition & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ module.exports = {
env: {
node: true,
},
plugins: ["@typescript-eslint", "prettier", "import"],
plugins: ["@typescript-eslint", "import"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
],
Expand Down
24 changes: 13 additions & 11 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

**Is your feature request related to a problem? Please describe.**
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.yarn
CHANGELOG.md
4 changes: 2 additions & 2 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export default {
],
framework: {
name: "@storybook/react-vite",
options: {}
options: {},
},
core: {
disableTelemetry: true
disableTelemetry: true,
},
};
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"sb:up": "yarn dlx storybook@latest upgrade",
"storybook": "storybook dev",
"semantic-release": "semantic-release",
"format": "prettier . --write",
"format:check": "prettier . --check",
"lint": "eslint --ext .tsx,.ts ./src",
"lint:fix": "yarn run lint --fix",
"ui": "yarn upgrade-interactive"
Expand Down Expand Up @@ -74,25 +76,23 @@
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "10.4.16",
"eslint": "8.55.0",
"eslint-config-prettier": "9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-prettier": "5.0.1",
"flowbite-react": "^0.7.3",
"flowbite-react": "^0.7.5",
"form-atoms": "3.2.4",
"happy-dom": "12.10.3",
"jotai": "^2.7.0",
"jotai-devtools": "0.8.0",
"jotai-effect": "^0.6.0",
"postcss": "8.4.32",
"prettier": "^3.1.0",
"prettier-plugin-tailwindcss": "0.5.7",
"postcss": "8.4.38",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "0.5.12",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.12.0",
"semantic-release": "^23.0.5",
"storybook": "^8.0.0",
"tailwindcss": "^3.3.5",
"tailwindcss": "^3.4.1",
"typescript": "5.3.3",
"vite": "^5.0.11",
"vitest": "1.1.3",
Expand Down
9 changes: 1 addition & 8 deletions src/stories/address-list-field/AddressListField.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { listField, textField } from "@form-atoms/field";
import { List } from "@form-atoms/list-atom";
import { Button, Card, Label } from "flowbite-react";
import { formAtom } from "form-atoms";
import {
HiOutlineChevronDown,
HiOutlineChevronUp,
Expand Down Expand Up @@ -32,17 +31,11 @@ const addresses = listField({
}),
});

const fields = {
addresses,
};

const form = formAtom(fields);

export const AddressesListField = () => (
<div className="max-w-xl">
<div className="flex flex-col gap-4">
<List
atom={fields.addresses}
atom={addresses}
RemoveButton={({ remove }) => (
<Button onClick={remove} color="failure">
<HiOutlineTrash />
Expand Down
4 changes: 2 additions & 2 deletions src/stories/advanced-search/Docs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const confirmPassword = textField({
on: "change",
formatError: ({ issues }) => {
return issues.map(({ code, message }) =>
code === "invalid_literal" ? "Passwords must match" : message
code === "invalid_literal" ? "Passwords must match" : message,
);
},
}
},
),
});
```
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./node_modules/flowbite-react/**/*.js",
"./node_modules/flowbite-react/lib/esm/**/*.js",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
Expand Down
Loading

0 comments on commit 2f15fe8

Please sign in to comment.