Skip to content

Commit

Permalink
chore: move jsdoc settings to eslint-config-eslint (#17338)
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Jul 4, 2023
1 parent d34abe5 commit 0052374
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 20 deletions.
10 changes: 0 additions & 10 deletions .eslintrc.js
Expand Up @@ -67,16 +67,6 @@ module.exports = {
parserOptions: {
ecmaVersion: 2021
},

/*
* it fixes eslint-plugin-jsdoc's reports: "Invalid JSDoc tag name "template" jsdoc/check-tag-names"
* refs: https://github.com/gajus/eslint-plugin-jsdoc#check-tag-names
*/
settings: {
jsdoc: {
mode: "typescript"
}
},
rules: {
"internal-rules/multiline-comment-style": "error"
},
Expand Down
10 changes: 0 additions & 10 deletions eslint.config.js
Expand Up @@ -100,16 +100,6 @@ module.exports = [
languageOptions: {
ecmaVersion: "latest"
},

/*
* it fixes eslint-plugin-jsdoc's reports: "Invalid JSDoc tag name "template" jsdoc/check-tag-names"
* refs: https://github.com/gajus/eslint-plugin-jsdoc#check-tag-names
*/
settings: {
jsdoc: {
mode: "typescript"
}
},
rules: {
"internal-rules/multiline-comment-style": "error"
}
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config-eslint/eslintrc.js
Expand Up @@ -18,6 +18,7 @@ module.exports = {
plugins: ["unicorn"],
settings: {
jsdoc: {
mode: "typescript",
tagNamePreference: {
file: "fileoverview",
augments: "extends",
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config-eslint/index.js
Expand Up @@ -278,6 +278,7 @@ const jsConfigs = [js.configs.recommended, {
const jsdocConfigs = [jsdoc.configs.recommended, {
settings: {
jsdoc: {
mode: "typescript",
tagNamePreference: {
file: "fileoverview",
augments: "extends",
Expand Down

0 comments on commit 0052374

Please sign in to comment.