Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript-eslint: переход на flat config #298

Open
2 of 3 tasks
Nelfimov opened this issue Feb 15, 2024 · 1 comment
Open
2 of 3 tasks

Typescript-eslint: переход на flat config #298

Nelfimov opened this issue Feb 15, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Nelfimov
Copy link
Member

Nelfimov commented Feb 15, 2024

С чем связан запрос на фичу?

Необходимо обновить зависимости у config-eslint, а так же сделать рефактор конфига с учетом обновления версии у typescript-eslint@7

Расскажите как вы это себе видите

  • обновить зависимости
  • рефактор конфига
  • проверка работоспособности через yarn lint

Приложите пример реализаций

https://typescript-eslint.io/blog/announcing-typescript-eslint-v7/#new-features---flat-config-support

@Nelfimov Nelfimov added the enhancement New feature or request label Feb 15, 2024
@Nelfimov
Copy link
Member Author

Промежуточный результат

  • обновил зависимости
  • провел рефактор конфига

В результате новый бандл при исполнении yarn lint дает ошибку:

URL is not a constructor
➤ YN0000: │ Require stack:
➤ YN0000: │ - 
➤ YN0000: │ /Users/nikoroach/Documents/Typescript/atlantis/tools/.yarn/cache/eslint-npm-8.57.0-4286e12a3a-00496e218b.zip/node_modules/eslint/lib/rules/utils/ast-utils.js
➤ YN0000: │ - /Users/nikoroach/Documents/Typescript/atlantis/tools/.yarn/cache/eslint-npm-8.57.0-4286e12a3a-00496e218b.zip/node_modules/eslint/lib/rules/strict.js
➤ YN0000: │ - /Users/nikoroach/Documents/Typescript/atlantis/tools/.yarn/cache/eslint-npm-8.57.0-4286e12a3a-00496e218b.zip/node_modules/eslint/lib/rules/index.js
➤ YN0000: │ - /Users/nikoroach/Documents/Typescript/atlantis/tools/.yarn/cache/eslint-npm-8.57.0-4286e12a3a-00496e218b.zip/node_modules/eslint/lib/linter/rules.js
➤ YN0000: │ - /Users/nikoroach/Documents/Typescript/atlantis/tools/.yarn/cache/eslint-npm-8.57.0-4286e12a3a-00496e218b.zip/node_modules/eslint/lib/linter/linter.js
➤ YN0000: │ - /Users/nikoroach/Documents/Typescript/atlantis/tools/.yarn/cache/eslint-npm-8.57.0-4286e12a3a-00496e218b.zip/node_modules/eslint/lib/linter/index.js
➤ YN0000: │ - 
➤ YN0000: │ /Users/nikoroach/Documents/Typescript/atlantis/tools/.yarn/cache/eslint-npm-8.57.0-4286e12a3a-00496e218b.zip/node_modules/eslint/lib/cli-engine/cli-engine.js
➤ YN0000: │ - /Users/nikoroach/Documents/Typescript/atlantis/tools/.yarn/cache/eslint-npm-8.57.0-4286e12a3a-00496e218b.zip/node_modules/eslint/lib/eslint/eslint.js
➤ YN0000: │ - /Users/nikoroach/Documents/Typescript/atlantis/tools/.yarn/cache/eslint-npm-8.57.0-4286e12a3a-00496e218b.zip/node_modules/eslint/lib/eslint/index.js
➤ YN0000: │ - /Users/nikoroach/Documents/Typescript/atlantis/tools/.yarn/cache/eslint-npm-8.57.0-4286e12a3a-00496e218b.zip/node_modules/eslint/lib/api.js
➤ YN0000: │ - /Users/nikoroach/Documents/Typescript/atlantis/tools/[worker eval]

Было подозрение что связано с yarnpkg/berry#6060 , однако не подтвердилось.

@Nelfimov Nelfimov self-assigned this Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant