mirror of
https://github.com/scratchfoundation/eslint-config-scratch.git
synced 2025-08-28 22:40:13 -04:00
feat(jsdoc): add more checks to valid-jsdoc rule
BREAKING CHANGE: Added stricter options from http://eslint.org/docs/rules/valid-jsdoc
This commit is contained in:
parent
dcad861e08
commit
76c8f71322
1 changed files with 15 additions and 2 deletions
17
index.js
17
index.js
|
@ -4,9 +4,22 @@ module.exports = {
|
|||
// Errors
|
||||
'valid-jsdoc': [2, {
|
||||
prefer: {
|
||||
return: 'return'
|
||||
arg: 'param',
|
||||
argument: 'param',
|
||||
class: 'constructor',
|
||||
return: 'return',
|
||||
virtual: 'abstract'
|
||||
},
|
||||
requireReturn: false
|
||||
preferType: {
|
||||
Boolean: 'boolean',
|
||||
Number: 'number',
|
||||
Object: 'object',
|
||||
String: 'string'
|
||||
},
|
||||
requireReturn: false,
|
||||
requireReturnType: true,
|
||||
requireParamDescription: true,
|
||||
requireReturnDescription: true
|
||||
}],
|
||||
|
||||
// Best practices
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue