Skip to content

Commit

Permalink
Workflow fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffxy committed Mar 10, 2024
1 parent b374219 commit 69a9f9b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 38 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/check_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ jobs:

- name: Check Formatting (prettier)
working-directory: ui
run: npx prettier --check .
run: npm run fcheck
if: success() || failure()

- name: Lint (eslint)
run: npx eslint .
working-directory: ui
run: npm run lint
if: success() || failure()

- name: Run Build (vite)
working-directory: ui
run: npm run build
if: success() || failure()
60 changes: 26 additions & 34 deletions ui/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,37 +1,29 @@
module.exports = {
"env": {
"browser": true,
"es2021": true
env: {
browser: true,
es2021: true,
},
extends: ["eslint:recommended", "plugin:react/recommended"],
overrides: [
{
env: {
node: true,
},
files: [".eslintrc.{js,cjs}"],
parserOptions: {
sourceType: "script",
},
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"sourceType": "script"
}
}
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react"],
rules: {},
settings: {
react: {
version: "detect",
},
"plugins": [
"react"
],
"rules": {
},
"settings": {
"react": {
"version": "detect"
}
}
}
},
};
7 changes: 5 additions & 2 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"lint": "eslint .",
"preview": "vite preview",
"watch": "vite build --watch"
"watch": "vite build --watch",
"format": "prettier --write .",
"check": "prettier --check . ; eslint .",
"fcheck": "prettier --check ."
},
"dependencies": {
"axios": "^1.6.7",
Expand Down

0 comments on commit 69a9f9b

Please sign in to comment.