Skip to content
Draft
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
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ format-check:

format-generated:
pnpm install
pnpm eslint --config eslint.config.generated.mjs --fix 'packages_generated/**/*.ts'
pnpm biome format --write packages_generated/
# Cleanup unused imports/variables in generated TS with dedicated config
pnpm biome lint --write --unsafe --config-path scripts/templates/biome.generated.json packages_generated/

typing:
pnpm run typecheck
Expand All @@ -26,7 +26,7 @@ lint:
pnpm run lint

test:
pnpm turbo test
pnpm run test

test-coverage:
pnpm run test:coverage
Expand Down
86 changes: 52 additions & 34 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,13 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": false,
"useIgnoreFile": true,
"defaultBranch": "main"
},
"files": {
"maxSize": 10000000,
"ignoreUnknown": true,
"includes": [
"**/*.ts",
"**/*.tsx",
"**/*.js",
"**/*.jsx",
"**/*.json"
],
"experimentalScannerIgnores": [
".next/",
".pnpm-store/",
"coverage/",
"/public/outdated",
"/public/.well-known",
"**/node_modules/",
"**/storybook-static",
".turbo/**",
"dist",
"build",
"out",
"node_modules/**",
"**/pnpm-lock.yaml",
"**/package.json",
"**/CHANGELOG.md",
"*.snap",
"**/__snapshots__/",
".docusaurus",
".vitest-reports",
"**/*.gen.ts"
]
"ignoreUnknown": true
},
"formatter": {
"enabled": true,
Expand Down Expand Up @@ -72,12 +43,59 @@
}
},
"linter": {
"enabled": false
"enabled": true,
"rules": {
"recommended": true,
"style": {
"noDefaultExport": "error"
}
}
},
"overrides": [
{
"includes": ["packages_generated/**", "**/dist/**", "coverage/**", "**/examples/**", "**/*.gen.ts"],
"linter": {
"enabled": false
}
},
{
"includes": ["vite.config.ts", "vitest.config.ts", "**/*.config.ts", "**/*.config.js"],
"linter": {
"rules": {
"style": {
"noDefaultExport": "off"
}
}
}
},
{
"includes": ["**/*.test.ts", "**/__tests__/**/*.ts"],
"linter": {
"rules": {
"correctness": {
"noUnusedVariables": "off"
},
"style": {
"useNamingConvention": "off"
}
}
}
},
{
"includes": ["packages/client/src/internal/interceptors/types.ts", "packages/client/src/scw/auth.ts", "packages/client/src/scw/fetch/http-interceptors.ts"],
"linter": {
"rules": {
"style": {
"useShorthandFunctionType": "off"
}
}
}
}
],
"assist": {
"actions": {
"source": {
"organizeImports": "off"
"organizeImports": "on"
}
}
}
Expand Down
66 changes: 0 additions & 66 deletions eslint.config.generated.mjs

This file was deleted.

122 changes: 0 additions & 122 deletions eslint.config.mjs

This file was deleted.

32 changes: 13 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,30 @@
"build:profile": "cross-env PROFILE=true pnpm run build",
"commit": "npx git-cz -a",
"doc": "typedoc",
"format": "biome check --linter-enabled=false --write .",
"format:check": "biome check --linter-enabled=false --verbose .",
"format": "biome format --write .",
"format:check": "biome format .",
"format:generated": "biome check --write --linter-enabled=false packages_generated",
"prettier": "prettier --write '**/*.{md,mdx,yml,yaml}'",
"lint": "eslint --cache .",
"lint": "biome lint .",
"check": "biome check .",
"prepare": "husky",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"test:junit": "vitest --reporter=junit --outputFile=test-report.junit.xml",
"test:ui": "vitest --ui"
},
"lint-staged": {
"*.ts": [
"pnpm run format",
"eslint --fix --quiet ."
"packages/*/src/**/*.{ts,tsx,js,jsx}": [
"biome check --write --no-errors-on-unmatched --files-ignore-unknown=true"
],
"*.json": [
"pnpm run format"
"scripts/**/*.ts": [
"biome check --write --no-errors-on-unmatched --files-ignore-unknown=true"
],
"*.y?(a)ml": [
"prettier --write '**/*.{yml,yaml}'"
"prettier --write"
],
".md?(x)": [
"prettier --write '**/*.{md,mdx}'"
"*.md?(x)": [
"prettier --write"
]
},
"config": {
Expand All @@ -63,9 +64,6 @@
"@commitlint/cli": "19.8.1",
"@commitlint/config-conventional": "19.8.1",
"@manypkg/cli": "0.24.0",
"@scaleway/eslint-config-react": "4.0.9",
"@typescript-eslint/eslint-plugin": "8.40.0",
"@typescript-eslint/parser": "8.40.0",
"@vitest/coverage-istanbul": "3.1.2",
"@vitest/coverage-v8": "3.1.2",
"@vitest/ui": "3.1.2",
Expand All @@ -75,8 +73,6 @@
"cross-fetch": "4.1.0",
"cz-conventional-changelog": "3.3.0",
"esbuild-plugin-browserslist": "1.0.1",
"eslint": "9.33.0",
"eslint-plugin-tsdoc": "0.4.0",
"husky": "9.1.7",
"jsdom": "26.1.0",
"lerna": "8.2.3",
Expand All @@ -89,9 +85,7 @@
"typedoc": "0.27.6",
"typescript": "5.8.3",
"vite": "6.4.1",
"vitest": "3.1.2",
"eslint-plugin-unused-imports": "^4.2.0",
"eslint-plugin-import": "^2.32.0"
"vitest": "3.1.2"
},
"packageManager": "[email protected]"
}
Loading