-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import cheminfo from 'eslint-config-cheminfo'; | ||
import globals from 'globals'; | ||
|
||
export default [ | ||
...cheminfo, | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
}, | ||
}, | ||
rules: { | ||
// "camelcase": "off", | ||
} | ||
} | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,9 @@ import { spectrumCallback } from './utils/spectrumCallback'; | |
* @param {ArrayBuffer|string} jcamp | ||
Check warning on line 7 in src/from/fromJcamp.js GitHub Actions / nodejs / lint-eslint
|
||
* @param {object} [options={}] | ||
Check warning on line 8 in src/from/fromJcamp.js GitHub Actions / nodejs / lint-eslint
|
||
* @param {string|number} [options.id=Math.random()] | ||
Check warning on line 9 in src/from/fromJcamp.js GitHub Actions / nodejs / lint-eslint
|
||
* @param {string} [options.label=options.id] human redeable label | ||
* @param {string} [options.spectrumCallback] a callback to apply on variables when creating spectrum. Default will add a and t | ||
* @return {Analysis} - New class element with the given data | ||
* @param {string} [options.label=options.id] - human redeable label | ||
* @param {string} [options.spectrumCallback] - a callback to apply on variables when creating spectrum. Default will add a and t | ||
* @returns {Analysis} - New class element with the given data | ||
*/ | ||
export function fromJcamp(jcamp, options = {}) { | ||
return commonFromJcamp(jcamp, { ...options, spectrumCallback }); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** | ||
* @typedef {Object} Peak | ||
* @typedef {object} Peak | ||
* @property {number} wavelength | ||
Check warning on line 3 in src/jsgraph/getAnnotations.js GitHub Actions / nodejs / lint-eslint
|
||
* @property {number} absorbance | ||
Check warning on line 4 in src/jsgraph/getAnnotations.js GitHub Actions / nodejs / lint-eslint
|
||
* @property {number} kind | ||
Check warning on line 5 in src/jsgraph/getAnnotations.js GitHub Actions / nodejs / lint-eslint
|
||
|
@@ -8,13 +8,13 @@ | |
|
||
/** | ||
* Creates annotations for jsgraph that allows to display the result of peak picking | ||
* @param {array<Peak>} peaks | ||
* @param {Array<Peak>} peaks | ||
Check warning on line 11 in src/jsgraph/getAnnotations.js GitHub Actions / nodejs / lint-eslint
|
||
* @param {object} [options={}] | ||
* @param {string} [options.fillColor='green'] | ||
* @param {string} [options.strokeColor='red'] | ||
* @param {string} [options.showKind=true] Display the kind, 'm', 'w', 'S' | ||
* @param {string} [options.showAssignment=true] Display the assignment | ||
* @param {function} [options.createFct] (annotation, peak) => {}: callback allowing to add properties | ||
* @param {string} [options.showKind=true] - Display the kind, 'm', 'w', 'S' | ||
* @param {string} [options.showAssignment=true] - Display the assignment | ||
* @param {Function} [options.createFct] - (annotation, peak) => {}: callback allowing to add properties | ||
* @returns array | ||
*/ | ||
|
||
|