Skip to content

Commit

Permalink
Fix lint npm command & use it in GitHub workflow (#952)
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Haunschmied <darkc.futarialone@gmail.com>
  • Loading branch information
DarkC35 authored Mar 10, 2021
1 parent 0a1848e commit f601eb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/mainui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci

- name: Run ESLint
run: npx eslint --ext js --ext vue src
run: npm run lint

webpack-stats:
runs-on: ubuntu-latest
Expand All @@ -66,7 +66,7 @@ jobs:
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci

- name: Build and generate report
run: npm run webpack-analyzer-report-stats

Expand Down
4 changes: 2 additions & 2 deletions bundles/org.openhab.ui/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"webpack-analyzer-report-stats": "cross-env NODE_ENV=production cross-env WEBPACK_ANALYZER=1 WEBPACK_ANALYZER_REPORT=1 WEBPACK_ANALYZER_REPORT_STATS=1 node ./build/build.js",
"dev": "cross-env NODE_ENV=development webpack-dev-server --config ./build/webpack.config.js",
"start": "npm run dev",
"lint": "npx eslint './**/*.{js,vue}'",
"lint:fix": "npx eslint --fix './**/*.{js,vue}'",
"lint": "npx eslint --ext js --ext vue src",
"lint:fix": "npx eslint --fix --ext js --ext vue src",
"test:unit": "npx jest",
"test:unit:watch": "npx jest --watch",
"test:e2e": "npx cypress run",
Expand Down

0 comments on commit f601eb2

Please sign in to comment.