Porting applicable jscs configuration to eslint.

* jsdocs validation off now
This commit is contained in:
Michał Lipiński
2017-03-08 23:42:33 +01:00
parent 5f2a03076d
commit b247502116
2 changed files with 39 additions and 1 deletions

View File

@@ -13,8 +13,16 @@ module.exports = {
}
},
'rules': {
'array-bracket-spacing': ['error', 'never'],
'comma-dangle': ['error', 'never'],
'camelcase': ['error', {
'properties': 'never'
}],
'eol-last': ['error'],
'indent': ['error', 2, {
'SwitchCase': 1
}],
@@ -32,6 +40,36 @@ module.exports = {
'keyword-spacing': ['error'],
'curly': ['error', 'all'],
'no-else-return': ['error'],
'no-mixed-spaces-and-tabs': ['error'],
'no-multiple-empty-lines': ['error'],
'no-trailing-spaces': ['error'],
'no-spaced-func': ['error'],
'no-unused-vars': ['error', {
'vars': 'all',
'args': 'none'
}],
'space-unary-ops': ['error', {
'nonwords': false,
'overrides': {}
}],
'space-before-function-paren': ['error', 'never'],
'space-before-blocks': ['error', 'always'],
'space-in-parens': ['error', 'never'],
// 'valid-jsdoc': ['error'],
// ECMAScript 6 rules
'arrow-body-style': ['error', 'as-needed', {

View File

@@ -6,7 +6,7 @@
* @param {Function} string The `toString` result.
* @returns {Function} Returns `func`.
*/
function baseSetToString(func, string){
function baseSetToString(func, string) {
return Object.defineProperty(func, 'toString', {
'configurable': true,
'enumerable': false,