You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.6 KiB
57 lines
1.6 KiB
{
|
|
"extends": ["airbnb-base"],
|
|
"plugins": ["mocha"],
|
|
"env":{
|
|
"meteor": true,
|
|
"node": true,
|
|
"commonjs": true
|
|
},
|
|
"parserOptions": {
|
|
"ecmaVersion": 2017,
|
|
"sourceType": "module"
|
|
},
|
|
"rules": {
|
|
/* General */
|
|
"consistent-return": [0],
|
|
"no-return-assign": [0],
|
|
"complexity": ["error", 20],
|
|
"eol-last": [0],
|
|
"eqeqeq": ["error", "smart"],
|
|
"max-len": ["error", 150, 2],
|
|
"no-console": [0],
|
|
"no-mixed-requires": [0],
|
|
"no-native-reassign": [0],
|
|
"no-param-reassign": [0],
|
|
"no-use-before-define" : ["error", { "functions": false }],
|
|
"no-useless-rename": ["error", {
|
|
"ignoreDestructuring": true
|
|
}],
|
|
"no-undefined": ["error"],
|
|
"no-underscore-dangle": ["error", { "allow": ["_id"], "allowAfterThis": true }],
|
|
"object-curly-spacing": ["error", "always", {
|
|
"objectsInObjects": false,
|
|
"arraysInObjects": false
|
|
}],
|
|
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
|
|
"object-curly-newline": ["error", { "minProperties": 1 }],
|
|
"object-property-newline": ["error"],
|
|
"prefer-template": [0],
|
|
"quotes": [2, "single"],
|
|
"radix": ["error", "always"],
|
|
"require-yield": [0],
|
|
"semi": [2, "always"],
|
|
"no-unused-vars": 0,
|
|
"import/extensions": [0],
|
|
"arrow-parens":[2, "as-needed"],
|
|
"no-plusplus":[2, { "allowForLoopAfterthoughts": true }],
|
|
"no-bitwise": [2],
|
|
"import/no-unresolved": [2, { ignore: ['\.sol\.js$'] }],
|
|
"class-methods-use-this": [2],
|
|
|
|
/* Plugins */
|
|
"import/no-extraneous-dependencies": [0],
|
|
"mocha/no-exclusive-tests": "error"
|
|
},
|
|
"settings": {
|
|
}
|
|
}
|
|
|