Mercurial > kallithea
view .eslintrc.js @ 8817:233ba8198781
celery: use explicit task names - avoid automatic naming with "kallithea.lib.celerylib." prefix
We wrap async functions in a local f_async wrapper, defined in
kallithea/lib/celerylib/__init__.py . For a function Foo.X, even though we
changed the wrapper's __name__ to X, the tasks would be named
kallithea.lib.celerylib.X , without using the actual module name of X for
namespacing.
Drop modifying __name__, and just specify the name explicitly, without trying
to namespace it.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 06 Jan 2021 22:43:43 +0100 |
parents | 4d36432bf705 |
children |
line wrap: on
line source
module.exports = { "env": { "browser": true, "es6": true, "jquery": true }, "extends": "eslint:recommended", "globals": { "Atomics": "readonly", "SharedArrayBuffer": "readonly" }, "parserOptions": { "ecmaVersion": 2018, "sourceType": "module" }, "plugins": [ "html" ], "rules": { } };