Skip to content

Commit 8d316f6

Browse files
committed
--update: env for eslint and jest
1 parent 80efbaf commit 8d316f6

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.eslintrc.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"extends": "airbnb-base"
3-
}
2+
"env": {
3+
"node": true,
4+
"jest": true
5+
},
6+
"extends": "airbnb-base"
7+
}

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"test": "jest --verbose",
88
"test:watch": "jest --watchAll"
99
},
10+
"jest": {
11+
"testEnvironment": "node"
12+
},
1013
"keywords": [],
1114
"author": "Ashok Dey <ashokdey100@gmail.com> (http://ashokdey.in)",
1215
"license": "MIT",

0 commit comments

Comments
 (0)