Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A total redesign for easier configuration of type-aware rules #48

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

Closed
wants to merge 4 commits into from

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