From a65f5fdfa5bf48a0bd92d58412d8efd3dab89048 Mon Sep 17 00:00:00 2001 From: sellnat77 Date: Sun, 9 Feb 2020 15:54:00 -0800 Subject: [PATCH] Fixes #235 Enforced a frontend linting step to protect PRs --- .eslintignore | 1 + .github/workflows/Continuous_Integration_Frontend.yml | 2 ++ package.json | 1 + 3 files changed, 4 insertions(+) create mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 000000000..a6c57f5fb --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +*.json diff --git a/.github/workflows/Continuous_Integration_Frontend.yml b/.github/workflows/Continuous_Integration_Frontend.yml index b4ae78b79..c5a65625a 100644 --- a/.github/workflows/Continuous_Integration_Frontend.yml +++ b/.github/workflows/Continuous_Integration_Frontend.yml @@ -15,6 +15,8 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install Packages run: npm install + - name: Lint + run: npm run lint - name: Build project run: npm run build - name: Run Tests diff --git a/package.json b/package.json index f5f92d620..1598d1323 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "start": "npm run dev", "dev": "webpack-dev-server --config webpack.dev.js --host 0.0.0.0", "build": "webpack --config webpack.prod.js", + "lint": "eslint", "test": "jest", "predeploy": "npm run build", "deploy": "gh-pages -d dist"