tools/mercurial/eslintvalidate.py
author Bobby Holley <bobbyholley@gmail.com>
Mon, 22 Jan 2018 16:58:30 -0600
changeset 400338 073c7a9e4309e0fa34852e220426fe2a5e8680c8
parent 398765 912ba3bc72115962148d9b7b110c60ce3f2d697f
permissions -rw-r--r--
servo: Merge #19841 - stylo: Avoid separate monomorphizations of CSS serialization for utf-8 and utf-16 (from bholley:single_tocss); r=emilio https://bugzilla.mozilla.org/show_bug.cgi?id=1431268 Source-Repo: https://github.com/servo/servo Source-Revision: 6f543d3de1658e3cacf7fc2caed7b9bda69e1d23

# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.

OBSOLETE = """
ERROR: the eslintvalidate hook is obsolete. This commit went
through, but ESlint didn't run. You can lint your changes
after the fact by running:

    $ mach lint --outgoing

Please remove this hook and upgrade by following these
instructions:
https://firefox-source-docs.mozilla.org/tools/lint/usage.html#using-a-vcs-hook
""".lstrip()


def eslinthook(ui, repo, node=None, **opts):
    ui.warn(OBSOLETE)
    return False


def reposetup(ui, repo):
    ui.setconfig('hooks', 'commit.eslint', eslinthook)