chore: update linter

This commit is contained in:
typicode
2024-08-19 15:02:55 +02:00
parent e6055e621d
commit 161e01f523
5 changed files with 503 additions and 213 deletions

View File

@ -1,7 +0,0 @@
{
"extends": "@typicode",
"env":{
"browser": true,
"node": true
}
}

5
.prettier.config.js Normal file
View File

@ -0,0 +1,5 @@
export default {
semi: false,
singleQuote: true,
trailingComma: 'all',
}

11
eslint.config.js Normal file
View File

@ -0,0 +1,11 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
export default [
{files: ["**/*.{js,mjs,cjs,ts}"]},
{languageOptions: { globals: globals.node }},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
];

687
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -30,17 +30,21 @@
"url": "git+https://github.com/typicode/json-server.git"
},
"devDependencies": {
"@eslint/js": "^9.9.0",
"@sindresorhus/tsconfig": "^5.0.0",
"@tailwindcss/typography": "^0.5.13",
"@types/node": "^20.14.1",
"@typicode/eslint-config": "^2.0.0",
"concurrently": "^8.2.2",
"eslint": "^8.57.0",
"get-port": "^7.1.0",
"globals": "^15.9.0",
"husky": "^9.0.11",
"tempy": "^3.1.0",
"tsx": "^4.11.2",
"type-fest": "^4.18.3",
"typescript": "^5.4.5"
"typescript": "^5.4.5",
"typescript-eslint": "^8.1.0"
},
"dependencies": {
"@tinyhttp/app": "^2.2.3",