From f928072c1240cce9fa585040bfe07c3ffb7f84bd Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 26 Jun 2020 19:20:12 -0500 Subject: [PATCH] Add jest plugin to eslint --- .eslintrc.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 7970b396..a6dac14a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -16,7 +16,23 @@ module.exports = { 'eslint:recommended', 'plugin:@typescript-eslint/recommended', ] - } + }, + { + "files": ['**/*.spec.ts'], + parser: '@typescript-eslint/parser', + plugins: [ + '@typescript-eslint', + 'jest' + ], + extends: [ + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:jest/all' + ], + rules:{ + "jest/lowercase-name": ["error", { "ignore": ["describe"]}] + } + } ], "rules": { "linebreak-style": [