From de91a0aeb24f3504fe415e912d2fd199bde22021 Mon Sep 17 00:00:00 2001 From: Froilan Irizarry Date: Thu, 5 Dec 2019 15:12:52 -0500 Subject: [PATCH] Add Jest Eslint plugin - This plugin will help Eslint not mark Jest keywords (describe, it, etc.) as errors. - Added jest: true to eslintrc - Added eslint-plugin-jest to npm install seciton in Dockerfile --- Dockerfile | 1 + TEMPLATES/.eslintrc.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index acc79979..0962e87e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,6 +46,7 @@ RUN npm -g --no-cache install \ babel-eslint \ @typescript-eslint/eslint-plugin \ @typescript-eslint/parser \ + eslint-plugin-jest \ && npm --no-cache install \ markdownlint-cli \ jsonlint prettyjson \ diff --git a/TEMPLATES/.eslintrc.yml b/TEMPLATES/.eslintrc.yml index a8c4c5df..2bc8d6ee 100644 --- a/TEMPLATES/.eslintrc.yml +++ b/TEMPLATES/.eslintrc.yml @@ -12,6 +12,7 @@ env: browser: true es6: true + jest: true ############### # Global Vars #