From e6fd2beb4b82fd86236b74642a726182e452b84e 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 | 3 +++ package.json | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/javascript_tests.yml b/.github/workflows/javascript_tests.yml index 70424bd8..3975f867 100644 --- a/.github/workflows/javascript_tests.yml +++ b/.github/workflows/javascript_tests.yml @@ -20,6 +20,9 @@ jobs: with: node-version: ${{ matrix.node }} - run: npm install + - name: Linting + run: | + 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": {