From b6d1cb6a04680fe12342d943c4201fd3d2191555 Mon Sep 17 00:00:00 2001 From: Markus Bucher Date: Wed, 20 Dec 2023 19:25:53 +0100 Subject: [PATCH] Add js linting --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 04332b44..fd024f60 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,8 @@ "babel-plugin-transform-class-properties": "^6.24.1", "babel-preset-env": "^1.6.0", "babel-preset-react": "^6.24.1", + "eslint": "^6.7.2", + "prettier": "^1.19.1", "jest": "^23.6.0", "jest-github-actions-reporter": "^1.0.3", "jest-prop-type-error": "^1.1.0", @@ -26,6 +28,8 @@ "table-resolver": "^3.2.0" }, "scripts": { + "lint": "node node_modules/.bin/tfm-lint --plugin -d /webpack", + "lint-fix": "node node_modules/.bin/tfm-lint --plugin -d /webpack --fix", "test": "node node_modules/.bin/jest --no-cache", "test-github-actions": "CI=true node node_modules/.bin/jest --no-cache --reporters=default --reporters=jest-github-actions-reporter" },