overleaf/services/web/.eslintrc
Alasdair Smith 2453e55ebb Remove eslint loader
After using the webpack set up a bit more, having linting block compiles in
dev is more annoying than helpful. Linting pre commit is more valuable
2018-03-06 11:18:40 +00:00

26 lines
606 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"
}
}