Skip to content

Commit d225c98

Browse files
authored
Merge pull request stemmlerjs#34 from robsimmons/upstream
Update with 2022 dependencies.
2 parents 3b1fb53 + 6cf3147 commit d225c98

File tree

12 files changed

+2186
-6849
lines changed

12 files changed

+2186
-6849
lines changed

.eslintrc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"root": true,
33
"parser": "@typescript-eslint/parser",
4-
"plugins": [
5-
"@typescript-eslint",
6-
"prettier",
7-
"jest"
8-
],
4+
"plugins": ["@typescript-eslint", "prettier", "jest"],
95
"extends": [
106
"eslint:recommended",
117
"plugin:@typescript-eslint/recommended",

.prettierrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
2-
"semi": true,
32
"trailingComma": "all",
43
"singleQuote": true,
54
"printWidth": 80
6-
}
5+
}

.vscode/launch.json

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
{
22
"version": "0.2.0",
33
"configurations": [
4-
{
5-
"type": "node",
6-
"request": "launch",
7-
"name": "Debug TypeScript in Node.js",
8-
"preLaunchTask": "npm: build",
9-
"program": "${workspaceFolder}/src/index.ts",
10-
"protocol": "inspector",
11-
"outFiles": [
12-
"${workspaceFolder}/dist/**/*.js"
13-
],
14-
"sourceMaps": true,
15-
"smartStep": true,
16-
"internalConsoleOptions": "openOnSessionStart"
17-
}
4+
{
5+
"type": "node",
6+
"request": "launch",
7+
"name": "Debug TypeScript in Node.js",
8+
"preLaunchTask": "npm: build",
9+
"program": "${workspaceFolder}/src/index.ts",
10+
"protocol": "inspector",
11+
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
12+
"sourceMaps": true,
13+
"smartStep": true,
14+
"internalConsoleOptions": "openOnSessionStart"
15+
}
1816
]
1917
}

.vscode/tasks.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
{
77
"type": "typescript",
88
"tsconfig": "simple-typescript-starter/tsconfig.json",
9-
"problemMatcher": [
10-
"$tsc"
11-
]
9+
"problemMatcher": ["$tsc"]
1210
}
1311
]
1412
}

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 🧰 Simple TypeScript Starter | 2021
1+
# 🧰 Simple TypeScript Starter | 2022
22

33
> We talk about a lot of **advanced Node.js and TypeScript** concepts on [the blog](https://khalilstemmler.com), particularly focused around Domain-Driven Design and large-scale enterprise application patterns. However, I received a few emails from readers that were interested in seeing what a basic TypeScript starter project looks like. So I've put together just that.
44
@@ -41,4 +41,3 @@ Format your code.
4141
#### `npm run prettier-watch`
4242

4343
Format your code in watch mode, waiting for file changes.
44-

build/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"use strict";
2+
// eslint-disable-next-line no-console
23
console.log('Hello world!');

jest.config.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
module.exports = {
22
transform: {
3-
'^.+\\.ts?$': 'ts-jest'
3+
'^.+\\.ts?$': 'ts-jest',
44
},
55
testEnvironment: 'node',
66
testRegex: './src/.*\\.(test|spec)?\\.(ts|ts)$',
77
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
8-
"roots": [
9-
"<rootDir>/src"
10-
]
11-
};
8+
roots: ['<rootDir>/src'],
9+
};

nodemon.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
"ext": ".ts,.js",
44
"ignore": [],
55
"exec": "ts-node ./src/index.ts"
6-
}
6+
}

0 commit comments

Comments
 (0)