mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
Chore: Additional betterer tests for type assertions and explicit any (#45901)
* Add betterer tests to prevent adding more type assertions and explicit any's into the codebase * update betterer results file * better glob matching * updated results * update results again... * use more up to date betterer packages * they're devdeps... * Commit latest betterer results * latest .betterer.results Co-authored-by: joshhunt <josh@trtr.co>
This commit is contained in:
co-authored by
joshhunt
parent
e935ba2954
commit
ded3d53d89
@@ -12,7 +12,7 @@ LEGACY_FORMS="$(grep -r -oP 'LegacyForms;' public/app | wc -l)"
|
||||
# This is also included in the betterer stats, but we maintain it to keep metric history
|
||||
ENZYME_TEST_COUNT="$(grep -l -R --include="*.test.*" "from 'enzyme'" public packages | wc -l)"
|
||||
|
||||
STRICT_LINT_RESULTS="$(yarn run eslint --rule '@typescript-eslint/no-explicit-any: ["error"]' --format unix --ext .ts,.tsx ./public || true)"
|
||||
STRICT_LINT_RESULTS="$(yarn run eslint --rule '@typescript-eslint/no-explicit-any: ["error"]' --format unix --ext .ts,.tsx ./ || true)"
|
||||
STRICT_LINT_EXPLICIT_ANY="$(echo "${STRICT_LINT_RESULTS}" | grep -o "no-explicit-any" | wc -l)"
|
||||
|
||||
TOTAL_BUNDLE="$(du -sk ./public/build | cut -f1)"
|
||||
|
||||
Reference in New Issue
Block a user