Update eslint config to support mocha and chai asserts
[MAILPOET-2451]
This commit is contained in:
committed by
Jack Kitterhing
parent
23b5c5c32d
commit
7bf93b0c37
@@ -2,7 +2,8 @@
|
|||||||
"extends": "airbnb",
|
"extends": "airbnb",
|
||||||
"env": {
|
"env": {
|
||||||
"amd": true,
|
"amd": true,
|
||||||
"browser": true
|
"browser": true,
|
||||||
|
"mocha": true
|
||||||
},
|
},
|
||||||
"parser": "babel-eslint",
|
"parser": "babel-eslint",
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
@@ -35,6 +36,14 @@
|
|||||||
"jsx-a11y/label-has-associated-control": [ 2, {
|
"jsx-a11y/label-has-associated-control": [ 2, {
|
||||||
"either": "either" // control has to be either nested or associated via htmlFor
|
"either": "either" // control has to be either nested or associated via htmlFor
|
||||||
}]
|
}]
|
||||||
}
|
},
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": ["*.spec.js"],
|
||||||
|
"rules": {
|
||||||
|
"no-unused-expressions": "off"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user