Skip to content

Commit

Permalink
Merge pull request #250 from rhys-vdw/VS-Code-Integration
Browse files Browse the repository at this point in the history
VS Code Integration
  • Loading branch information
rhys-vdw authored Jun 7, 2024
2 parents b3ae411 + 848e094 commit 7b60ae2
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 19 deletions.
8 changes: 5 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.github/
.vscode/
src/
tests/
.gitignore
.travis.yml
eslint.config.mjs
.prettierrc
src/
TS Auto Guard.code-workspace
eslint.config.mjs
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"type": "node",
"request": "launch",
"preLaunchTask": "npm: build",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/"
},
{
"name": "Run Tests",
"type": "node",
"request": "launch",
"runtimeArgs": [
"run-script",
"test"
],
"preLaunchTask": "npm: build",
"runtimeExecutable": "npm",
"skipFiles": [
"<node_internals>/**"
]
}
]
}
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ts-auto-guard

[![Greenkeeper badge](https://badges.greenkeeper.io/usabilityhub/ts-auto-guard.svg)](https://greenkeeper.io/)
[![NPM Version](https://img.shields.io/npm/v/ts-auto-guard)](https://www.npmjs.com/package/ts-auto-guard) [![Test](https://github.com/rhys-vdw/ts-auto-guard/actions/workflows/test.yml/badge.svg)](https://github.com/rhys-vdw/ts-auto-guard/actions/workflows/test.yml)

> Generate type guard functions from TypeScript interfaces
Expand Down Expand Up @@ -206,4 +206,3 @@ export function isPerson(obj: unknown): obj is Person {
)
}
```

29 changes: 29 additions & 0 deletions TS Auto Guard.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"folders": [
{
"name": "TS Auto Guard",
"path": "."
}
],
"settings": {
"files.exclude": {
"node_modules": true
},
"search.exclude": {
"**/*.js": true,
"**/*.js.map": true
},
"cSpell.enableFiletypes": [
"github-actions-workflow"
],
"editor.formatOnSave": true,
"eslint.experimental.useFlatConfig": true
},
"extensions": {
"recommendations": [
"dbaeumer.vscode-eslint",
"streetsidesoftware.code-spell-checker",
"SocketSecurity.vscode-socket-security"
]
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"build:prod": "tsc --sourceMap false",
"lint": "eslint .",
"preformat": "eslint --fix",
"format": "prettier --write *.yml src/**/*.ts tests/**/*.ts .github/**/*.yml",
"format:check": "prettier --list-different *.yml src/**/*.ts tests/**/*.ts .github/**/*.yml"
"format": "prettier --write **/*.yml src/**/*.ts tests/**/*.ts",
"format:check": "prettier --list-different **/*.yml src/**/*.ts tests/**/*.ts"
},
"bin": {
"ts-auto-guard": "./lib/cli.js"
Expand Down

0 comments on commit 7b60ae2

Please sign in to comment.