mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-03 02:21:05 +08:00
+ drive-by imports cleanup DISABLE_THIRD_PARTY_CHECK=Migrating multiple scripts to py3 Bug: 1292013 Change-Id: Ie81765366236bd6f6213075de3d529afe21d561f Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3521887 Reviewed-by: Mathias Bynens <mathias@chromium.org> Commit-Queue: Liviu Rau <liviurau@chromium.org>
36 lines
905 B
Python
Executable File
36 lines
905 B
Python
Executable File
#!/usr/bin/env vpython3
|
|
#
|
|
# Copyright 2016 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# TODO(1083142): remove this file in favor of run_lint_check_js.py once
|
|
# infra has been updated.
|
|
|
|
import sys
|
|
from os import path
|
|
from subprocess import Popen
|
|
|
|
scripts_path = path.dirname(path.dirname(path.abspath(__file__)))
|
|
sys.path.append(scripts_path)
|
|
import devtools_paths
|
|
|
|
CURRENT_DIRECTORY = path.dirname(path.abspath(__file__))
|
|
ROOT_DIRECTORY = path.normpath(path.join(CURRENT_DIRECTORY, '..', '..'))
|
|
|
|
|
|
def main():
|
|
exec_command = [
|
|
devtools_paths.node_path(),
|
|
path.join(CURRENT_DIRECTORY, 'run_lint_check_js.mjs'),
|
|
]
|
|
|
|
eslint_proc = Popen(exec_command, cwd=ROOT_DIRECTORY)
|
|
eslint_proc.communicate()
|
|
|
|
sys.exit(eslint_proc.returncode)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|