-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(core): Use biomejs and fix next-intl
- Loading branch information
Showing
119 changed files
with
4,318 additions
and
6,001 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json", | ||
"changelog": ["@changesets/changelog-github", { "repo": "wootsbot/X-boilerplate" }], | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "restricted", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [], | ||
"privatePackages": { | ||
"version": true, | ||
"tag": true | ||
} | ||
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json", | ||
"changelog": ["@changesets/changelog-github", { "repo": "wootsbot/X-boilerplate" }], | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "restricted", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [], | ||
"privatePackages": { | ||
"version": true, | ||
"tag": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
{ | ||
"mode": "pre", | ||
"tag": "beta", | ||
"initialVersions": { | ||
"x-boilerplate": "0.1.0" | ||
}, | ||
"changesets": [ | ||
"afraid-otters-shave", | ||
"angry-pandas-exist", | ||
"chilled-hairs-tease", | ||
"dirty-shoes-lick", | ||
"eight-oranges-accept", | ||
"eighty-adults-protect", | ||
"empty-ants-watch", | ||
"fifty-lemons-behave", | ||
"fresh-panthers-drive", | ||
"giant-zoos-glow", | ||
"gold-squids-allow", | ||
"grumpy-tomatoes-shave", | ||
"happy-hats-dress", | ||
"honest-kids-lie", | ||
"light-dolls-remember", | ||
"lucky-parents-fix", | ||
"mean-pumas-beam", | ||
"nice-phones-invent", | ||
"proud-hounds-smoke", | ||
"purple-maps-return", | ||
"quick-pens-shake", | ||
"rude-bags-lick", | ||
"serious-ties-talk", | ||
"sharp-colts-wait", | ||
"spicy-rings-dress", | ||
"strange-seals-decide", | ||
"tidy-panthers-dance", | ||
"tricky-flowers-hunt", | ||
"twelve-humans-work", | ||
"warm-bats-search", | ||
"witty-tips-check", | ||
"young-jars-sell" | ||
] | ||
"mode": "pre", | ||
"tag": "beta", | ||
"initialVersions": { | ||
"x-boilerplate": "0.1.0" | ||
}, | ||
"changesets": [ | ||
"afraid-otters-shave", | ||
"angry-pandas-exist", | ||
"chilled-hairs-tease", | ||
"dirty-shoes-lick", | ||
"eight-oranges-accept", | ||
"eighty-adults-protect", | ||
"empty-ants-watch", | ||
"fifty-lemons-behave", | ||
"fresh-panthers-drive", | ||
"giant-zoos-glow", | ||
"gold-squids-allow", | ||
"grumpy-tomatoes-shave", | ||
"happy-hats-dress", | ||
"honest-kids-lie", | ||
"light-dolls-remember", | ||
"lucky-parents-fix", | ||
"mean-pumas-beam", | ||
"nice-phones-invent", | ||
"proud-hounds-smoke", | ||
"purple-maps-return", | ||
"quick-pens-shake", | ||
"rude-bags-lick", | ||
"serious-ties-talk", | ||
"sharp-colts-wait", | ||
"spicy-rings-dress", | ||
"strange-seals-decide", | ||
"tidy-panthers-dance", | ||
"tricky-flowers-hunt", | ||
"twelve-humans-work", | ||
"warm-bats-search", | ||
"witty-tips-check", | ||
"young-jars-sell" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"x-boilerplate": minor | ||
--- | ||
|
||
Use biomejs and fix next-intl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
pnpm commitlint --edit $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
pnpm lint-staged | ||
pnpm lint |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/lib", | ||
"typescript.enablePromptUseWorkspaceTsdk": true | ||
} | ||
"typescript.tsdk": "node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/lib", | ||
"typescript.enablePromptUseWorkspaceTsdk": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", | ||
"vcs": { | ||
"enabled": false, | ||
"clientKind": "git", | ||
"useIgnoreFile": false | ||
}, | ||
"files": { | ||
"ignoreUnknown": false, | ||
"ignore": [".next/**", "public/**", "node_modules/**", "pnpm-lock.yaml", "playwright-report/**"] | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"useEditorconfig": true, | ||
"formatWithErrors": false, | ||
"indentStyle": "tab", | ||
"indentWidth": 2, | ||
"lineEnding": "lf", | ||
"lineWidth": 120, | ||
"attributePosition": "auto", | ||
"bracketSpacing": true, | ||
"ignore": [".next", "node_modules", "pnpm-lock.yaml", "playwright-report"] | ||
}, | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true, | ||
"style": { | ||
"noUselessElse": "error", | ||
"useImportType": "error", | ||
"useShorthandFunctionType": "error", | ||
"useAsConstAssertion": "error", | ||
"noNamespace": "error", | ||
"noInferrableTypes": "error" | ||
}, | ||
"suspicious": { | ||
"noConsoleLog": "warn", | ||
"noEmptyInterface": "warn", | ||
"noExplicitAny": "warn", | ||
"noExtraNonNullAssertion": "error" | ||
}, | ||
"correctness": { | ||
"useHookAtTopLevel": "error", | ||
"useExhaustiveDependencies": "warn", | ||
"noChildrenProp": "error", | ||
"noPrecisionLoss": "error", | ||
"noUnusedVariables": "error", | ||
"noUnusedImports": "error" | ||
}, | ||
"performance": { | ||
"noDelete": "error" | ||
}, | ||
"complexity": { | ||
"noBannedTypes": "error", | ||
"noUselessThisAlias": "error", | ||
"noForEach": "error", | ||
"noUselessTypeConstraint": "error", | ||
"useLiteralKeys": "error", | ||
"useOptionalChain": "error" | ||
} | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"jsxQuoteStyle": "double", | ||
"quoteProperties": "asNeeded", | ||
"trailingCommas": "all", | ||
"semicolons": "always", | ||
"arrowParentheses": "always", | ||
"bracketSameLine": false, | ||
"quoteStyle": "double", | ||
"attributePosition": "auto", | ||
"bracketSpacing": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'body-leading-blank': [2, 'always'], | ||
'body-max-line-length': [2, 'always', 200], | ||
'header-max-length': [2, 'always', 200], | ||
'scope-empty': [2, 'never'], | ||
'subject-case': [2, 'always', ['sentence-case', 'start-case', 'pascal-case', 'upper-case']], | ||
'subject-empty': [2, 'never'], | ||
'subject-full-stop': [2, 'never', '.'], | ||
'type-case': [2, 'always', 'lower-case'], | ||
'type-empty': [2, 'never'], | ||
}, | ||
extends: ["@commitlint/config-conventional"], | ||
rules: { | ||
"body-leading-blank": [2, "always"], | ||
"body-max-line-length": [2, "always", 200], | ||
"header-max-length": [2, "always", 200], | ||
"scope-empty": [2, "never"], | ||
"subject-case": [2, "always", ["sentence-case", "start-case", "pascal-case", "upper-case"]], | ||
"subject-empty": [2, "never"], | ||
"subject-full-stop": [2, "never", "."], | ||
"type-case": [2, "always", "lower-case"], | ||
"type-empty": [2, "never"], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
import { expect, test } from '@playwright/test'; | ||
import { expect, test } from "@playwright/test"; | ||
|
||
test.describe('Home Page', () => { | ||
test('must has title', async ({ page }) => { | ||
await page.goto('/'); | ||
await expect(page).toHaveTitle(/X Boilerplate/); | ||
}); | ||
test.describe("Home Page", () => { | ||
test("must has title", async ({ page }) => { | ||
await page.goto("/"); | ||
await expect(page).toHaveTitle(/X Boilerplate/); | ||
}); | ||
|
||
// test('get started link', async ({ page }) => { | ||
// await page.goto('/'); | ||
// test('get started link', async ({ page }) => { | ||
// await page.goto('/'); | ||
|
||
// await page.click('text=🍍 State Management X-state'); | ||
// await expect(page).toHaveURL(/x-state/); | ||
// await expect(page.locator('h1')).toContainText('🍍'); | ||
// await expect(page.getByRole('heading', { name: 'Hi X-State!' })).toBeVisible(); | ||
// await expect(page.locator('p')).toContainText('Promise canine example.'); | ||
// await expect(page.getByRole('button', { name: 'Get Dog data' })).toBeVisible(); | ||
// await expect(page.getByRole('button', { name: 'Reset Dog data' })).toBeVisible(); | ||
// await expect(page.getByRole('button', { name: 'Retry Dog data' })).toBeVisible(); | ||
// await page.click('text=🍍 State Management X-state'); | ||
// await expect(page).toHaveURL(/x-state/); | ||
// await expect(page.locator('h1')).toContainText('🍍'); | ||
// await expect(page.getByRole('heading', { name: 'Hi X-State!' })).toBeVisible(); | ||
// await expect(page.locator('p')).toContainText('Promise canine example.'); | ||
// await expect(page.getByRole('button', { name: 'Get Dog data' })).toBeVisible(); | ||
// await expect(page.getByRole('button', { name: 'Reset Dog data' })).toBeVisible(); | ||
// await expect(page.getByRole('button', { name: 'Retry Dog data' })).toBeVisible(); | ||
|
||
// await page.getByRole('button', { name: /Get Dog data/i }).click(); | ||
// await expect(page.getByText('Loading Image...')).toBeVisible(); | ||
// await expect(page.getByRole('img', { name: 'dog' })).toBeVisible(); | ||
// await page.getByRole('button', { name: /Get Dog data/i }).click(); | ||
// await expect(page.getByText('Loading Image...')).toBeVisible(); | ||
// await expect(page.getByRole('img', { name: 'dog' })).toBeVisible(); | ||
|
||
// await page.getByRole('button', { name: /Reset Dog data/i }).click(); | ||
// await expect(page.getByText('Loading Image...')).not.toBeVisible(); | ||
// await expect(page.getByRole('img', { name: 'dog' })).not.toBeVisible(); | ||
// await page.getByRole('button', { name: /Reset Dog data/i }).click(); | ||
// await expect(page.getByText('Loading Image...')).not.toBeVisible(); | ||
// await expect(page.getByRole('img', { name: 'dog' })).not.toBeVisible(); | ||
|
||
// await page.getByRole('button', { name: /Retry Dog data/i }).click(); | ||
// await expect(page.getByText('Loading Image...')).toBeVisible(); | ||
// await expect(page.getByRole('img', { name: 'dog' })).toBeVisible(); | ||
// await page.getByRole('button', { name: /Retry Dog data/i }).click(); | ||
// await expect(page.getByText('Loading Image...')).toBeVisible(); | ||
// await expect(page.getByRole('img', { name: 'dog' })).toBeVisible(); | ||
|
||
// await page.click('text=Go back'); | ||
// await expect(page).toHaveURL('/'); | ||
// }); | ||
// await page.click('text=Go back'); | ||
// await expect(page).toHaveURL('/'); | ||
// }); | ||
}); |
Oops, something went wrong.