Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Keep jsdoc eslint plugin to enforce use of return
Browse files Browse the repository at this point in the history
  • Loading branch information
lognaturel committed Mar 16, 2023
1 parent 992010b commit 9de9991
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,18 @@
"sinon": true
},
"extends": ["airbnb", "prettier"],
"plugins": ["chai-friendly", "prettier", "unicorn"],
"plugins": ["chai-friendly", "jsdoc", "prettier", "unicorn"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020
},
"settings": {
"jsdoc": {
"tagNamePreference": {
"returns": "return"
}
}
},
"rules": {
"prettier/prettier": "error",
"import/no-unresolved": [
Expand Down
91 changes: 88 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-chai-friendly": "^0.7.2",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsdoc": "^40.0.3",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
Expand Down Expand Up @@ -86,7 +87,6 @@
"mocha": "^9.2.2",
"node-sass": "^7.0.3",
"prettier": "^2.8.3",
"rimraf": "^3.0.2",
"sinon": "^11.1.2",
"sinon-chai": "^3.7.0",
"time-grunt": "^2.0.0"
Expand Down

0 comments on commit 9de9991

Please sign in to comment.