hedgedoc/public/.eslintrc.js
David Mehren e0021036ae
Fix missing inline authorship colors
The hex2rgb function seems to previously have been available globally.
It probably got lost in the great Webpack refactoring and nobody noticed
 that.

 This copies the function into its own file (to make importing it easy)
 and adds an import in index.js.

 Fixes https://github.com/hedgedoc/hedgedoc/issues/2248

Signed-off-by: David Mehren <git@herrmehren.de>
2022-04-08 12:13:37 +02:00

27 lines
534 B
JavaScript

// this config file is used in concert with the root .eslintrc.js in the root dir.
module.exports = {
env: {
browser: true
},
globals: {
$: false,
CodeMirror: false,
Cookies: false,
moment: false,
editor: false,
ui: false,
Spinner: false,
modeType: false,
Idle: false,
serverurl: false,
key: false,
gapi: false,
Dropbox: false,
FilePicker: false,
ot: false,
MediaUploader: false,
num_loaded: false,
Visibility: false,
inlineAttachment: false
}
}