diff --git a/.github/labels.yaml b/.github/labels.yaml index 401061c6..812d2fa0 100644 --- a/.github/labels.yaml +++ b/.github/labels.yaml @@ -1,115 +1,92 @@ -- - name: duplicate +- name: duplicate color: ededed - description: 'This issue or Pull Request already exists' + description: "This issue or Pull Request already exists" aliases: [] -- - name: 'good first issue' +- name: "good first issue" color: 7057ff - description: 'Good for newcomers' + description: "Good for newcomers" aliases: [] -- - name: 'help wanted' +- name: "help wanted" color: e99695 - description: 'Extra attention is needed' + description: "Extra attention is needed" aliases: [] -- - name: 'Status: Abandoned' - color: '000000' - description: 'The issue or Pull Request is wontfix' +- name: "Status: Abandoned" + color: "000000" + description: "The issue or Pull Request is wontfix" aliases: [] -- - name: 'Status: Blocked' +- name: "Status: Blocked" color: ee0701 - description: 'Progress on the issue is Blocked' + description: "Progress on the issue is Blocked" aliases: [] -- - name: 'Status: In Progress' +- name: "Status: In Progress" color: cccccc - description: 'Work in Progress' + description: "Work in Progress" aliases: [] -- - name: 'Status: Need More Info' +- name: "Status: Need More Info" color: F9C90A - description: 'Lacks enough info to make progress' + description: "Lacks enough info to make progress" aliases: [] -- - name: 'Status: PR Welcome' - color: '2E7733' - description: 'Welcome to Pull Request' +- name: "Status: PR Welcome" + color: "2E7733" + description: "Welcome to Pull Request" aliases: [] -- - name: 'Status: Proposal' +- name: "Status: Proposal" color: d4c5f9 - description: 'Request for comments' + description: "Request for comments" aliases: [] -- - name: 'Status: Review Needed' +- name: "Status: Review Needed" color: fbca04 - description: 'Request for review comments' + description: "Request for review comments" aliases: [] -- - name: 'Type: Breaking Change' +- name: "Type: Breaking Change" color: b60205 - description: 'Includes breaking changes' + description: "Includes breaking changes" aliases: [] -- - name: 'Type: Bug' +- name: "Type: Bug" color: ee0701 - description: 'Bug or Bug fixes' + description: "Bug or Bug fixes" aliases: [] -- - name: 'Type: CI' +- name: "Type: CI" color: ffd412 - description: 'Changes to CI configuration files and scripts' + description: "Changes to CI configuration files and scripts" aliases: [] -- - name: 'Type: Dependencies' +- name: "Type: Dependencies" color: 0366d6 - description: 'Dependency issues or Changes to dependency files' + description: "Dependency issues or Changes to dependency files" aliases: [] -- - name: 'Type: Documentation' +- name: "Type: Documentation" color: 0e8a16 - description: 'Documentation only changes' + description: "Documentation only changes" aliases: [] -- - name: 'Type: Feature' +- name: "Type: Feature" color: 1d76db - description: 'New Feature' + description: "New Feature" aliases: [] -- - name: 'Type: Maintenance' +- name: "Type: Maintenance" color: abd406 - description: 'Repository Maintenance' + description: "Repository Maintenance" aliases: [] -- - name: 'Type: Meta' +- name: "Type: Meta" color: BFD4F2 - description: 'Type: Meta - Related to repository itself' + description: "Type: Meta - Related to repository itself" aliases: [] -- - name: 'Type: Question' +- name: "Type: Question" color: cc317c - description: 'Further information is requested' + description: "Further information is requested" aliases: [] -- - name: 'Type: Refactoring' +- name: "Type: Refactoring" color: fbca04 - description: 'A code change that neither fixes a bug nor adds a feature' + description: "A code change that neither fixes a bug nor adds a feature" aliases: [] -- - name: 'Type: Release' - color: '5319E7' - description: 'Related to release process' +- name: "Type: Release" + color: "5319E7" + description: "Related to release process" aliases: [] -- - name: 'Type: Security' +- name: "Type: Security" color: ee0701 - description: 'Vulnerability disclosure or Fixing security issue' + description: "Vulnerability disclosure or Fixing security issue" aliases: [] -- - name: 'Type: Testing' - color: '257759' - description: 'Adding missing tests or correcting existing tests' +- name: "Type: Testing" + color: "257759" + description: "Adding missing tests or correcting existing tests" aliases: [] diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 636c4a85..d2ebe371 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: -- repo: https://github.com/biomejs/pre-commit + - repo: https://github.com/biomejs/pre-commit rev: "v0.1.0" hooks: - - id: biome-check + - id: biome-check additional_dependencies: ["@biomejs/biome@1.5.2"] diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 00000000..0cdaacd8 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json.schemastore.org/prettierrc", + "plugins": ["prettier-plugin-astro"], + "overrides": [ + { + "files": "*.astro", + "options": { + "parser": "astro" + } + } + ] +} diff --git a/apps/static/package.json b/apps/static/package.json index 9a0c5849..55b7e10d 100644 --- a/apps/static/package.json +++ b/apps/static/package.json @@ -4,6 +4,7 @@ "type": "module", "version": "0.0.1", "scripts": { + "test": "tsc -p . --noEmit", "dev": "astro dev", "start": "astro dev", "build": "astro check && astro build", diff --git a/apps/static/src/components/Card.astro b/apps/static/src/components/Card.astro index bd6d5971..4924058d 100644 --- a/apps/static/src/components/Card.astro +++ b/apps/static/src/components/Card.astro @@ -1,61 +1,61 @@ --- interface Props { - title: string; - body: string; - href: string; + title: string; + body: string; + href: string; } const { href, title, body } = Astro.props; --- diff --git a/apps/static/src/layouts/Layout.astro b/apps/static/src/layouts/Layout.astro index 7b552be1..433a7a3c 100644 --- a/apps/static/src/layouts/Layout.astro +++ b/apps/static/src/layouts/Layout.astro @@ -1,6 +1,6 @@ --- interface Props { - title: string; + title: string; } const { title } = Astro.props; @@ -8,44 +8,44 @@ const { title } = Astro.props; - - - - - - - {title} - - - - + + + + + + + {title} + + + + diff --git a/apps/static/src/pages/index.astro b/apps/static/src/pages/index.astro index fb626287..8dc44ffd 100644 --- a/apps/static/src/pages/index.astro +++ b/apps/static/src/pages/index.astro @@ -1,123 +1,127 @@ --- -import Layout from '../layouts/Layout.astro'; -import Card from '../components/Card.astro'; +import Layout from "../layouts/Layout.astro"; +import Card from "../components/Card.astro"; --- -
- -

