Skip to content

Commit

Permalink
Add linting of jsdoc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mroderick committed Feb 19, 2020
1 parent c601913 commit 956db70
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions index.js
Expand Up @@ -289,8 +289,16 @@ const prettier = {
"prettier/prettier": "error"
};

const jsDoc = {
"jsdoc/require-param-description": "off",
"jsdoc/require-returns-description": "off"
}

module.exports = {
"extends": ["plugin:prettier/recommended"],
"extends": [
"plugin:jsdoc/recommended",
"plugin:prettier/recommended"
],
"env": {
"browser": true,
"node": true,
Expand All @@ -301,7 +309,10 @@ module.exports = {
"ecmaVersion": 5,
"ecmaFeatures": {},
},
"plugins": ["prettier"],
"plugins": [
"jsdoc",
"prettier"
],
"rules": Object.assign(
{},
possibleErrors,
Expand All @@ -310,6 +321,21 @@ module.exports = {
variables,
stylisticIssues,
ecmaScript6,
prettier
)
prettier,
jsDoc
),
"settings": {
"jsdoc": {
"ignorePrivate": true
}
},

overrides: [
{
files: ["*.test.*"],
rules: {
"jsdoc/require-jsdoc": "off"
}
}
]
}

0 comments on commit 956db70

Please sign in to comment.