Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ Each application is an isolated npm project with its own `package.json`, Dockerf

### Server scripts

> Validation note: The **Customer** entity's `email` field is validated using `class-validator`'s `@IsEmail` decorator. API requests to create or update a customer with an invalid email will be rejected with **HTTP 400** and the error message `Invalid email format`.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[meta] Starting overall review. Summary will follow in main review comment.


Inside `apps/hotel-management-service-server`:

| Script | Description |
Expand Down
37 changes: 37 additions & 0 deletions apps/hotel-management-service-admin/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/**
* Basic ESLint configuration for the Admin UI. Feel free to extend.
*/
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
node: true,
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["@typescript-eslint", "react", "react-hooks"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"prettier",
],
settings: {
react: {
version: "detect",
},
},
rules: {
// loosen rules for demo purposes
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
},
ignorePatterns: ["dist/", "build/"],
};
Loading