Skip to content

Commit

Permalink
feat: add jsdoc plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 12, 2023
1 parent eab00e2 commit 309249f
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 21 deletions.
10 changes: 9 additions & 1 deletion packages/eslint-config-basic/index.js
Expand Up @@ -16,6 +16,7 @@ module.exports = {
'plugin:jsonc/recommended-with-jsonc',
'plugin:yml/standard',
'plugin:markdown/recommended',
'plugin:jsdoc/recommended',
],
ignorePatterns: [
'*.min.*',
Expand Down Expand Up @@ -55,6 +56,7 @@ module.exports = {
'antfu',
'no-only-tests',
'unused-imports',
'jsdoc',
],
settings: {
'import/resolver': {
Expand Down Expand Up @@ -407,11 +409,17 @@ module.exports = {
'yml/quotes': ['error', { prefer: 'single', avoidEscape: false }],
'yml/no-empty-document': 'off',

// jsdoc
'jsdoc/require-jsdoc': 'off',
'jsdoc/require-param-type': 'off',
'jsdoc/require-param-description': 'off',
'jsdoc/require-yields': 'off',
'jsdoc/tag-lines': 'off',

// antfu
'antfu/no-import-node-modules-by-path': 'error',
'antfu/if-newline': 'error',
'antfu/import-dedupe': 'error',
'antfu/top-level-function': 'error',
// 'antfu/prefer-inline-type-import': 'error',
},
}
1 change: 1 addition & 0 deletions packages/eslint-config-basic/package.json
Expand Up @@ -23,6 +23,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "npm:eslint-plugin-i@2.28.0-2",
"eslint-plugin-jsdoc": "^46.6.0",
"eslint-plugin-jsonc": "^2.9.0",
"eslint-plugin-markdown": "^3.0.1",
"eslint-plugin-n": "^16.0.2",
Expand Down
70 changes: 50 additions & 20 deletions pnpm-lock.yaml

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

0 comments on commit 309249f

Please sign in to comment.