mirror of
https://github.com/jwetzell/psn-js.git
synced 2026-09-10 00:29:49 +00:00
switch to biome
This commit is contained in:
@@ -1,2 +0,0 @@
|
|||||||
*.md
|
|
||||||
*.min.*
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
trailingComma: 'es5',
|
|
||||||
tabWidth: 2,
|
|
||||||
semi: true,
|
|
||||||
singleQuote: true,
|
|
||||||
bracketSameLine: true,
|
|
||||||
printWidth: 120,
|
|
||||||
};
|
|
||||||
+34
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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,
|
|
||||||
];
|
|
||||||
Generated
+177
-1174
File diff suppressed because it is too large
Load Diff
+6
-9
@@ -18,9 +18,10 @@
|
|||||||
"example:client": "node examples/psn_client.js",
|
"example:client": "node examples/psn_client.js",
|
||||||
"example:server": "node examples/psn_server.js",
|
"example:server": "node examples/psn_server.js",
|
||||||
"prepublishOnly": "npm run build",
|
"prepublishOnly": "npm run build",
|
||||||
"lint:check": "eslint ./src",
|
"lint:check": "biome lint",
|
||||||
"format:check": "prettier ./ --check",
|
"lint:write": "biome lint --write",
|
||||||
"format:write": "prettier ./ --write",
|
"format:check": "biome format",
|
||||||
|
"format:write": "biome format --write",
|
||||||
"pretest": "npm run build",
|
"pretest": "npm run build",
|
||||||
"test": "node --test --experimental-test-coverage"
|
"test": "node --test --experimental-test-coverage"
|
||||||
},
|
},
|
||||||
@@ -35,16 +36,12 @@
|
|||||||
"repository": "https://github.com/jwetzell/psn-js",
|
"repository": "https://github.com/jwetzell/psn-js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@biomejs/biome": "2.5.3",
|
||||||
"@eslint/js": "10.0.1",
|
"@eslint/js": "10.0.1",
|
||||||
"@types/node": "24.7.2",
|
"@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",
|
"globals": "17.7.0",
|
||||||
"prettier": "3.9.5",
|
|
||||||
"rimraf": "6.1.3",
|
"rimraf": "6.1.3",
|
||||||
"tsdown": "0.22.7",
|
"tsdown": "0.22.7",
|
||||||
"typescript": "6.0.3",
|
"typescript": "6.0.3"
|
||||||
"typescript-eslint": "8.64.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user