MDL-54939 eslint: tweak rules

1) Allow jsdoc descriptions to be empty. I think that matches our phpdoc
checker, and I think its probably better than me filling the
descriptions in poorly.

2) For the captilisation rules, don't apply to object properties (this
is because jQuery has lots of violators of this rule)
This commit is contained in:
Dan Poltawski 2016-06-16 19:20:08 +01:00
parent 35be582696
commit 0d06a20038

View File

@ -40,7 +40,7 @@
'no-unreachable': 'warn',
'no-unsafe-finally': 'error',
'use-isnan': 'error',
'valid-jsdoc': ['warn', { 'requireReturn': false }],
'valid-jsdoc': ['warn', { 'requireReturn': false, 'requireParamDescription': false, 'requireReturnDescription': false }],
'valid-typeof': 'error',
// === Best Practices ===
@ -115,7 +115,7 @@
'max-params': 'off',
'max-statements': 'off',
'max-statements-per-line': 'off',
'new-cap': 'warn',
'new-cap': ['warn', { 'properties': false }],
'new-parens': 'warn',
'newline-after-var': 'off',
'newline-before-return': 'off',