diff --git a/extensions/positron/justfile b/extensions/positron/justfile index 61c5ee708b..40efc51aa3 100644 --- a/extensions/positron/justfile +++ b/extensions/positron/justfile @@ -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 diff --git a/extensions/positron/package.json b/extensions/positron/package.json index aba2fda830..bd1c76dacf 100644 --- a/extensions/positron/package.json +++ b/extensions/positron/package.json @@ -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" }, diff --git a/extensions/positron/src/test/suite/index.ts b/extensions/positron/src/test/suite/index.ts index bcf91732ed..dd50e87d76 100644 --- a/extensions/positron/src/test/suite/index.ts +++ b/extensions/positron/src/test/suite/index.ts @@ -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';