view .eslintrc.js @ 8463:a9bcdc438d69 stable

git: fix pull request deletion - don't crash on deleting refs to PR heads The refs name was passed as unicode string, and that would cause failure like: File ".../site-packages/dulwich/repo.py", line 720, in __delitem__ if name.startswith(b"refs/") or name == b"HEAD": TypeError: startswith first arg must be str or a tuple of str, not bytes Fixed by correctly passing the ref name as bytes, as we do when creating the PR refs. Tests added by Mads Kiilerich.
author Anton Schur <tonich.sh@gmail.com>
date Sat, 26 Sep 2020 15:39:33 +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": {
    }
};