2018-02-22 19:25:26 +00:00
|
|
|
{
|
2018-02-27 11:19:40 +00:00
|
|
|
"extends": ["standard"],
|
2018-02-28 11:45:30 +00:00
|
|
|
"plugins": [
|
|
|
|
"chai-expect",
|
|
|
|
"chai-friendly"
|
|
|
|
],
|
2018-02-27 11:19:40 +00:00
|
|
|
"env": {
|
|
|
|
"mocha": true
|
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"expect": true
|
2018-02-28 11:45:30 +00:00
|
|
|
},
|
|
|
|
"rules": {
|
2018-03-02 10:05:30 +00:00
|
|
|
"max-len": ["error", {
|
|
|
|
// Ignore long describe/it test blocks
|
|
|
|
"ignorePattern": "^\\s*(it|describe)\\s*\\(['\"]"
|
|
|
|
}],
|
2018-02-28 12:15:24 +00:00
|
|
|
|
2018-02-28 11:45:30 +00:00
|
|
|
// Add some chai specific rules
|
|
|
|
"chai-expect/missing-assertion": "error",
|
|
|
|
"chai-expect/terminating-properties": "error",
|
|
|
|
// Swap the no-unused-expressions rule with a more chai-friendly one
|
|
|
|
"no-unused-expressions": 0,
|
|
|
|
"chai-friendly/no-unused-expressions": "error"
|
2018-02-27 11:19:40 +00:00
|
|
|
}
|
2018-02-22 19:25:26 +00:00
|
|
|
}
|