It's ready!

This commit is contained in:
bahramsa70 2024-06-11 23:14:33 +03:30
parent 7060aebbad
commit d471614837
6 changed files with 1154 additions and 5 deletions

10
.prettierrc.json Normal file
View File

@ -0,0 +1,10 @@
{
"semi": true,
"tabWidth": 4,
"printWidth": 120,
"singleQuote": false,
"bracketSpacing": true,
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"requirePaddingNewLinesBetweenLines": true
}

90
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,90 @@
{
"better-comments.tags": [
{
"tag": "!",
"color": "#FF2D00",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "?",
"color": "#3498DB",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "//",
"color": "#474747",
"strikethrough": true,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "todo",
"color": "#FF8C00",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "*",
"color": "#98C379",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "#",
"color": "#00FFFF",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
}
],
"workbench.iconTheme": "material-icon-theme",
"terminal.integrated.defaultProfile.windows": "Command Prompt",
"files.autoSave": "afterDelay",
"workbench.startupEditor": "none",
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"git.enableSmartCommit": true,
"explorer.compactFolders": false,
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"prettier.configPath": ".prettierrc.json",
"explorer.confirmDelete": false,
"editor.formatOnSave": true,
"notebook.defaultFormatter": "esbenp.prettier-vscode"
}

18
eslint.config.mjs Normal file
View File

@ -0,0 +1,18 @@
import globals from "globals";
import pluginJs from "@eslint/js";
export default [
{ files: ["**/*.js"], languageOptions: { sourceType: "commonjs" } },
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
{
rules: {
"prefer-const": "off",
"quotes": ["warn", "double", { "allowTemplateLiterals": true }],
"no-unused-vars": "warn",
"no-multi-spaces": "warn",
"no-multiple-empty-lines": ["warn", { "max": 1 }],
"no-case-declarations": "off"
}
}
];

1028
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -13,6 +13,9 @@
"express": "^4.19.2" "express": "^4.19.2"
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "^9.4.0",
"eslint": "^9.4.0",
"globals": "^15.4.0",
"nodemon": "^3.1.3" "nodemon": "^3.1.3"
} }
} }

View File

@ -1,9 +1,9 @@
const express = require('express') const express = require("express");
const app = express() const app = express();
app.use((req, res, next) => { app.use((req, res, next) => {
res.send('Hello') res.send("Hello");
}) });
app.listen(3000) app.listen(3000);