Skip to content

Commit

Permalink
chore(web): update prettier config (#1171)
Browse files Browse the repository at this point in the history
* update prettier config

* format files
  • Loading branch information
nourbalaha authored and yk-eukarya committed Oct 1, 2024
1 parent 774ea62 commit 6a456f6
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 49 deletions.
35 changes: 35 additions & 0 deletions web/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Ignore build artifacts and dependencies:
build/
coverage/
dist/
node_modules/

# Ignore environment files:
.env
.env*

# Ignore storybook files:
storybook-static/*
.storybook/public/*

# Ignore logs and temporary files:
*.log
*.tmp

# Ignore Playwright test output:
playwright-report/
playwright/.cache/

# Ignore GraphQL files:
src/gql/graphql-client-api.tsx
src/gql/fragmentMatcher.json
src/gql/graphql.schema.json

# Ignore Amplify files:
amplify/*

# Ignore i18n files:
src/i18n/translations/*

# Ignore miscellaneous:
.DS_Store
2 changes: 1 addition & 1 deletion web/.prettierrc → web/.prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"bracketSameLine": true,
"arrowParens": "avoid",
"proseWrap": "preserve"
}
}
7 changes: 2 additions & 5 deletions web/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
]
}
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
}
2 changes: 1 addition & 1 deletion web/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
}
4 changes: 2 additions & 2 deletions web/amplify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ frontend:
- yarn
build:
commands:
- yarn build
- yarn build
artifacts:
baseDirectory: dist
files:
- '**/*'
- "**/*"
cache:
paths:
- node_modules/**/*
4 changes: 2 additions & 2 deletions web/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<title>Re:Earth CMS</title>
Expand All @@ -16,4 +16,4 @@
if (global === undefined) {
var global = window;
}
</script>
</script>
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,4 @@
"resium": "1.17.4",
"ulid": "2.3.0"
}
}
}
47 changes: 24 additions & 23 deletions web/src/index.css
Original file line number Diff line number Diff line change
@@ -1,48 +1,49 @@
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap");
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
"Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
}

.dragLine {
border-bottom: dashed 2px rgba(0, 0, 0, 0.85) !important;
border-bottom: dashed 2px rgba(0, 0, 0, 0.85) !important;
}

.dragLineColumn {
border-left: dashed 2px rgba(0, 0, 0, 0.85) !important;
border-left: dashed 2px rgba(0, 0, 0, 0.85) !important;
}

.ant-table-cell{
word-break: break-all;
.ant-table-cell {
word-break: break-all;
}

.hide-icon-button {
.ant-btn-compact-last-item{
visibility: hidden;
}
.ant-btn-compact-last-item {
visibility: hidden;
}
}
.ant-layout-sider-children {
background-color: #fff;

.ant-layout-sider-children {
background-color: #fff;
}

.ant-layout-sider-trigger {
background-color: #fff;
color: #002140;
height: auto;
background-color: #fff;
color: #002140;
height: auto;
}

.ant-input-textarea-show-count::after {
display: none;
display: none;
}

.ant-input-outlined.ant-input-disabled textarea[disabled] {
color: inherit;
cursor: inherit;
}
color: inherit;
cursor: inherit;
}
19 changes: 5 additions & 14 deletions web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,13 @@
"noEmit": true,
"jsx": "react-jsx",
"baseUrl": ".",
"paths":{
"@reearth-cms/e2e/*": [
"e2e/*"
],
"@reearth-cms/*": [
"src/*"
]
"paths": {
"@reearth-cms/e2e/*": ["e2e/*"],
"@reearth-cms/*": ["src/*"]
},
"types": [
"@testing-library/jest-dom"
],
"types": ["@testing-library/jest-dom"]
},
"include": [
"src",
"e2e",
],
"include": ["src", "e2e"],
"ts-node": {
"compilerOptions": {
"module": "CommonJS"
Expand Down

0 comments on commit 6a456f6

Please sign in to comment.