mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 13:12:01 +00:00
Add lint job to build workflow (#363)
* Add lint job to build workflow * Add prettier-plugin-import-sort * Install prettier plugins before linting * Use lint script from package.json * Move linters to separate workflow * Remove Python and Shell linters * Remove popd * Test that prettier properly fails the lint job
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
name: Lint
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
name: Run linters
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2 # Check out the repository first.
|
||||||
|
- name: Run prettier (JavaScript & TypeScript)
|
||||||
|
run: |
|
||||||
|
pushd frontend
|
||||||
|
npm install
|
||||||
|
npm run lint
|
||||||
Reference in New Issue
Block a user