Skip to content

Commit

Permalink
[INTERNAL] TypeScript/ESLint: Allow missing jsdoc, require consistend…
Browse files Browse the repository at this point in the history
… type import/export
  • Loading branch information
RandomByte committed Aug 28, 2024
1 parent 1a50267 commit 94d2e73
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions eslint.common.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ export default tseslint.config(
// TypeScript specific overwrites
// We must disable the base rule as it can report incorrect errors
"no-unused-vars": "off",
"@typescript-eslint/consistent-type-imports": ["error", {
fixMixedExportsWithInlineTypeSpecifier: true,
}],
"@typescript-eslint/consistent-type-exports": ["error", {
fixStyle: "inline-type-imports",
}],
"@typescript-eslint/no-unused-vars": [
"error", {
argsIgnorePattern: "^_",
Expand Down Expand Up @@ -120,7 +126,7 @@ export default tseslint.config(
"no-console": "error",
"no-eval": "error",

"valid-jsdoc": 0,
"valid-jsdoc": "off",
},
}, {
// JSdoc only applying to sources
Expand All @@ -130,9 +136,10 @@ export default tseslint.config(
// Overwriting JSDoc rules in a separate config with the same files pattern
files: ["src/**/*.ts"],
rules: {
"jsdoc/require-returns": 0,
"jsdoc/require-returns-description": 0,
"jsdoc/tag-lines": [2, "any", {
"jsdoc/require-jsdoc": "off",
"jsdoc/require-returns": "off",
"jsdoc/require-returns-description": "off",
"jsdoc/tag-lines": ["error", "any", {
startLines: 1,
}],
},
Expand Down

0 comments on commit 94d2e73

Please sign in to comment.