Mercurial > kallithea
view .eslintrc.js @ 8852:252b86664549
pytype: add some assertions to guide pytype through const dict with tricky typing structure
These assertions also make the code more explicit and slightly more readable.
Mute pytype warnings:
File "kallithea/tests/vcs/base.py", line 76, in setup_repo: No attribute 'path' on str [attribute-error]
In Union[kallithea.lib.vcs.nodes.FileNode, nothing, str]
File "kallithea/tests/vcs/base.py", line 76, in setup_repo: No attribute 'content' on str [attribute-error]
In Union[kallithea.lib.vcs.nodes.FileNode, nothing, str]
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Tue, 18 Aug 2020 21:22:32 +0200 |
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": { } };