mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 12:21:03 +00:00
23 lines
No EOL
493 B
Text
23 lines
No EOL
493 B
Text
{
|
|
"extends": ["standard"],
|
|
"plugins": [
|
|
"chai-expect",
|
|
"chai-friendly"
|
|
],
|
|
"env": {
|
|
"mocha": true
|
|
},
|
|
"globals": {
|
|
"expect": true
|
|
},
|
|
"rules": {
|
|
"max-len": "error",
|
|
|
|
// 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"
|
|
}
|
|
} |