xcatliu
Repos
198
Followers
3771
Following
213

A static site generator powered by Deno + React

1490
96

TypeScript 入门教程

9517
1224

A modern runtime for JavaScript and TypeScript.

87570
4584

Progressive ESLint config for your React/Vue/TypeScript projects

2494
323

A lightweight, scalable, mobile-first CSS framework

2350
146

Front End Cross-Frameworks Framework - 前端跨框架框架

12520
1193

Events

started
Created at 2 weeks ago
started
Created at 2 weeks ago
started
Created at 2 weeks ago
为什么在vue.js中eqeqeq是off二不是error?

base.jseqeqeq是["error", "always"],但是却被vue.js中的eqeqeq: "off"覆盖。

Created at 3 weeks ago
为什么在vue.js中eqeqeq是off二不是error?

已修复,请下载 v4.9.0 版本

Created at 3 weeks ago

feat: only off base rule in typescript namespace

4.9.0

Created at 3 weeks ago
xcatliu create tag v4.9.0
Created at 3 weeks ago
为什么在vue.js中eqeqeq是off二不是error?

*.ts*.js 文件中不生效可能是有问题的,我考虑一下 vue 不要去使用 ts 同样的构建流程吧

Created at 3 weeks ago
为什么在vue.js中eqeqeq是off二不是error?

无论是在*.js文件或者在*.vue文件的script标签中,== 或者!=都不会出现ESLint的报错。

*.vue 文件中应该是生效的,可以 clone 本项目,在这个文件 https://github.com/AlloyTeam/eslint-config-alloy/blob/master/test/vue/eqeqeq/bad.vue 中应该可以看到有报错信息

Created at 3 weeks ago
为什么在vue.js中eqeqeq是off二不是error?

因为 typescript 规则里,所有继承 coreRule 的规则,都需要先关闭 core rule 再开启 ts rule。所以这个构建流程也继承到了 vue 规则里

Created at 3 weeks ago
为什么在vue.js中eqeqeq是off二不是error?

现在 vue 规则是关闭了 eqeqeq 开启了 vue/eqeqeq。这样子做会有什么问题吗?

Created at 3 weeks ago
为什么在vue.js中eqeqeq是off二不是error?

这个是 eslint-config-alloy 的构建脚本自动添加的。

因为 eslint-plugin-vue 的 eqeqeq 规则继承了 coreRule:

https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/eqeqeq.js#L9 https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/utils/index.js#L505

Created at 3 weeks ago
Created at 3 weeks ago
README 文档的“在 VSCode 中使用”部分落后版本了

已调整文档

Created at 4 weeks ago
README 文档的“在 VSCode 中使用”部分落后版本了

eslint.probe 这个规定 ESlint 插件需要校验的语言类型,默认包括 .vue.html 等文件,只需要 eslint-plugin-vueeslint-plugin-html 等包的支持。

eslint.validate 这个是老版本的定义校验的类型了。

Created at 4 weeks ago

chore: fix #236 update README

Created at 4 weeks ago
README 文档的“在 VSCode 中使用”部分落后版本了

感谢,eslint.probe 的默认值已经包含了大多数文件类型,故不需要再特殊配制了

Created at 4 weeks ago
xcatliu create tag v4.8.0
Created at 4 weeks ago
pull request opened
feat: off vue/multiline-ternary rule
Created at 1 month ago
xcatliu create branch feature/xcatliu_vue_multiline-ternary
Created at 1 month ago
Created at 2 months ago

feat: 添加 Linux 常用命令

Created at 2 months ago
started
Created at 2 months ago
started
Created at 2 months ago
started
Created at 2 months ago