Add separate .eslintrc for tests

This commit is contained in:
Dan Stillman 2019-05-19 21:06:47 -04:00
parent ddf2a6a116
commit 20d7ef6c0b
2 changed files with 19 additions and 1 deletions

View file

@ -8,7 +8,6 @@
"Zotero": false,
"ZOTERO_CONFIG": false,
"AddonManager": false,
"assert": false,
"Cc": false,
"Ci": false,
"Components": false,

19
test/tests/.eslintrc Normal file
View file

@ -0,0 +1,19 @@
{
"env": {
"browser": true,
"es6": true,
"node": true,
"mocha": true
},
"globals": {
"assert": "readonly",
"createDataObject": "readonly",
"createGroup": "readonly",
"createUnsavedDataObject": "readonly",
"getPromiseError": "readonly",
"getGroup": "readonly",
"getTempDirectory": "readonly",
"getTestDataDirectory": "readonly",
"importFileAttachment": "readonly",
}
}