Welcome to Astro

-

- To get started, open the directory src/pages in your project.
- Code Challenge: Tweak the "Welcome to Astro" message above. -

- -
+
+ +

Welcome to Astro

+

+ To get started, open the directory src/pages in your project.
+ Code Challenge: Tweak the "Welcome to Astro" message above. +

+ +
diff --git a/apps/static/tsconfig.json b/apps/static/tsconfig.json index 77da9dd0..bcbf8b50 100644 --- a/apps/static/tsconfig.json +++ b/apps/static/tsconfig.json @@ -1,3 +1,3 @@ { "extends": "astro/tsconfigs/strict" -} \ No newline at end of file +} diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.json index 216a554b..4d99118a 100644 --- a/apps/web/tsconfig.json +++ b/apps/web/tsconfig.json @@ -2,11 +2,7 @@ "extends": "@9renpoto/tsconfig", "compilerOptions": { "jsx": "preserve", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], + "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true, @@ -15,14 +11,8 @@ "isolatedModules": true, "incremental": true }, - "include": [ - "next-env.d.ts", - "**/*.ts", - "**/*.tsx" - ], - "exclude": [ - "node_modules" - ], + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], + "exclude": ["node_modules"], "references": [ { "path": "../../packages/ui" diff --git a/package-lock.json b/package-lock.json index ab49a47f..a3a9e8e1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "devDependencies": { "@9renpoto/tsconfig": "^7.8.0", "@types/rosie": "^0.0.45", + "prettier-plugin-astro": "^0.13.0", "rosie": "^2.1.0", "turbo": "^1.11.3" }, @@ -17069,6 +17070,41 @@ "url": "https://github.com/prettier/prettier?sponsor=1" } }, + "node_modules/prettier-plugin-astro": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/prettier-plugin-astro/-/prettier-plugin-astro-0.13.0.tgz", + "integrity": "sha512-5HrJNnPmZqTUNoA97zn4gNQv9BgVhv+et03314WpQ9H9N8m2L9OSV798olwmG2YLXPl1iSstlJCR1zB3x5xG4g==", + "devOptional": true, + "dependencies": { + "@astrojs/compiler": "^1.5.5", + "prettier": "^3.0.0", + "sass-formatter": "^0.7.6" + }, + "engines": { + "node": "^14.15.0 || >=16.0.0" + } + }, + "node_modules/prettier-plugin-astro/node_modules/@astrojs/compiler": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler/-/compiler-1.8.2.tgz", + "integrity": "sha512-o/ObKgtMzl8SlpIdzaxFnt7SATKPxu4oIP/1NL+HDJRzxfJcAkOTAb/ZKMRyULbz4q+1t2/DAebs2Z1QairkZw==", + "devOptional": true + }, + "node_modules/prettier-plugin-astro/node_modules/prettier": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.4.tgz", + "integrity": "sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==", + "devOptional": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/pretty-format": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", @@ -18484,6 +18520,12 @@ "tslib": "^2.1.0" } }, + "node_modules/s.color": { + "version": "0.0.15", + "resolved": "https://registry.npmjs.org/s.color/-/s.color-0.0.15.tgz", + "integrity": "sha512-AUNrbEUHeKY8XsYr/DYpl+qk5+aM+DChopnWOPEzn8YKzOhv4l2zH6LzZms3tOZP3wwdOyc0RmTciyi46HLIuA==", + "devOptional": true + }, "node_modules/safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", @@ -18508,6 +18550,15 @@ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, + "node_modules/sass-formatter": { + "version": "0.7.8", + "resolved": "https://registry.npmjs.org/sass-formatter/-/sass-formatter-0.7.8.tgz", + "integrity": "sha512-7fI2a8THglflhhYis7k06eUf92VQuJoXzEs2KRP0r1bluFxKFvLx0Ns7c478oYGM0fPfrr846ZRWVi2MAgHt9Q==", + "devOptional": true, + "dependencies": { + "suf-log": "^2.5.3" + } + }, "node_modules/sax": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/sax/-/sax-1.3.0.tgz", @@ -19319,6 +19370,15 @@ } } }, + "node_modules/suf-log": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/suf-log/-/suf-log-2.5.3.tgz", + "integrity": "sha512-KvC8OPjzdNOe+xQ4XWJV2whQA0aM1kGVczMQ8+dStAO6KfEB140JEVQ9dE76ONZ0/Ylf67ni4tILPJB41U0eow==", + "devOptional": true, + "dependencies": { + "s.color": "0.0.15" + } + }, "node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", diff --git a/package.json b/package.json index 2f077262..d090785f 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "devDependencies": { "@9renpoto/tsconfig": "^7.8.0", "@types/rosie": "^0.0.45", + "prettier-plugin-astro": "^0.13.0", "rosie": "^2.1.0", "turbo": "^1.11.3" },