-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1194 from EcrituresNumeriques/feat/eslint-jsdoc
- Loading branch information
Showing
10 changed files
with
220 additions
and
29 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
|
@@ -19,7 +19,6 @@ export function toBibtex(entries) { | |
/** | ||
* We tolerate `unexpected_field` warnings as it's user provided, it does not have any side effect | ||
* @see https://github.com/EcrituresNumeriques/stylo/issues/187 | ||
* | ||
* @param {string} bibtex | ||
* @returns {Promise<{success: number,empty: boolean,warnings: Array.<string>,error: Array.<string>}>} | ||
*/ | ||
|
@@ -88,6 +87,7 @@ export function deriveAuthorNameAndDate(entry) { | |
|
||
/** | ||
* @param {string} Bibtex bibliography | ||
Check warning on line 89 in front/src/helpers/bibtex.js GitHub Actions / build / build
|
||
* @param input | ||
Check warning on line 90 in front/src/helpers/bibtex.js GitHub Actions / build / build
|
||
* @returns {Array.<{ title: string, key: string, type: string }} | ||
*/ | ||
export function toEntries(input) { | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
* Transforms a form into a plain object | ||
* | ||
* formData.entries() does not handle multiple values (sic) and formData.getAll() only works at a field level | ||
* | ||
* @param {React.ReactHTMLElement|FormData} formElement | ||
Check warning on line 5 in front/src/helpers/forms.js GitHub Actions / build / build
|
||
* @param input | ||
Check warning on line 6 in front/src/helpers/forms.js GitHub Actions / build / build
|
||
* @returns {Record<string, string|number|string[]|number[]>} | ||
*/ | ||
export function fromFormData(input) { | ||
|
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 |
---|---|---|
|
@@ -69,7 +69,7 @@ export function useGraphQL() { | |
* @param {string} sessionToken | ||
* @param {DocumentNode|string} queryOrAST | ||
* @param {{[string: key]: value}} variables | ||
Check warning on line 71 in front/src/helpers/graphQL.js GitHub Actions / build / build
|
||
* @return {Promise<string|object>} | ||
* @returns {Promise<string|object>} | ||
*/ | ||
export function runQuery({ sessionToken }, { query: queryOrAST, variables }) { | ||
const query = typeof queryOrAST === 'string' ? queryOrAST : print(queryOrAST) | ||
|
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
Oops, something went wrong.