forked from valkey-io/valkey-glide
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run Eslint on each folder, and fail on warnings.
- Loading branch information
1 parent
a6968ca
commit eecccd0
Showing
3 changed files
with
48 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Lint TypeScript | ||
|
||
inputs: | ||
package-folder: | ||
description: "folder that contains the target Cargo.toml file" | ||
required: true | ||
type: string | ||
|
||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- run: cp .eslintrc.cjs ${{ inputs.package-folder }} | ||
shell: bash | ||
|
||
- run: | | ||
npm install @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-tsdoc eslint typescript eslint-plugin-import@latest eslint-config-prettier | ||
npm i | ||
npx eslint . --max-warnings=0 | ||
working-directory: ${{ inputs.package-folder }} | ||
shell: bash |
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