switch to biome

This commit is contained in:
Joel Wetzell
2026-07-13 14:05:42 -05:00
parent fbe6c5bdab
commit 4bb1e87e03
6 changed files with 218 additions and 1207 deletions
-2
View File
@@ -1,2 +0,0 @@
*.md
*.min.*
-8
View File
@@ -1,8 +0,0 @@
module.exports = {
trailingComma: 'es5',
tabWidth: 2,
semi: true,
singleQuote: true,
bracketSameLine: true,
printWidth: 120,
};
+34
View File
@@ -0,0 +1,34 @@
{
"$schema": "https://biomejs.dev/schemas/2.5.3/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"linter": {
"enabled": true,
"rules": {
"preset": "recommended"
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
}
}
-13
View File
@@ -1,13 +0,0 @@
import pluginJs from '@eslint/js';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import globals from 'globals';
import tseslint from 'typescript-eslint';
/** @type {import('eslint').Linter.Config[]} */
export default [
{ files: ['**/*.{js,mjs,cjs,ts}'] },
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
eslintPluginPrettierRecommended,
];
+177 -1174
View File
File diff suppressed because it is too large Load Diff
+7 -10
View File
@@ -18,9 +18,10 @@
"example:client": "node examples/psn_client.js",
"example:server": "node examples/psn_server.js",
"prepublishOnly": "npm run build",
"lint:check": "eslint ./src",
"format:check": "prettier ./ --check",
"format:write": "prettier ./ --write",
"lint:check": "biome lint",
"lint:write": "biome lint --write",
"format:check": "biome format",
"format:write": "biome format --write",
"pretest": "npm run build",
"test": "node --test --experimental-test-coverage"
},
@@ -35,16 +36,12 @@
"repository": "https://github.com/jwetzell/psn-js",
"license": "MIT",
"devDependencies": {
"@biomejs/biome": "2.5.3",
"@eslint/js": "10.0.1",
"@types/node": "24.7.2",
"eslint": "10.7.0",
"eslint-config-prettier": "10.1.8",
"eslint-plugin-prettier": "5.5.6",
"globals": "17.7.0",
"prettier": "3.9.5",
"rimraf": "6.1.3",
"tsdown": "0.22.7",
"typescript": "6.0.3",
"typescript-eslint": "8.64.0"
"typescript": "6.0.3"
}
}
}