mirror of
https://github.com/typicode/json-server.git
synced 2025-07-24 18:55:57 +08:00
chore: update linter
This commit is contained in:
@ -1,7 +0,0 @@
|
||||
{
|
||||
"extends": "@typicode",
|
||||
"env":{
|
||||
"browser": true,
|
||||
"node": true
|
||||
}
|
||||
}
|
5
.prettier.config.js
Normal file
5
.prettier.config.js
Normal file
@ -0,0 +1,5 @@
|
||||
export default {
|
||||
semi: false,
|
||||
singleQuote: true,
|
||||
trailingComma: 'all',
|
||||
}
|
11
eslint.config.js
Normal file
11
eslint.config.js
Normal 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
687
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||
|
Reference in New Issue
Block a user