2018-02-22 14:25:26 -05:00
|
|
|
{
|
2018-02-27 06:19:40 -05:00
|
|
|
"extends": ["standard"],
|
2018-02-28 06:45:30 -05:00
|
|
|
"plugins": [
|
|
|
|
"chai-expect",
|
|
|
|
"chai-friendly"
|
|
|
|
],
|
2018-02-27 06:19:40 -05:00
|
|
|
"env": {
|
|
|
|
"mocha": true
|
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"expect": true
|
2018-02-28 06:45:30 -05:00
|
|
|
},
|
|
|
|
"rules": {
|
2018-03-02 05:05:30 -05:00
|
|
|
"max-len": ["error", {
|
|
|
|
// Ignore long describe/it test blocks
|
|
|
|
"ignorePattern": "^\\s*(it|describe)\\s*\\(['\"]"
|
|
|
|
}],
|
2018-02-28 07:15:24 -05:00
|
|
|
|
2018-02-28 06:45:30 -05: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 06:19:40 -05:00
|
|
|
}
|
2018-03-02 11:06:48 -05:00
|
|
|
}
|