diff --git a/web/.prettierignore b/web/.prettierignore new file mode 100644 index 0000000000..57c3b8a416 --- /dev/null +++ b/web/.prettierignore @@ -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 diff --git a/web/.prettierrc b/web/.prettierrc.json similarity index 99% rename from web/.prettierrc rename to web/.prettierrc.json index 30da50003a..431dda7942 100644 --- a/web/.prettierrc +++ b/web/.prettierrc.json @@ -9,4 +9,4 @@ "bracketSameLine": true, "arrowParens": "avoid", "proseWrap": "preserve" -} \ No newline at end of file +} diff --git a/web/.vscode/extensions.json b/web/.vscode/extensions.json index c99c6248cd..1d7ac851ea 100644 --- a/web/.vscode/extensions.json +++ b/web/.vscode/extensions.json @@ -1,6 +1,3 @@ { - "recommendations": [ - "dbaeumer.vscode-eslint", - "esbenp.prettier-vscode" - ] -} \ No newline at end of file + "recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"] +} diff --git a/web/.vscode/settings.json b/web/.vscode/settings.json index b9ab5a42c6..a58f234820 100644 --- a/web/.vscode/settings.json +++ b/web/.vscode/settings.json @@ -18,4 +18,4 @@ "[typescriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode" } -} \ No newline at end of file +} diff --git a/web/amplify.yml b/web/amplify.yml index 14d51e02fa..359565a4a3 100644 --- a/web/amplify.yml +++ b/web/amplify.yml @@ -6,11 +6,11 @@ frontend: - yarn build: commands: - - yarn build + - yarn build artifacts: baseDirectory: dist files: - - '**/*' + - "**/*" cache: paths: - node_modules/**/* diff --git a/web/index.html b/web/index.html index 09ffadcae7..24c43915cc 100644 --- a/web/index.html +++ b/web/index.html @@ -1,4 +1,4 @@ - + Re:Earth CMS @@ -16,4 +16,4 @@ if (global === undefined) { var global = window; } - \ No newline at end of file + diff --git a/web/package.json b/web/package.json index 8266bb539e..8347e650c9 100644 --- a/web/package.json +++ b/web/package.json @@ -124,4 +124,4 @@ "resium": "1.17.4", "ulid": "2.3.0" } -} \ No newline at end of file +} diff --git a/web/src/index.css b/web/src/index.css index e396044609..341aba2298 100644 --- a/web/src/index.css +++ b/web/src/index.css @@ -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; -} \ No newline at end of file + color: inherit; + cursor: inherit; +} diff --git a/web/tsconfig.json b/web/tsconfig.json index fb8a5e0e30..03c3b5e714 100644 --- a/web/tsconfig.json +++ b/web/tsconfig.json @@ -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"