Add support for upstream presubmit logic on npm run lint.

This commit is contained in:
Aleksey Khoroshilov
2022-06-20 17:30:24 +07:00
parent 7ab5ffed44
commit ffd10a5576
16 changed files with 390 additions and 63 deletions
+17
View File
@@ -0,0 +1,17 @@
# Copyright (c) 2022 The Brave Authors. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/. */
USE_PYTHON3 = True
PRESUBMIT_VERSION = '2.0.0'
def CheckChangeLintsClean(input_api, output_api):
return input_api.canned_checks.CheckChangeLintsClean(input_api, output_api)
def CheckPylint(input_api, output_api):
return input_api.canned_checks.RunPylint(input_api,
output_api,
version='2.7')