Mercurial > gemma
annotate client/.eslintrc.js @ 1947:4235fa8f59d7
clien: pdf-gen: load logo externally; add prepare step
* Change the way how the logo to be placed in the pdf is loaded:
It can be configured in the `.env.localĀ“ file, otherwise a placeholder
will be loaded from the static assets. The placeholder has not been
placed in `assets` because it won't be needed if a real logo has
been specified and thus should not compiled in by default.
* Add a mechanism to do asynchronous preparations before rendering.
This is needed for the completeion of the Image() loading, but it also
shows how asynchronous preparational step can be added in principle.
* Disable the start button when the current rendering is in progress.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Tue, 22 Jan 2019 10:01:08 +0100 |
parents | 3907a7b98067 |
children |
rev | line source |
---|---|
3 | 1 module.exports = { |
2 root: true, | |
3 env: { | |
4 node: true | |
5 }, | |
990
3907a7b98067
linted/fixed code format (yarn run lint)
Markus Kottlaender <markus@intevation.de>
parents:
13
diff
changeset
|
6 extends: ["plugin:vue/essential", "@vue/prettier"], |
3 | 7 rules: { |
990
3907a7b98067
linted/fixed code format (yarn run lint)
Markus Kottlaender <markus@intevation.de>
parents:
13
diff
changeset
|
8 "no-console": process.env.NODE_ENV === "production" ? "error" : "off", |
3907a7b98067
linted/fixed code format (yarn run lint)
Markus Kottlaender <markus@intevation.de>
parents:
13
diff
changeset
|
9 "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off" |
3 | 10 }, |
11 parserOptions: { | |
990
3907a7b98067
linted/fixed code format (yarn run lint)
Markus Kottlaender <markus@intevation.de>
parents:
13
diff
changeset
|
12 parser: "babel-eslint" |
3 | 13 } |
990
3907a7b98067
linted/fixed code format (yarn run lint)
Markus Kottlaender <markus@intevation.de>
parents:
13
diff
changeset
|
14 }; |