Progressive ESLint config for your React/Vue/TypeScript projects
已修复,请下载 v4.9.0 版本
feat: only off base rule in typescript namespace
4.9.0
在 *.ts
和 *.js
文件中不生效可能是有问题的,我考虑一下 vue 不要去使用 ts 同样的构建流程吧
无论是在
*.js
文件或者在*.vue
文件的script
标签中,==
或者!=
都不会出现ESLint的报错。
在 *.vue
文件中应该是生效的,可以 clone 本项目,在这个文件 https://github.com/AlloyTeam/eslint-config-alloy/blob/master/test/vue/eqeqeq/bad.vue 中应该可以看到有报错信息
因为 typescript 规则里,所有继承 coreRule 的规则,都需要先关闭 core rule 再开启 ts rule。所以这个构建流程也继承到了 vue 规则里
现在 vue 规则是关闭了 eqeqeq
开启了 vue/eqeqeq
。这样子做会有什么问题吗?
这个是 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
已调整文档
eslint.probe
这个规定 ESlint 插件需要校验的语言类型,默认包括 .vue
、.html
等文件,只需要 eslint-plugin-vue
、eslint-plugin-html
等包的支持。
eslint.validate
这个是老版本的定义校验的类型了。
chore: fix #236 update README
感谢,eslint.probe
的默认值已经包含了大多数文件类型,故不需要再特殊配制了
feat: upgrade versions
4.8.0
feat: 添加 Linux 常用命令