mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
26 lines
No EOL
605 B
Text
26 lines
No EOL
605 B
Text
{
|
|
"extends": ["standard"],
|
|
"plugins": [
|
|
"chai-expect",
|
|
"chai-friendly"
|
|
],
|
|
"env": {
|
|
"mocha": true
|
|
},
|
|
"globals": {
|
|
"expect": true
|
|
},
|
|
"rules": {
|
|
"max-len": ["error", {
|
|
// Ignore long describe/it test blocks
|
|
"ignorePattern": "^\\s*(it|describe)\\s*\\(['\"]"
|
|
}],
|
|
|
|
// 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"
|
|
}
|
|
} |