local-scope
Version:
ES 2015 way of making private properties in class-based programming
41 lines (33 loc) • 807 B
JavaScript
/**
* local-scope
*
* @author Robert Rossmann <rr.rossmann@me.com>
* @copyright 2016 Robert Rossmann
* @license http://choosealicense.com/licenses/bsd-3-clause BSD-3-Clause License
*/
module.exports = {
extends: [
'@strv/javascript/environments/nodejs/v6',
'@strv/javascript/environments/nodejs/optional',
'@strv/javascript/coding-styles/recommended',
],
rules: {
// Node.js 4 does not support spread
'prefer-spread': 0,
// If your editor cannot show these to you, occasionally turn this off and run the linter
'no-warning-comments': 0
},
overrides: [{
files: [
'test/**/*',
],
env: {
mocha: true
},
rules: {
// Do not require function names in test files
'func-names': 'off',
}
}]
}