-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added lint and format guidelines (#54)
- Loading branch information
1 parent
c8f746e
commit ae46d4b
Showing
3 changed files
with
53 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
{ | ||
"deno.enable": true, | ||
"deno.lint": true, | ||
"deno.suggest.imports.hosts": { | ||
"https://deno.land": false | ||
}, | ||
"[typescript]": { | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "denoland.vscode-deno" | ||
}, | ||
"editor.tabSize": 2 | ||
"deno.enable": true, | ||
"deno.lint": true, | ||
"deno.config": "./deno.jsonc", | ||
"[typescript]": { | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "denoland.vscode-deno" | ||
}, | ||
"deno.suggest.imports.hosts": { | ||
"https://deno.land": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,31 @@ | ||
{ | ||
"$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json", | ||
"fmt": { | ||
"files": { | ||
"include": ["src"] | ||
}, | ||
"options": { | ||
"semiColons": true, | ||
"indentWidth": 2, | ||
"lineWidth": 80, | ||
"proseWrap": "always", | ||
"singleQuote": false, | ||
"useTabs": false | ||
} | ||
}, | ||
"lint": { | ||
"files": { | ||
"include": ["src"] | ||
} | ||
}, | ||
"test": { | ||
"files": { | ||
"include": ["src"] | ||
} | ||
}, | ||
"tasks": { | ||
"test": "deno fmt --check && deno lint && deno test --allow-read --allow-net src", | ||
"coverage": "deno test --allow-read --allow-net --coverage=.coverage src && deno coverage --exclude=fixtures --exclude=test .coverage" | ||
"test": "deno fmt --check && deno lint && deno test --allow-read --allow-net", | ||
"coverage": "deno test --allow-read --allow-net --coverage=.coverage && deno coverage --exclude=fixtures --exclude=test .coverage" | ||
}, | ||
"lock": false | ||
} |