-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Next: add `deno lint`
- Loading branch information
Showing
5 changed files
with
75 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { linterFmtTest } from "tests"; | ||
|
||
linterFmtTest({ linterName: "deno" }); |
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
version: 0.1 | ||
downloads: | ||
- name: deno | ||
downloads: | ||
- os: | ||
macos: apple-darwin | ||
cpu: | ||
x86_64: x86_64 | ||
arm_64: aarch64 | ||
url: https://github.com/denoland/deno/releases/download/v${version}/deno-${cpu}-${os}.zip | ||
- os: | ||
linux: unknown-linux-gnu | ||
windows: pc-windows-msvc | ||
cpu: | ||
x86_64: x86_64 | ||
url: https://github.com/denoland/deno/releases/download/v${version}/deno-${cpu}-${os}.zip | ||
tools: | ||
definitions: | ||
- name: deno | ||
download: deno | ||
known_good_version: 1.36.4 | ||
shims: | ||
- name: deno | ||
target: deno | ||
lint: | ||
definitions: | ||
- name: deno | ||
files: [javascript, typescript, markdown, json] | ||
commands: | ||
- name: format | ||
output: rewrite | ||
run: deno fmt ${target} | ||
success_codes: [0, 1] | ||
cache_results: true | ||
formatter: true | ||
batch: true | ||
in_place: true | ||
tools: [deno] | ||
suggest_if: config_present | ||
direct_configs: | ||
- deno.json | ||
- deno.jsonc | ||
known_good_version: 1.36.4 | ||
version_command: | ||
parse_regex: deno ${semver} .* | ||
run: deno --version |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const identity = [ | ||
1, 0, 0, | ||
0, 1, 0, | ||
0, 0, 1, | ||
]; |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Testing formatter deno test basic 1`] = ` | ||
"export const identity = [ | ||
1, | ||
0, | ||
0, | ||
0, | ||
1, | ||
0, | ||
0, | ||
0, | ||
1, | ||
]; | ||
" | ||
`; |
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