Skip to content

Commit

Permalink
chore: replace eslint by biome (#78)
Browse files Browse the repository at this point in the history
* chore: install biome

* chore: remove eslint/prettier
  • Loading branch information
c100k authored Oct 6, 2024
1 parent 0f22596 commit 11c8368
Show file tree
Hide file tree
Showing 10 changed files with 117 additions and 2,142 deletions.
79 changes: 0 additions & 79 deletions .eslintrc.cjs

This file was deleted.

5 changes: 0 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ updates:
directory: "/"
schedule:
interval: "weekly"
ignore:
- dependency-name: "eslint"
versions: ["9.x"]
- dependency-name: "eslint-plugin-sonarjs"
versions: ["2.0.0", "2.0.1", "2.0.2", "2.0.3"]
groups:
dev:
dependency-type: "development"
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ build
node_modules

# Files (A => Z)
.eslintcache
6 changes: 0 additions & 6 deletions .prettierrc.cjs

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

## spec/v0.4.1 (unreleased)

* chore: replace eslint/prettier by biome
* chore: upgrade to node 22
* chore: simplify linting
* style: centralize eslint config
* chore: make tsconfig stricter

## http-server-go/v0.4.0 (2024-08-05)
Expand Down
24 changes: 24 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"formatter": {
"indentStyle": "space",
"indentWidth": 4
},
"javascript": {
"formatter": {
"quoteStyle": "single"
},
"parser": {
"unsafeParameterDecoratorsEnabled": true
}
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"organizeImports": {
"enabled": true
}
}
15 changes: 3 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,12 @@
"version": "0.4.0",
"type": "module",
"scripts": {
"lint": "eslint . --cache --debug --fix",
"lint:ci": "eslint .",
"lint": "biome check --write .",
"lint:ci": "biome check",
"test": "tsc"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"eslint": "^8.57.1",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-sonarjs": "^1.0.4",
"eslint-plugin-typescript-sort-keys": "^3.2.0",
"eslint-plugin-unicorn": "^55.0.0",
"prettier": "^3.3.3",
"prettier-plugin-package": "^1.4.0",
"@biomejs/biome": "^1.9.3",
"tsoa": "^6.4.0",
"typescript": "^5.6.2"
}
Expand Down
3 changes: 2 additions & 1 deletion spec/generate-swagger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ const outputDirectory = join(specBasePath, '_generated');
const specOptions: ExtendedSpecConfig = {
basePath: '/',
controllerPathGlobs: [controllersPath],
description: `Find all the details about this specification on the [GitHub repository](https://github.com/c100k/rebootx-on-prem).`,
description:
'Find all the details about this specification on the [GitHub repository](https://github.com/c100k/rebootx-on-prem).',
entryFile: 'index.ts',
host: 'localhost:9001/cd5331ba',
name: 'RebootX On-Prem Specification',
Expand Down
2 changes: 1 addition & 1 deletion spec/schema/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface ListQueryParams {
offset?: number;
}

export interface ListRes<T extends Object> {
export interface ListRes<T extends {}> {
items: T[];

/**
Expand Down
Loading

0 comments on commit 11c8368

Please sign in to comment.