From 7328fba6babec37990cd4e00280ed3905e07524b Mon Sep 17 00:00:00 2001 From: Markus Bucher Date: Thu, 21 Dec 2023 17:56:54 +0100 Subject: [PATCH] Add Javascript linting --- .github/workflows/javascript_tests.yml | 4 ++++ package.json | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/javascript_tests.yml b/.github/workflows/javascript_tests.yml index 70424bd8..82dd6f30 100644 --- a/.github/workflows/javascript_tests.yml +++ b/.github/workflows/javascript_tests.yml @@ -20,6 +20,10 @@ jobs: with: node-version: ${{ matrix.node }} - run: npm install + - name: Linting + run: | + # FIXME: we need to fix the findings, first + #npm run lint - name: Testing run: npm run test ... diff --git a/package.json b/package.json index 57a57a5a..0e50ea04 100644 --- a/package.json +++ b/package.json @@ -14,14 +14,18 @@ "babel-plugin-transform-class-properties": "^6.24.1", "babel-preset-env": "^1.6.0", "babel-preset-react": "^6.24.1", + "eslint": "^6.7.2", "jest": "^23.6.0", "jest-prop-type-error": "^1.1.0", "lodash": "^4.17.11", + "prettier": "^1.19.1", "react-redux-test-utils": "^0.1.1", "sortabular": "^1.5.1", "table-resolver": "^3.2.0" }, "scripts": { + "lint": "tfm-lint --plugin -d *.js,webpack", + "lint-fix": "tfm-lint --plugin -d *.js,webpack --fix", "test": "jest --no-cache" }, "repository": {