Code Monkey home page Code Monkey logo

Comments (4)

xcatliu avatar xcatliu commented on June 13, 2024
2024-01-03.17.11.01.mov

from eslint-config-alloy.

xcatliu avatar xcatliu commented on June 13, 2024

我试了下没问题呀,而且这个规则consistent-type-assertions不是「Require Type Info」的,应该是不需要 project 配置的。

是不是 @typescript-eslint/eslint-plugin 的版本和我不一样?

我是 5.57.0

from eslint-config-alloy.

xqyi avatar xqyi commented on June 13, 2024

基本确认了应该是某个依赖的包的版本不一致出现的问题,我将package.json中的依赖包全部升级到了最新版。
在自己的已有项目中使用时文档中的 npm i xxx 命令安装,出现问题可能也是某个依赖包版本太新了导致出现一些问题,package.json 中依赖包很多,只能一个一个和 example/typescript-vue 中的对比版本吗?

from eslint-config-alloy.

xqyi avatar xqyi commented on June 13, 2024

确认了:文档中给的安装脚本 npm install --save-dev @babel/core @babel/eslint-parser @typescript-eslint/eslint-plugin @typescript-eslint/parser @vue/eslint-config-typescript eslint eslint-config-alloy eslint-plugin-vue vue-eslint-parser ,其中 @typescript-eslint/eslint-plugin 和 @typescript-eslint/parser 会自动安装最新的 6.y.z 版本,将这两个包降级到 5.y.z 就正常了

from eslint-config-alloy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.