Skip to content

Commit

Permalink
Merge pull request #1311 from stof/eslint_jsdoc
Browse files Browse the repository at this point in the history
Migrate to eslint-plugin-jsdoc
  • Loading branch information
stof authored Aug 30, 2024
2 parents 11d6175 + fe3e204 commit a7420d7
Show file tree
Hide file tree
Showing 39 changed files with 245 additions and 104 deletions.
17 changes: 14 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

module.exports = {
"root": true,
"plugins": ["node", "header"],
"extends": ["eslint:recommended", "plugin:node/recommended"],
"plugins": ["node", "header", "jsdoc"],
"extends": ["eslint:recommended", "plugin:node/recommended", "plugin:jsdoc/recommended"],
"env": {
"node": true,
"es6": true,
Expand Down Expand Up @@ -49,7 +49,13 @@ module.exports = {
"after": true
}],
"no-console": "off",
"valid-jsdoc": ["error", { "requireParamDescription": false, "requireReturnDescription": false }],
"jsdoc/require-jsdoc": "off",
"jsdoc/require-param-description": "off",
"jsdoc/require-property-description": "off",
"jsdoc/require-returns-description": "off",
"jsdoc/tag-lines": ["warn", "never", {
"startLines": 1
}],
"node/no-unsupported-features": ["error", { version: 8 }],
"node/no-deprecated-api": "error",
"node/no-missing-import": "error",
Expand All @@ -66,6 +72,11 @@ module.exports = {
"node/process-exit-as-throw": "error",
"header/header": [2, "block", { "pattern": "This file is part of the Symfony Webpack Encore package" }]
},
"settings": {
"jsdoc": {
"mode": "typescript"
}
},
"overrides": [
{
"files": [".eslintrc.js"],
Expand Down
Loading

0 comments on commit a7420d7

Please sign in to comment.