Update eslint config to support mocha and chai asserts

[MAILPOET-2451]
This commit is contained in:
Rostislav Wolny
2019-11-26 11:25:14 +01:00
committed by Jack Kitterhing
parent 23b5c5c32d
commit 7bf93b0c37

View File

@@ -2,7 +2,8 @@
"extends": "airbnb",
"env": {
"amd": true,
"browser": true
"browser": true,
"mocha": true
},
"parser": "babel-eslint",
"parserOptions": {
@@ -35,6 +36,14 @@
"jsx-a11y/label-has-associated-control": [ 2, {
"either": "either" // control has to be either nested or associated via htmlFor
}]
}
},
"overrides": [
{
"files": ["*.spec.js"],
"rules": {
"no-unused-expressions": "off"
}
}
]
}