eslint-config-peerigon
Version:
Peerigon coding rules as eslint config
13 lines (12 loc) • 551 B
JavaScript
module.exports = {
"env": {
"mocha": true
},
"rules": {
"padded-blocks": 0, // mocha blocks tend to be more readable with padding
"max-nested-callbacks": 0, // mocha blocks are nested all the way down
"no-undefined": 0,// sometimes it's necessary to check for undefined explicitly
"brace-style": [2, "1tbs", { "allowSingleLine": true }], // in order to make mocks more condensed, single line blocks are allowed in tests,
"no-unused-expressions": 0 // chai uses these as assertions
}
};