aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorvturov <vturov@yandex-team.com>2023-03-27 09:22:32 +0300
committervturov <vturov@yandex-team.com>2023-03-27 09:22:32 +0300
commit4febd9ea8a1bd50118483f55b98bf9655f479ab8 (patch)
tree9721bcb1a68261cff56169fe027ffd38ce59f269 /build
parentcd17556f6887bcd2ff85b0071f82f27ef193b619 (diff)
downloadydb-4febd9ea8a1bd50118483f55b98bf9655f479ab8.tar.gz
Добавляем возможность кастомизации пути к конфигурационному файлу eslint
* eslint: добавляем кастомный конфигурационный файл к интеграционным тестам * eslint: возможность задать параметр для конфигурационного файла
Diffstat (limited to 'build')
-rw-r--r--build/conf/ts.conf2
-rw-r--r--build/plugins/nots.py7
2 files changed, 6 insertions, 3 deletions
diff --git a/build/conf/ts.conf b/build/conf/ts.conf
index a6fa837ce0..2fa6195c9c 100644
--- a/build/conf/ts.conf
+++ b/build/conf/ts.conf
@@ -273,7 +273,7 @@ macro TS_TEST_DATA(RENAME="", GLOBS...) {
}
# tag:test
-ESLINT_CONFIG_NAME=.eslintrc.js
+ESLINT_CONFIG_PATH=.eslintrc.js
_TS_LINT_SRCS_VALUE=
### _TS_LIBRARY_EPILOGUE() # internal
###
diff --git a/build/plugins/nots.py b/build/plugins/nots.py
index a12304d0bb..d08e51e786 100644
--- a/build/plugins/nots.py
+++ b/build/plugins/nots.py
@@ -155,7 +155,7 @@ def _get_test_runner_handlers():
def _add_jest_ts_test(unit, test_runner, test_files, deps, test_record):
- # TODO: remove these 3 lines. NOTS-PLUGINS-PATH is for back-compat with ya nad test_tool
+ # TODO: remove these 3 lines. NOTS-PLUGINS-PATH is for back-compat with ya and test_tool
nots_plugins_path = os.path.join(unit.get("NOTS_PLUGINS_PATH"), "jest")
deps.append(nots_plugins_path)
test_record["NOTS-PLUGINS-PATH"] = nots_plugins_path
@@ -218,7 +218,10 @@ def _setup_eslint(unit):
lint_files = _resolve_module_files(unit, mod_dir, lint_files)
deps = _create_pm(unit).get_peers_from_package_json()
test_record = {
- "ESLINT_CONFIG_NAME": unit.get("ESLINT_CONFIG_NAME"),
+ "ESLINT_CONFIG_PATH": unit.get("ESLINT_CONFIG_PATH"),
+ # TODO: remove ESLINT_CONFIG_NAME after ya + test_tool release - it is for back-compat
+ # in addion to that remove .eslintrc.js - it will no longer be needed
+ "ESLINT_CONFIG_NAME": unit.get("ESLINT_CONFIG_PATH"),
}
_add_test(unit, "eslint", lint_files, deps, test_record, mod_dir)