Skip to content

Commit

Permalink
✨ add eslint-plugin-hooks-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
a-tokyo committed Jan 17, 2024
1 parent f8dbb42 commit cb3d1a1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
"homepage": "https://github.com/pluralcom/eslint-config-plural",
"dependencies": {
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-base": "^15.0.0"
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-hooks-docs": "^0.0.1"
},
"devDependencies": {
"@babel/runtime": "^7.18.0",
Expand Down Expand Up @@ -100,4 +101,4 @@
"url": "https://github.com/A-Tokyo"
}
]
}
}
4 changes: 2 additions & 2 deletions rules/react.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
plugins: ['react', 'eslint-plugin-react-perf'],
plugins: ['react', 'eslint-plugin-react-perf', 'eslint-plugin-hooks-docs'],

extends: ['plugin:react-perf/recommended'],
extends: ['plugin:react-perf/recommended', 'plugin:eslint-plugin-hooks-docs/recommended'],

parserOptions: {
ecmaFeatures: {
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2025,6 +2025,13 @@ eslint-module-utils@^2.7.3:
debug "^3.2.7"
find-up "^2.1.0"

eslint-plugin-hooks-docs@^0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-hooks-docs/-/eslint-plugin-hooks-docs-0.0.1.tgz#c25d104825da622dde6680e79a61ca0b843ea77b"
integrity sha512-7Y3em6hgeigNKTGfhVXVK6gnAcxQrQKUClMJXAA+eHVbKMKf+ZbU2Bipo1LAtjwu9eUTGMSDgmYT8yjxTxPfpw==
dependencies:
requireindex "~1.2.0"

eslint-plugin-import@^2.26.0:
version "2.26.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz#f812dc47be4f2b72b478a021605a59fc6fe8b88b"
Expand Down Expand Up @@ -3759,6 +3766,11 @@ require-main-filename@^1.0.1:
resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1"
integrity sha512-IqSUtOVP4ksd1C/ej5zeEh/BIP2ajqpn8c5x+q99gvcIG/Qf0cud5raVnE/Dwd0ua9TXYDoDc0RE5hBSdz22Ug==

requireindex@~1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/requireindex/-/requireindex-1.2.0.tgz#3463cdb22ee151902635aa6c9535d4de9c2ef1ef"
integrity sha512-L9jEkOi3ASd9PYit2cwRfyppc9NoABujTP8/5gFcbERmo5jUoAKovIC3fsF17pkTnGsrByysqX+Kxd2OTNI1ww==

resolve-from@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6"
Expand Down

0 comments on commit cb3d1a1

Please sign in to comment.