diff --git a/.github/renovate.json b/.github/renovate.json index 3a9d450..66937d2 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,5 +1,3 @@ { - "extends": [ - "@ow3" - ] + "extends": ["@ow3"] } diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 6b81632..6e2bafd 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,6 +1,6 @@ { "recommendations": [ - "dbaeumer.vscode-eslint", + "biomejs.biome", "streetsidesoftware.code-spell-checker", "davidanson.vscode-markdownlint" ] diff --git a/.vscode/settings.json b/.vscode/settings.json index def79f9..ad2648b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,80 +1,17 @@ { "typescript.tsdk": "node_modules/typescript/lib", - // Enable the ESlint flat config support - "eslint.experimental.useFlatConfig": true, - // Disable the default formatter, use eslint instead "prettier.enable": false, - "editor.formatOnSave": false, - // Auto fix + "editor.defaultFormatter": "biomejs.biome", + "editor.formatOnSave": true, "editor.codeActionsOnSave": { - "source.fixAll.eslint": "explicit", - "source.organizeImports": "never" + "quickfix.biome": "explicit", + "source.organizeImports.biome": "explicit" }, - // Silent the stylistic rules in you IDE, but still auto fix them - "eslint.rules.customizations": [ - { - "rule": "style/*", - "severity": "off" - }, - { - "rule": "format/*", - "severity": "off" - }, - { - "rule": "*-indent", - "severity": "off" - }, - { - "rule": "*-spacing", - "severity": "off" - }, - { - "rule": "*-spaces", - "severity": "off" - }, - { - "rule": "*-order", - "severity": "off" - }, - { - "rule": "*-dangle", - "severity": "off" - }, - { - "rule": "*-newline", - "severity": "off" - }, - { - "rule": "*quotes", - "severity": "off" - }, - { - "rule": "*semi", - "severity": "off" - } - ], - // Enable eslint for all supported languages - "eslint.validate": [ - "javascript", - "javascriptreact", - "typescript", - "typescriptreact", - "vue", - "stx", - "html", - "markdown", - "json", - "jsonc", - "yaml", - "toml" - ], - "cSpell.ignorePaths": [ - "node_modules", - "lang/de.yml" - ], - "cSpell.dictionaries": [ - "custom-dictionary" - ], + "[jsonc]": { + "editor.defaultFormatter": "biomejs.biome" + }, + "cSpell.ignorePaths": ["node_modules"], + "cSpell.dictionaries": ["custom-dictionary"], "cSpell.diagnosticLevel": "Hint", "cSpell.customDictionaries": { "bun-plugin-yml": { @@ -83,6 +20,6 @@ "scope": "user", "addWords": true }, - "custom": true // enable the `custom` dictionary + "custom": true } } diff --git a/LICENSE.md b/LICENSE.md index dd2a5dc..1aef080 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ # MIT License -Copyright (c) 2023 Open Web Foundation +Copyright (c) 2024 Open Web Foundation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/biome.json b/biome.json new file mode 100644 index 0000000..f06f614 --- /dev/null +++ b/biome.json @@ -0,0 +1,4 @@ +{ + "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", + "extends": ["@stacksjs/biome-config"] +} diff --git a/bun.lockb b/bun.lockb index 9f2c5a2..ba3f66a 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/eslint.config.js b/eslint.config.js deleted file mode 100644 index 80fe98d..0000000 --- a/eslint.config.js +++ /dev/null @@ -1,8 +0,0 @@ -import stacks from '@stacksjs/eslint-config' - -export default stacks({ - stylistic: { - indent: 2, // 4, or 'tab' - quotes: 'single', // or 'double' - }, -}) diff --git a/package.json b/package.json index da3e065..e6a3d7c 100644 --- a/package.json +++ b/package.json @@ -35,14 +35,11 @@ }, "module": "./dist/index.js", "types": "./dist/index.d.ts", - "files": [ - "dist", - "src" - ], + "files": ["dist", "src"], "scripts": { "build": "bun build.ts", - "lint": "bunx eslint .", - "lint:fix": "bunx eslint . --fix", + "lint": "biome check .", + "lint:fix": "biome check --fix .", "fresh": "bunx rimraf node_modules/ bun.lock && bun i", "commit": "git cz", "changelog": "bunx changelogen --output CHANGELOG.md", @@ -52,14 +49,14 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { + "@biomejs/biome": "^1.9.2", "@commitlint/cli": "^19.5.0", - "@stacksjs/eslint-config": "^0.59.11", + "@stacksjs/biome-config": "^0.1.5", "@types/bun": "^1.1.10", "bumpp": "^9.5.2", "changelogen": "^0.5.7", "commitizen": "^4.3.0", "cz-git": "^1.9.4", - "eslint": "^9.11.1", "lint-staged": "^15.2.10", "simple-git-hooks": "^2.11.1", "typescript": "^5.6.2" @@ -69,7 +66,7 @@ "commit-msg": "bunx --no -- commitlint --edit $1" }, "lint-staged": { - "*.{js,jsx,ts,tsx,vue}": "eslint --fix" + "*.{js,jsx,ts,tsx,vue}": "biome check --fix ." }, "config": { "commitizen": { diff --git a/tsconfig.json b/tsconfig.json index 8e4e6e6..0cac06d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,16 +2,12 @@ "compilerOptions": { "incremental": true, "target": "esnext", - "lib": [ - "esnext" - ], + "lib": ["esnext"], "moduleDetection": "force", "module": "esnext", "moduleResolution": "bundler", "resolveJsonModule": true, - "types": [ - "node" - ], + "types": ["node"], "allowImportingTsExtensions": true, "strict": true, "strictNullChecks": true,