Skip to content

Commit 2ab8acc

Browse files
committed
Run prettier on all the files
1 parent ba8c068 commit 2ab8acc

File tree

8 files changed

+28
-43
lines changed

8 files changed

+28
-43
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"trailingComma": "all",
33
"singleQuote": true,
44
"printWidth": 80
5-
}
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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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-

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+
}

tsconfig.json

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
4-
"module": "commonjs",
5-
"lib": ["es6"],
3+
"target": "es5",
4+
"module": "commonjs",
5+
"lib": ["es6"],
66
"allowJs": true,
7-
"outDir": "build",
7+
"outDir": "build",
88
"rootDir": "src",
9-
"strict": true,
9+
"strict": true,
1010
"noImplicitAny": true,
1111
"esModuleInterop": true,
1212
"resolveJsonModule": true,
1313
"types": ["node", "@types/jest"],
14-
"typeRoots" : ["./node_modules/@types"],
14+
"typeRoots": ["./node_modules/@types"]
1515
},
16-
"include": [
17-
"src/**/*"
18-
],
19-
"exclude" : [
20-
"src/**/*.spec.ts"
21-
]
22-
}
16+
"include": ["src/**/*"],
17+
"exclude": ["src/**/*.spec.ts"]
18+
}

0 commit comments

Comments
 (0)