Improve linter rules for Mocha test code
max-len adjustments
ignore mocha-bn warnings
{
"extends": "google",
- "rules": {},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
"env": {
"es6": true,
"mocha": true
+ },
+ "rules": {
+ "indent": ["error", 2],
+ "max-len": [
+ "error",
+ {
+ "code": 90,
+ "ignoreStrings": true,
+ "ignoreComments": true,
+ "ignoreTemplateLiterals": true
+ }
+ ],
+ "new-cap": [
+ "error",
+ {
+ "capIsNewExceptions": [
+ "BN"
+ ]
+ }
+ ],
+ "object-curly-spacing": [
+ "error",
+ "always"
+ ]
}
}
\ No newline at end of file
