chore: update prettier and eslint

This commit is contained in:
Jersey
2025-03-14 13:10:10 -04:00
parent 00dff72b78
commit 623f9c1bd6
4 changed files with 475 additions and 1638 deletions
-49
View File
@@ -1,49 +0,0 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["solid", "spellcheck"],
"extends": [
"eslint:recommended",
"plugin:solid/typescript",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/no-non-null-assertion": "off",
"spellcheck/spell-checker": [
"warn",
{
"lang": "en_GB",
"strings": false,
"identifiers": false,
"templates": false,
"skipWords": ["uri", "webhook", "webhooks", "unreads"],
"minLength": 3
}
],
"@typescript-eslint/no-unused-vars": [
"warn",
{
"varsIgnorePattern": "^_"
}
],
"no-unused-vars": [
"warn",
{
"varsIgnorePattern": "^_"
}
],
"require-jsdoc": [
"warn",
{
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": true,
"FunctionExpression": true
}
}
]
}
}
+23
View File
@@ -0,0 +1,23 @@
import eslint from "@eslint/js";
import prettier from "eslint-plugin-prettier/recommended";
import solid from "eslint-plugin-solid/configs/typescript";
import { defineConfig } from "eslint/config";
import tseslint from "typescript-eslint";
export default defineConfig([
eslint.configs.recommended,
tseslint.configs.recommended,
solid,
{
rules: {
"@typescript-eslint/no-unused-vars": [
"warn",
{
caughtErrors: "all",
varsIgnorePattern: "^_",
},
],
},
},
prettier,
]);
+10 -14
View File
@@ -32,19 +32,15 @@
"ulid": "^2.3.0"
},
"devDependencies": {
"@mxssfd/typedoc-theme": "^1.1.3",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/node": "^18.19.24",
"@types/ws": "^8.5.10",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-solid": "^0.12.1",
"eslint-plugin-spellcheck": "^0.0.20",
"prettier": "^2.8.8",
"tsc-watch": "^6.0.4",
"typedoc": "^0.25.1",
"typescript": "^5.4.2"
"@mxssfd/typedoc-theme": "^1.1.7",
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
"@types/node": "^22.13.10",
"eslint-plugin-prettier": "^5.2.3",
"eslint-plugin-solid": "^0.14.5",
"eslint": "^9.22.0",
"prettier": "^3.5.3",
"typedoc": "^0.27.9",
"typescript-eslint": "^8.26.1",
"typescript": "^5.8.2"
}
}
+442 -1575
View File
File diff suppressed because it is too large Load Diff