Skip to content

Commit

Permalink
Run prettier on all the files
Browse files Browse the repository at this point in the history
  • Loading branch information
robsimmons committed Jul 27, 2022
1 parent ba8c068 commit 2ab8acc
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 43 deletions.
6 changes: 1 addition & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"prettier",
"jest"
],
"plugins": ["@typescript-eslint", "prettier", "jest"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"trailingComma": "all",
"singleQuote": true,
"printWidth": 80
}
}
26 changes: 12 additions & 14 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug TypeScript in Node.js",
"preLaunchTask": "npm: build",
"program": "${workspaceFolder}/src/index.ts",
"protocol": "inspector",
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"sourceMaps": true,
"smartStep": true,
"internalConsoleOptions": "openOnSessionStart"
}
{
"type": "node",
"request": "launch",
"name": "Debug TypeScript in Node.js",
"preLaunchTask": "npm: build",
"program": "${workspaceFolder}/src/index.ts",
"protocol": "inspector",
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"sourceMaps": true,
"smartStep": true,
"internalConsoleOptions": "openOnSessionStart"
}
]
}
4 changes: 1 addition & 3 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
{
"type": "typescript",
"tsconfig": "simple-typescript-starter/tsconfig.json",
"problemMatcher": [
"$tsc"
]
"problemMatcher": ["$tsc"]
}
]
}
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,3 @@ Format your code.
#### `npm run prettier-watch`

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

8 changes: 3 additions & 5 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
module.exports = {
transform: {
'^.+\\.ts?$': 'ts-jest'
'^.+\\.ts?$': 'ts-jest',
},
testEnvironment: 'node',
testRegex: './src/.*\\.(test|spec)?\\.(ts|ts)$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
"roots": [
"<rootDir>/src"
]
};
roots: ['<rootDir>/src'],
};
2 changes: 1 addition & 1 deletion nodemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"ext": ".ts,.js",
"ignore": [],
"exec": "ts-node ./src/index.ts"
}
}
22 changes: 9 additions & 13 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"lib": ["es6"],
"target": "es5",
"module": "commonjs",
"lib": ["es6"],
"allowJs": true,
"outDir": "build",
"outDir": "build",
"rootDir": "src",
"strict": true,
"strict": true,
"noImplicitAny": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"types": ["node", "@types/jest"],
"typeRoots" : ["./node_modules/@types"],
"typeRoots": ["./node_modules/@types"]
},
"include": [
"src/**/*"
],
"exclude" : [
"src/**/*.spec.ts"
]
}
"include": ["src/**/*"],
"exclude": ["src/**/*.spec.ts"]
}

0 comments on commit 2ab8acc

Please sign in to comment.