Skip to content

Commit

Permalink
ci: lint workflow
Browse files Browse the repository at this point in the history
ref #165
  • Loading branch information
phette23 committed Feb 10, 2025
1 parent 5c39528 commit 1520eac
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'CSS & JS Lint'

on:
push:
branches:
- 'main'
- 'dev'

jobs:
lint:
name: 'Lint'
runs-on: 'ubuntu-latest'
steps:
- name: 'Checkout'
uses: 'actions/[email protected]'
- name: 'pnpm install'
uses: pnpm/action-setup@v4
with:
run_install: true
version: 10
# see package.json for specific arguments passed to linters
- name: 'JavaScript Lint'
run: npm run eslint
- name: 'SCSS Lint'
run: npm run sass-lint
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = [
js.configs.recommended,
// "global" ignores must be alone in a config object
// https://eslint.org/docs/latest/use/configure/configuration-files#globally-ignoring-files-with-ignores
{ignores: ["**/*.min.js"]},
{ignores: ["**/*.min.js", ".venv/**"]},
// client-side js for the website
{
files: ["libraries/**/*.js"],
Expand Down

0 comments on commit 1520eac

Please sign in to comment.