Skip to content

Commit cd3fb3f

Browse files
biome format, add experience templates
1 parent 413d588 commit cd3fb3f

39 files changed

+1543
-865
lines changed

biome.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
3+
"vcs": {
4+
"enabled": false,
5+
"clientKind": "git",
6+
"useIgnoreFile": false
7+
},
8+
"files": {
9+
"ignoreUnknown": false
10+
},
11+
"formatter": {
12+
"enabled": true,
13+
"indentStyle": "tab"
14+
},
15+
"linter": {
16+
"enabled": true,
17+
"rules": {
18+
"recommended": true
19+
}
20+
},
21+
"javascript": {
22+
"formatter": {
23+
"quoteStyle": "double"
24+
}
25+
},
26+
"assist": {
27+
"enabled": true,
28+
"actions": {
29+
"source": {
30+
"organizeImports": "on"
31+
}
32+
}
33+
}
34+
}

eslint.config.js

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
1-
import js from '@eslint/js'
2-
import globals from 'globals'
3-
import reactPlugin from 'eslint-plugin-react'
4-
import reactHooks from 'eslint-plugin-react-hooks'
5-
import reactRefresh from 'eslint-plugin-react-refresh'
6-
import { defineConfig, globalIgnores } from 'eslint/config'
1+
import js from "@eslint/js";
2+
import { defineConfig, globalIgnores } from "eslint/config";
3+
import reactPlugin from "eslint-plugin-react";
4+
import reactHooks from "eslint-plugin-react-hooks";
5+
import reactRefresh from "eslint-plugin-react-refresh";
6+
import globals from "globals";
77

88
export default defineConfig([
9-
globalIgnores(['dist']),
10-
{
11-
files: ['**/*.{js,jsx}'],
12-
extends: [
13-
js.configs.recommended,
14-
reactPlugin.configs.flat.recommended,
15-
reactPlugin.configs.flat['jsx-runtime'],
16-
reactHooks.configs['recommended-latest'],
17-
reactRefresh.configs.vite,
18-
],
19-
plugins: {
20-
react: reactPlugin,
21-
},
22-
languageOptions: {
23-
ecmaVersion: 'latest',
24-
globals: globals.browser,
25-
parserOptions: {
26-
ecmaFeatures: { jsx: true },
27-
sourceType: 'module',
28-
},
29-
},
30-
settings: {
31-
react: {
32-
version: 'detect',
33-
},
34-
},
35-
rules: {
36-
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
37-
},
38-
},
39-
{
40-
files: ['tests/**/*.{js,jsx}'],
41-
languageOptions: {
42-
globals: {
43-
...globals.browser,
44-
...globals.node,
45-
...globals.vitest,
46-
},
47-
},
48-
},
49-
])
9+
globalIgnores(["dist"]),
10+
{
11+
files: ["**/*.{js,jsx}"],
12+
extends: [
13+
js.configs.recommended,
14+
reactPlugin.configs.flat.recommended,
15+
reactPlugin.configs.flat["jsx-runtime"],
16+
reactHooks.configs["recommended-latest"],
17+
reactRefresh.configs.vite,
18+
],
19+
plugins: {
20+
react: reactPlugin,
21+
},
22+
languageOptions: {
23+
ecmaVersion: "latest",
24+
globals: globals.browser,
25+
parserOptions: {
26+
ecmaFeatures: { jsx: true },
27+
sourceType: "module",
28+
},
29+
},
30+
settings: {
31+
react: {
32+
version: "detect",
33+
},
34+
},
35+
rules: {
36+
"no-unused-vars": ["error", { varsIgnorePattern: "^[A-Z_]" }],
37+
},
38+
},
39+
{
40+
files: ["tests/**/*.{js,jsx}"],
41+
languageOptions: {
42+
globals: {
43+
...globals.browser,
44+
...globals.node,
45+
...globals.vitest,
46+
},
47+
},
48+
},
49+
]);

notes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Update the homepage to use a JSON-based English ↔ Elvish mapping instead of a
1919
}
2020
```
2121
- Use the `"elvish"` value for initial rendering.
22-
- Font: Tengwar (assume `src/assets/fonts/tengwarfeanorregular.ttf`).
22+
- Font: Tengwar (assume `/assets/fonts/tengwarfeanorregular.ttf`).
2323
- Button: `"Click here to translate"` appears below the blurb.
2424

2525
### On Translate Button Click
@@ -48,10 +48,10 @@ Update the homepage to use a JSON-based English ↔ Elvish mapping instead of a
4848
}
4949
```
5050
- **Themes**:
51-
- `theme-parchment`: parchment background, Elvish font, use the parchment background available at `src/assets/images/parchment-bg.jpg`.
51+
- `theme-parchment`: parchment background, Elvish font, use the parchment background available at `/assets/images/parchment-bg.jpg`.
5252
- `theme-dark`: dark gothic background, serif font.
5353
- **Fonts**:
54-
- Assume Tengwar font file exists at `/src/assets/fonts/tengwarfeanorregular.ttf`.
54+
- Assume Tengwar font file exists at `//assets/fonts/tengwarfeanorregular.ttf`.
5555

5656
### Deliverables
5757
- Updated `Home.jsx` with theme + language toggle logic.

package-lock.json

Lines changed: 164 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,css,md,json}\"",
1313
"test": "vitest",
1414
"deploy": "gh-pages -d dist"
15-
1615
},
1716
"dependencies": {
1817
"framer-motion": "^12.23.21",
@@ -23,6 +22,7 @@
2322
"react-router-dom": "^7.9.3"
2423
},
2524
"devDependencies": {
25+
"@biomejs/biome": "2.2.5",
2626
"@eslint/js": "^9.36.0",
2727
"@testing-library/jest-dom": "^6.6.3",
2828
"@testing-library/react": "^16.2.0",
File renamed without changes.

0 commit comments

Comments
 (0)