Skip to content

Commit

Permalink
Configure ESLint's environment for Jest's global functions
Browse files Browse the repository at this point in the history
Since Jest makes use of the globally provided functions, ESLint's
environment must be configured to know that Jest is used in the project.

GH-39
  • Loading branch information
arcticicestudio committed Nov 24, 2018
1 parent 4ca1390 commit 405c46b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* @author Sven Greb <[email protected]>
* @see https://github.com/babel/eslint-plugin-babel#rules
* @see https://github.com/tc39/proposal-optional-chaining
* @see https://eslint.org/docs/user-guide/configuring#specifying-environments
*/

const { resolve } = require("path");
Expand All @@ -23,6 +24,7 @@ module.exports = {
parser: "babel-eslint",
env: {
browser: true,
jest: true,
node: true
},
settings: {
Expand Down

0 comments on commit 405c46b

Please sign in to comment.