From b284d4f377176770fa5fef074ec6566f52c54efd Mon Sep 17 00:00:00 2001 From: Ando Date: Fri, 14 Feb 2025 20:47:15 +0300 Subject: [PATCH 1/2] feat: create a empty roadmap doc for drowser (#102) --- src/pages/docs/drowser/_meta.ts | 13 +++++++------ src/pages/docs/drowser/roadmap.mdx | 4 ++++ .../drowser/{report-structure.mdx => structure.mdx} | 0 3 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 src/pages/docs/drowser/roadmap.mdx rename src/pages/docs/drowser/{report-structure.mdx => structure.mdx} (100%) diff --git a/src/pages/docs/drowser/_meta.ts b/src/pages/docs/drowser/_meta.ts index 264e016..c35f879 100644 --- a/src/pages/docs/drowser/_meta.ts +++ b/src/pages/docs/drowser/_meta.ts @@ -1,10 +1,11 @@ const meta = { - 'index': 'Installation', - 'configuration': 'Configuration', - 'usage': 'Usage', - 'report-structure': 'Report Structure', - 'features': 'Features', - 'changelog': 'Changelog' + index: 'Installation', + configuration: 'Configuration', + usage: 'Usage', + structure: 'Structure', + features: 'Features', + roadmap: 'Roadmap', + changelog: 'Changelog' } export default meta diff --git a/src/pages/docs/drowser/roadmap.mdx b/src/pages/docs/drowser/roadmap.mdx new file mode 100644 index 0000000..f01b397 --- /dev/null +++ b/src/pages/docs/drowser/roadmap.mdx @@ -0,0 +1,4 @@ +# Roadmap + + +For now we don't have a roadmap, but we are working on it. Stay tuned! diff --git a/src/pages/docs/drowser/report-structure.mdx b/src/pages/docs/drowser/structure.mdx similarity index 100% rename from src/pages/docs/drowser/report-structure.mdx rename to src/pages/docs/drowser/structure.mdx From c0eba27ae4ea46596fb5c0c1410787bf1ad8ac10 Mon Sep 17 00:00:00 2001 From: Ando Date: Wed, 19 Feb 2025 20:16:46 +0300 Subject: [PATCH 2/2] fix: set to specific config file linter, formatter and use main as auto pr request branch --- .eslintrc.json | 3 +++ .github/workflows/pr.yml | 4 ++-- .prettierrc.json | 19 +++++++++++++++++++ package.json | 29 +---------------------------- pnpm-lock.yaml | 16 +++++++++++++--- 5 files changed, 38 insertions(+), 33 deletions(-) create mode 100644 .eslintrc.json create mode 100644 .prettierrc.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..3722418 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": ["next/core-web-vitals", "next/typescript"] +} diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 1799618..3ef07c9 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -3,7 +3,7 @@ name: pull-request on: push: branches-ignore: - - develop + - main jobs: create-pull-request: @@ -13,5 +13,5 @@ jobs: - uses: jascodes/pr-branch-action@1.0.3 env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - PULL_REQUEST_BRANCH: develop + PULL_REQUEST_BRANCH: main PULL_REQUEST_TITLE: ${{ github.event.head_commit.message }} diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..d074b40 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,19 @@ +{ + "trailingComma": "none", + "arrowParens": "always", + "singleQuote": true, + "jsxSingleQuote": true, + "printWidth": 100, + "useTabs": false, + "semi": false, + "quoteProps": "consistent", + "bracketSpacing": true, + "overrides": [ + { + "files": ["**/*.css", "**/*.scss"], + "options": { + "singleQuote": false + } + } + ] +} diff --git a/package.json b/package.json index 43bd615..1659eca 100644 --- a/package.json +++ b/package.json @@ -30,35 +30,8 @@ "eslint": "^8", "eslint-config-next": "15.0.0", "postcss": "^8", + "prettier": "^3.5.1", "tailwindcss": "^3.4.1", "typescript": "^5" - }, - "prettier": { - "trailingComma": "none", - "arrowParens": "always", - "singleQuote": true, - "jsxSingleQuote": true, - "printWidth": 100, - "useTabs": false, - "semi": false, - "quoteProps": "consistent", - "bracketSpacing": true, - "overrides": [ - { - "files": [ - "**/*.css", - "**/*.scss" - ], - "options": { - "singleQuote": false - } - } - ] - }, - "eslintConfig": { - "extends": [ - "next/core-web-vitals", - "next/typescript" - ] } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index edd1753..8e96916 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -63,6 +63,9 @@ importers: postcss: specifier: ^8 version: 8.4.47 + prettier: + specifier: ^3.5.1 + version: 3.5.1 tailwindcss: specifier: ^3.4.1 version: 3.4.14 @@ -2306,6 +2309,11 @@ packages: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} + prettier@3.5.1: + resolution: {integrity: sha512-hPpFQvHwL3Qv5AdRvBFMhnKo4tYxp0ReXiPn2bxkiohEX6mBeBwEpBSQTkD458RaaDKQMYSp4hX4UtfUTA5wDw==} + engines: {node: '>=14'} + hasBin: true + prop-types@15.8.1: resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==} @@ -4175,7 +4183,7 @@ snapshots: debug: 4.3.7 enhanced-resolve: 5.17.1 eslint: 8.57.1 - eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.11.0(eslint@8.57.1)(typescript@5.6.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1) + eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.11.0(eslint@8.57.1)(typescript@5.6.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.11.0(eslint@8.57.1)(typescript@5.6.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.31.0)(eslint@8.57.1))(eslint@8.57.1) fast-glob: 3.3.2 get-tsconfig: 4.8.1 is-bun-module: 1.2.1 @@ -4188,7 +4196,7 @@ snapshots: - eslint-import-resolver-webpack - supports-color - eslint-module-utils@2.12.0(@typescript-eslint/parser@8.11.0(eslint@8.57.1)(typescript@5.6.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1): + eslint-module-utils@2.12.0(@typescript-eslint/parser@8.11.0(eslint@8.57.1)(typescript@5.6.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.11.0(eslint@8.57.1)(typescript@5.6.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.31.0)(eslint@8.57.1))(eslint@8.57.1): dependencies: debug: 3.2.7 optionalDependencies: @@ -4210,7 +4218,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.57.1 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.11.0(eslint@8.57.1)(typescript@5.6.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1) + eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.11.0(eslint@8.57.1)(typescript@5.6.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.11.0(eslint@8.57.1)(typescript@5.6.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.31.0)(eslint@8.57.1))(eslint@8.57.1) hasown: 2.0.2 is-core-module: 2.15.1 is-glob: 4.0.3 @@ -5854,6 +5862,8 @@ snapshots: prelude-ls@1.2.1: {} + prettier@3.5.1: {} + prop-types@15.8.1: dependencies: loose-envify: 1.4.0