Skip to content

Commit

Permalink
Adds lint target to justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein committed Oct 26, 2023
1 parent 6a52b64 commit 7150464
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions extensions/positron/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ install:
npm install

# Performs static code analysis with ESLint
lint:
#!/usr/bin/env bash
set -eou pipefail
{{ _with_debug }}
npm run lint

# Executes commands via `npm`. Equivalent to `npm run`. Provides arbitrary command chaining inside of Docker from project root (i.e., `just positron run test`)
run *args:
#!/usr/bin/env bash
Expand Down
2 changes: 1 addition & 1 deletion extensions/positron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"pretest": "npm run compile",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
Expand Down
1 change: 1 addition & 0 deletions extensions/positron/src/test/suite/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/naming-convention */
import * as path from 'path';
import * as Mocha from 'mocha';
import * as glob from 'glob';
Expand Down

0 comments on commit 7150464

Please sign in to comment.