Skip to content

Conversation

haoqunjiang
Copy link
Member

Notable changes:

  1. By default only <script lang="ts">/<script setup lang="ts"> are allowed in .vue files. This eliminates the subtle different treatments between ts blocks in .vue and .ts, avoids confusion, and aligns better with https://github.com/vuejs/eslint-config-airbnb/tree/main/packages/eslint-config-airbnb-with-typescript#readme and https://github.com/vuejs/eslint-config-standard/tree/main/packages/eslint-config-standard-with-typescript#readme
  2. The default entry is now recommended
  3. Added configurations for type-aware rules so that users don't have to deal with the complicated configurations by themselves.
  4. Added an experimental strict config, making use of https://github.com/ota-meshi/typescript-eslint-parser-for-extra-files

@IGx89
Copy link

IGx89 commented Feb 7, 2023

Looking forward to this! Still being worked on?

@haoqunjiang
Copy link
Member Author

haoqunjiang commented Apr 28, 2023

This PR is too big a breaking change and has taken too much time 🥲

Considering there are 2 other important breaking changes that need to land in this project in the near future: the ESLint Flat Config support and typescript-eslint v6, I think I might have to do a redesign again - if I can't finish this PR in the next month.

The general idea remains, though: it's recommended to use only <script lang="ts">/<script setup lang="ts"> in a TypeScript project.

@rijenkii rijenkii mentioned this pull request Mar 15, 2024
@haoqunjiang
Copy link
Member Author

Closing as most goals in this PR have been achieved alongside the adoption of Flat Config in v14.
Except that I still need to look deeper into https://github.com/ota-meshi/typescript-eslint-parser-for-extra-files integration later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants