Browse Source

feat(conf): disable eslint chunks for TS_LOCAL_CLI
commit_hash:ee7c4c8dd35159dbee0563f507c2fe3c0e445685

zaverden 3 months ago
parent
commit
84ade9fd39
1 changed files with 4 additions and 1 deletions
  1. 4 1
      build/plugins/nots.py

+ 4 - 1
build/plugins/nots.py

@@ -593,7 +593,10 @@ def _setup_eslint(unit: NotsUnitType) -> None:
 
 
     extra_deps = df.CustomDependencies.test_depends_only(unit, (), {})[df.CustomDependencies.KEY].split()
     extra_deps = df.CustomDependencies.test_depends_only(unit, (), {})[df.CustomDependencies.KEY].split()
     dart_record[df.CustomDependencies.KEY] = " ".join(sort_uniq(deps + extra_deps))
     dart_record[df.CustomDependencies.KEY] = " ".join(sort_uniq(deps + extra_deps))
-    dart_record[df.LintFileProcessingTime.KEY] = str(ESLINT_FILE_PROCESSING_TIME_DEFAULT)
+
+    if unit.get("TS_LOCAL_CLI") != "yes":
+        # disable chunks for `ya tool nots`
+        dart_record[df.LintFileProcessingTime.KEY] = str(ESLINT_FILE_PROCESSING_TIME_DEFAULT)
 
 
     data = ytest.dump_test(unit, dart_record)
     data = ytest.dump_test(unit, dart_record)
     if data:
     if data: