-
Notifications
You must be signed in to change notification settings - Fork 576
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable recommended
eslint-plugin-jsdoc
rules (#5779)
* Upgraded jsdoc and typescript eslint deps * Enabling recommended jsdoc in the SDK * Updated @throws to ensure "freetext" mode is recognized. * Fixing a lot of lint warnings * Ran 'lint --fix' * Fixing a lot of lint issues * Ran lint --fix in @realm/react
- Loading branch information
1 parent
50c698c
commit 28a50dc
Showing
51 changed files
with
414 additions
and
1,288 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
{ | ||
"plugins": [ | ||
"eslint-plugin-tsdoc" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"extends": [ | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react-hooks/recommended" | ||
"plugin:react-hooks/recommended", | ||
"plugin:jsdoc/recommended-typescript" | ||
], | ||
"rules": { | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"react-hooks/rules-of-hooks": "error", | ||
"react-hooks/exhaustive-deps": "warn", | ||
"tsdoc/syntax": "warn" | ||
"jsdoc/check-tag-names": "off", | ||
"jsdoc/require-jsdoc": "off", | ||
"jsdoc/require-returns": "off", | ||
"jsdoc/require-yields": "off", | ||
"jsdoc/require-param": "off", | ||
"jsdoc/no-undefined-types": "warn" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
dist/ | ||
generated/types/ | ||
docs/ | ||
bindgen/vendor/realm-core/ | ||
src/tests/realms/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"extends": [ | ||
"plugin:@typescript-eslint/recommended" | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:jsdoc/recommended-typescript" | ||
], | ||
"rules": { | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"no-console": "error", | ||
"sort-imports": ["warn", { "ignoreDeclarationSort": true }] | ||
"sort-imports": ["warn", { "ignoreDeclarationSort": true }], | ||
"jsdoc/check-tag-names": "off", | ||
"jsdoc/require-jsdoc": "off", | ||
"jsdoc/require-returns": "off", | ||
"jsdoc/require-yields": "off", | ||
"jsdoc/require-param": "off", | ||
"jsdoc/no-undefined-types": "warn" | ||
} | ||
} |
Oops, something went wrong.