Skip to content

Commit

Permalink
Add TSDoc linter rules
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilianoSanchez committed Oct 29, 2024
1 parent 4d2a5a4 commit 912f20e
Show file tree
Hide file tree
Showing 80 changed files with 866 additions and 918 deletions.
14 changes: 14 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"eslint-plugin-tsdoc",
"import"
],

Expand Down Expand Up @@ -90,6 +91,19 @@
"sourceType": "module"
}
},
{
"files": ["types/**"],
"rules": {
"no-use-before-define": "off"
}
},
{
// Enable TSDoc rules for TypeScript files, allowing the use of JSDoc in JS files.
"files": ["**/*.ts"],
"rules": {
"tsdoc/syntax": "warn"
}
},
// @TODO remove when moving InLocalStorage to js-browser
{
"files": ["src/storages/inLocalStorage/**/*.ts"],
Expand Down
Loading

0 comments on commit 912f20e

Please sign in to comment.