Skip to content

chore(tsconfig): disallow JS#7085

Merged
SevereCloud merged 1 commit intomasterfrom
SevereCloud/chore/tsconfig/disallow-JS
Jun 26, 2024
Merged

chore(tsconfig): disallow JS#7085
SevereCloud merged 1 commit intomasterfrom
SevereCloud/chore/tsconfig/disallow-JS

Conversation

@SevereCloud
Copy link
Copy Markdown
Contributor

Отключаем allowJs. Нужно для поддержки isolatedDeclarations

Отключаем allowJs. Нужно для поддержки isolatedDeclarations
@SevereCloud SevereCloud requested a review from a team as a code owner June 26, 2024 13:51
@github-actions
Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
JS 364.44 KB (0%)
JS (gzip) 111.56 KB (0%)
JS (brotli) 91.86 KB (0%)
JS import Div (tree shaking) 1.42 KB (0%)
CSS 285.27 KB (0%)
CSS (gzip) 36.99 KB (0%)
CSS (brotli) 29.91 KB (0%)

@SevereCloud SevereCloud self-assigned this Jun 26, 2024
@codesandbox-ci
Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@github-actions
Copy link
Copy Markdown
Contributor

e2e tests

Playwright Report

@github-actions
Copy link
Copy Markdown
Contributor

👀 Docs deployed

Commit 4236daa

@codecov
Copy link
Copy Markdown

codecov bot commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.55%. Comparing base (db642ca) to head (4236daa).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7085      +/-   ##
==========================================
- Coverage   83.57%   83.55%   -0.03%     
==========================================
  Files         352      352              
  Lines       10551    10542       -9     
  Branches     3489     3489              
==========================================
- Hits         8818     8808      -10     
- Misses       1733     1734       +1     
Flag Coverage Δ
unittests 83.55% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SevereCloud SevereCloud merged commit d1e9a09 into master Jun 26, 2024
@SevereCloud SevereCloud deleted the SevereCloud/chore/tsconfig/disallow-JS branch June 26, 2024 14:45
inomdzhon added a commit that referenced this pull request Jul 10, 2024
Т.к. `/src/shared/breakpoints.js` нужен только для `/scripts/generateCSSCustomMedias.js` внёс следующие изменения:

1. `/src/shared/breakpoints.js` -> `/src/lib/adaptivity/breakpoints.ts`;
2. `/scripts/generateCSSCustomMedias.js` -> `/scripts/generateCSSCustomMedias.mjs`;
3. перенёс `getCustomMedias()` из `shared.config.js` в `/scripts/generateCSSCustomMedias.mjs`;
4. `/src/lib/adaptivity/breakpoints.ts` в `/scripts/generateCSSCustomMedias.mjs` мы импортируем через `fs.readFileSync()` и последующий [ts.transpileModule()](https://github.com/Microsoft/TypeScript-wiki/blob/main/Using-the-Compiler-API.md#a-simple-transform-function). Выполняем код через [import()](https://2ality.com/2019/10/eval-via-import.html#evaluating-simple-code-via-import()).
5. в `/src/lib/adaptivity/types.ts` создал тип `CSSCustomMedias` и применяю его через JSDoc в `getCustomMedias()` – теперь `yarn workspace @vkontakte/vkui run lint:generated-files` будет падать с ошибкой если поменяли брейкпоинты, а в `getCustomMedias()` поправить забыли;
6. в `/styleguide/Components/Preview` заменил импорт `@vkui/shared/breakpoints` на `@vkui/lib/adaptivity`;
7. поправил `docs/ADAPTIVITY_GUIDE.md`

---

- related to #7085
- caused by #3062
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants