Skip to content

Commit cb9d410

Browse files
committed
Format JSON files, tests, use gitignore with Biome
1 parent 552bfb9 commit cb9d410

4 files changed

Lines changed: 30 additions & 19 deletions

File tree

.oxlintrc.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/oxc-project/oxc/refs/tags/oxlint_v1.13.0/npm/oxlint/configuration_schema.json",
3-
"plugins": ["typescript", "unicorn", "react", "nextjs", "import", "oxc", "node", "promise", "vitest"],
43
"ignorePatterns": [".pnp.cjs", ".pnp.loader.mjs", ".yarn", ".next", "out"],
4+
"plugins": [
5+
"typescript",
6+
"unicorn",
7+
"react",
8+
"nextjs",
9+
"import",
10+
"oxc",
11+
"node",
12+
"promise",
13+
"vitest"
14+
],
515
"rules": {
616
"typescript/no-redundant-type-constituents": "off", // This is bugged
717
"typescript/no-confusing-void-expression": "off",

__tests__/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { render, screen } from '@testing-library/react'
12
import React from 'react'
23
import { expect, test } from 'vitest'
3-
import { render, screen } from '@testing-library/react'
44
import Home from '../pages/index'
55

66
test('renders a heading', () => {

biome.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
{
22
"$schema": "https://biomejs.dev/schemas/2.2.2/schema.json",
3-
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
3+
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
44
"files": {
55
"ignoreUnknown": false,
6-
"includes": ["imports/**/*", "pages/**/*", "*.config.js", "*.config.mjs", "*.ts"]
6+
"includes": [
7+
"__tests__/**/*",
8+
"imports/**/*",
9+
"pages/**/*",
10+
"*.config.js",
11+
"*.config.mjs",
12+
"*.ts",
13+
"*.json"
14+
]
715
},
816
"formatter": {
917
"enabled": true,
@@ -19,6 +27,11 @@
1927
"selfCloseVoidElements": "always"
2028
}
2129
},
30+
"json": {
31+
"parser": {
32+
"allowComments": true
33+
}
34+
},
2235
"javascript": {
2336
"formatter": {
2437
"jsxQuoteStyle": "single",

tsconfig.json

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,11 @@
1616
"allowJs": true,
1717
"strict": true,
1818
// Next.js starts here.
19-
"lib": [
20-
"dom",
21-
"dom.iterable",
22-
"esnext"
23-
],
19+
"lib": ["dom", "dom.iterable", "esnext"],
2420
"forceConsistentCasingInFileNames": true,
2521
"isolatedModules": true,
2622
"incremental": true
2723
},
28-
"include": [
29-
"pages/**/*",
30-
"imports/**/*",
31-
"__tests__/**/*",
32-
"index.d.ts",
33-
"next-env.d.ts"
34-
],
35-
"exclude": [
36-
"node_modules"
37-
]
24+
"include": ["pages/**/*", "imports/**/*", "__tests__/**/*", "index.d.ts", "next-env.d.ts"],
25+
"exclude": ["node_modules"]
3826
}

0 commit comments

Comments
 (0)