Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions configs/biome-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ This configuration package has the purpose of store my common configurations use

### 💡️ What you will find?

For now, you will found 4 configurations, being three of them based on the main one:
For now, you will find 5 configurations, being four of them based on the main one:

- **`base.json`**: stores the basic/global configuration with comprehensive linting rules for JavaScript/TypeScript projects;
- **`base.json`**: stores the basic/global configuration with comprehensive linting rules for JavaScript/TypeScript projects (framework-agnostic);
- **`react.json`**: extends base configuration with React-specific linting rules (hooks, fragments, etc.);
- **`nestjs.jsonc`:** extends base configuration for **Nest.js** projects (allowing decorators, etc.);
Copy link

Copilot AI Dec 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file extension reference is inconsistent with the actual file. The text says "nestjs.jsonc" but the actual file is "nestjs.json" (without the 'c'). This should be corrected to match the actual filename.

Suggested change
- **`nestjs.jsonc`:** extends base configuration for **Nest.js** projects (allowing decorators, etc.);
- **`nestjs.json`:** extends base configuration for **Nest.js** projects (allowing decorators, etc.);

Copilot uses AI. Check for mistakes.
- **`solidjs.json`:** extends base configuration for **SolidJS** projects, changing React-specific rules;
- **`solidjs.json`:** extends base configuration for **SolidJS** projects, with SolidJS-specific rules;
- **`nextjs.json`:** extends base configuration for **Next.js** projects (App Router), disabling `noDefaultExport` rule for specific Next.js files that require default exports.

## ✨ Features
Expand Down Expand Up @@ -94,17 +95,18 @@ To install my package and use it is very simple, you only need to follow the ste

Below, you can find examples of usages:

- for a **React** project, using only the base configuration;
- for a **React** project, using the base configuration and React-specific rules;
- for a **Nest.js** project, using the base configuration and the specific Nest.js configuration with specific rules;
- for a **Next.js** project, using the base configuration and the specific Next.js configuration with App Router rules.
- for a **Next.js** project, using the base configuration, React configuration, and the specific Next.js configuration with App Router rules.

#### React project

```json
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"extends": [
"@tutods/biome-config"
"@tutods/biome-config",
"@tutods/biome-config/react"
]
}
```
Expand All @@ -128,6 +130,7 @@ Below, you can find examples of usages:
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"extends": [
"@tutods/biome-config",
"@tutods/biome-config/react",
"@tutods/biome-config/nextjs"
]
}
Expand Down
18 changes: 0 additions & 18 deletions configs/biome-config/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,12 @@
"complexity": {
"recommended": true,
"noForEach": "off",
"noUselessFragments": {
"level": "error",
"fix": "safe",
"options": {}
},
"noUselessStringConcat": "error",
"noUselessTernary": "error",
"noUselessEscapeInRegex": "error"
},
"correctness": {
"recommended": true,
"useHookAtTopLevel": "error",
"noUnusedImports": {
"fix": "safe",
"level": "error",
Expand Down Expand Up @@ -189,8 +183,6 @@
"useAwaitThenable": "error",
"useRegexpExec": "warn",
"noEqualsToNull": "error",
"noLeakedRender": "error",
"noDuplicatedSpreadProps": "error",
"noAmbiguousAnchorText": "warn",
"noMultiStr": "error"
},
Expand All @@ -202,16 +194,6 @@
}
},
"overrides": [
{
"includes": ["**/*.jsx", "**/*.tsx"],
"linter": {
"rules": {
"style": {
"noImplicitBoolean": "off"
}
}
}
},
{
"includes": [
"**/rsbuild.config.ts",
Expand Down
3 changes: 0 additions & 3 deletions configs/biome-config/nestjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
"style": {
"useImportType": "off"
},
"correctness": {
"useHookAtTopLevel": "off"
},
"a11y": {
"recommended": false
},
Expand Down
1 change: 1 addition & 0 deletions configs/biome-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"main": "base.json",
"exports": {
".": "./base.json",
"./react": "./react.json",
"./nestjs": "./nestjs.json",
"./solidjs": "./solidjs.json",
"./nextjs": "./nextjs.json"
Expand Down
33 changes: 33 additions & 0 deletions configs/biome-config/react.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.10/schema.json",
"linter": {
"rules": {
"complexity": {
"noUselessFragments": {
"level": "error",
"fix": "safe",
"options": {}
}
},
"correctness": {
"useHookAtTopLevel": "error"
},
"nursery": {
"noLeakedRender": "error",
"noDuplicatedSpreadProps": "error"
}
}
},
"overrides": [
{
"includes": ["**/*.jsx", "**/*.tsx"],
"linter": {
"rules": {
"style": {
"noImplicitBoolean": "off"
}
}
}
}
]
}
3 changes: 0 additions & 3 deletions configs/biome-config/solidjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"rules": {
"suspicious": {
"noReactSpecificProps": "error"
},
"correctness": {
"useHookAtTopLevel": "off"
}
}
},
Expand Down
Loading