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
12 changes: 8 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
module.exports = {
extends: '@mate-academy/eslint-config',
extends: [
'@mate-academy/eslint-config',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
env: {
jest: true
jest: true,
},
plugins: ['jest', '@typescript-eslint'],
rules: {
'no-proto': 0
'no-proto': 0,
},
plugins: ['jest']
};
Comment on lines 1 to 14
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good job renaming the file! However, since your project is configured to use ES Modules ("type": "module" in package.json), this configuration file should also use ES Module syntax. Please change module.exports to export default.

5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ node_modules
# MacOS
.DS_Store

# env files
*.env
.env*
.env
dist
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/png" href="/src/client/images/favicon.png">
<title>App</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/client/index.tsx"></script>
</body>
</html>
6 changes: 6 additions & 0 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"watch": ["src/server"],
"ext": "ts",
"ignore": ["src/client"],
"exec": "tsc && node ./dist/src/server/app.js"
}
Loading
Loading