eslint-config-tencent
Version:
ESLint Config for Tencent
572 lines (173 loc) • 16.7 kB
Markdown
# ChangeLog (standards/javascript)
## [2021-09-29, Version v0.16.0](http://git.woa.com/standards/javascript/-/tags/v0.16.0)
### Features
- [[`3cb13aa7`](http://git.woa.com/standards/javascript/commit/3cb13aa7)] **-** 添加 @typescript-eslint/no-misused-promises 规则 (xcatliu)
## [2021-06-28, Version v0.15.2](http://git.woa.com/standards/javascript/-/tags/v0.15.2)
### Bug fixes
- [[`8b8e1177`](http://git.woa.com/standards/javascript/commit/8b8e1177)] **-** 优化错误示例 (ziofatli)
- [[`083381aa`](http://git.woa.com/standards/javascript/commit/083381aa)] **-** 未使用变量允许使用前导下划线表明 (ziofatli)
## [2021-06-17, Version v0.15.1](http://git.woa.com/standards/javascript/-/tags/v0.15.1)
### Bug fixes
- [[`3a9536a7`](http://git.woa.com/standards/javascript/commit/3a9536a7)] **-** **rules**: #197 fixed the issues we are discussed (xqkuang(旷旭卿)) [#197](https://git.woa.com/standards/javascript/issues/197)
- [[`517ac213`](http://git.woa.com/standards/javascript/commit/517ac213)] **-** **rules**: #197 make naming-convention compatible with React FC (xqkuang(旷旭卿)) [#197](https://git.woa.com/standards/javascript/issues/197)
- [[`137b65ca`](http://git.woa.com/standards/javascript/commit/137b65ca)] **-** **rules**: #199 make spaced-comment compatible with triple slash directives (xqkuang(旷旭卿)) [#199](https://git.woa.com/standards/javascript/issues/199)
## [2021-06-15, Version v0.15.0](http://git.woa.com/standards/javascript/-/tags/v0.15.0)
### Features
- [[`cd8b024e`](http://git.woa.com/standards/javascript/commit/cd8b024e)] **-** remove class literal property style rule (ziofatli)
## [2021-06-08, Version v0.14.0](http://git.woa.com/standards/javascript/-/tags/v0.14.0)
### Features
- [[`13c94760`](http://git.woa.com/standards/javascript/commit/13c94760)] **-** **prettier**: 添加 @tencent/eslint-config-tencent/prettier 规则 (xcatliu)
## [2021-05-28, Version v0.13.3](http://git.woa.com/standards/javascript/-/tags/v0.13.3)
### Bug fixes
- [[`b1bf13c3`](http://git.woa.com/standards/javascript/commit/b1bf13c3)] **-** 删除重复规则 (meteorxyliu)
## [2021-05-28, Version v0.13.2](http://git.woa.com/standards/javascript/-/tags/v0.13.2)
### Bug fixes
- [[`be155971`](http://git.woa.com/standards/javascript/commit/be155971)] **-** **doc**: 修改 Readme 中的空格规则级别使其和配置一致 (ziofatli)
## [2021-05-24, Version v0.13.1](http://git.woa.com/standards/javascript/-/tags/v0.13.1)
### Bug fixes
- [[`40da5ee9`](http://git.woa.com/standards/javascript/commit/40da5ee9)] **-** 🐛 change to use rebase merge type (xqkuang(旷旭卿))
## [2021-04-25, Version v0.13.0](http://git.woa.com/standards/javascript/-/tags/v0.13.0)
### Features
- [[`38dc4eb8`](http://git.woa.com/standards/javascript/commit/38dc4eb8)] **-** **comment**: 增加文档注释相关规定 (ziofatli)
## [2020-12-23, Version v0.12.3](http://git.woa.com/standards/javascript/-/tags/v0.12.3)
### Bug fixes
- [[`0e129a71`](http://git.woa.com/standards/javascript/commit/0e129a71)] **-** **rules**: 修复不允许使用for-of的规则 (alextang) [!127](https://git.woa.com/standards/javascript/merge_requests/127)
## [2020-09-28, Version v0.12.2](http://git.woa.com/standards/javascript/-/tags/v0.12.2)
### Bug fixes
- [[`2b1460f0`](http://git.woa.com/standards/javascript/commit/2b1460f0)] **-** **rules**: 放宽 no-mixed-operators 在四则运算上的限制 (feihua) [!118](https://git.woa.com/standards/javascript/merge_requests/118)
## [2020-09-28, Version v0.12.1](http://git.woa.com/standards/javascript/-/tags/v0.12.1)
### Bug fixes
- [[`10fd84ed`](http://git.woa.com/standards/javascript/commit/10fd84ed)] **-** **ts**: downgrade ts/explicit-member-accessibility to off #65 (xqkuang(旷旭卿)) [!90](https://git.woa.com/standards/javascript/merge_requests/90) [#65](https://git.woa.com/standards/javascript/issues/65)
## [2020-09-27, Version v0.12.0](http://git.woa.com/standards/javascript/-/tags/v0.12.0)
### Features
- [[`d8894f77`](http://git.woa.com/standards/javascript/commit/d8894f77)] **-** **ts**: 使用 brace-style 规则的 ts 版本 (meteorxyliu) [!116](https://git.woa.com/standards/javascript/merge_requests/116)
## [2020-09-14, Version v0.11.2](http://git.woa.com/standards/javascript/-/tags/v0.11.2)
### Bug fixes
- [[`018c16ca`](http://git.woa.com/standards/javascript/commit/018c16ca)] **-** **rules**: 保证一个规则文件中只有一个规则 (feihua) [!111](https://git.woa.com/standards/javascript/merge_requests/111)
## [2020-09-11, Version v0.11.1](http://git.woa.com/standards/javascript/-/tags/v0.11.1)
### Bug fixes
- [[`d42e9cc7`](http://git.woa.com/standards/javascript/commit/d42e9cc7)] **-** **rules**: 放宽 new-cap 规则, 允许大写开头函数被直接调用 (feihua) [!109](https://git.woa.com/standards/javascript/merge_requests/109)
## [2020-09-11, Version v0.11.0](http://git.woa.com/standards/javascript/-/tags/v0.11.0)
### Features
- [[`72e008fc`](http://git.woa.com/standards/javascript/commit/72e008fc)] **-** **rules**: 豁免 no-param-reassign 规则在部分常用库下的行为 (feihua) [!108](https://git.woa.com/standards/javascript/merge_requests/108)
## [2020-09-11, Version v0.10.0](http://git.woa.com/standards/javascript/-/tags/v0.10.0)
### Features
- [[`49743197`](http://git.woa.com/standards/javascript/commit/49743197)] **-** **rules**: 放宽 prefer-destructuring 的范围 (feihua) [!99](https://git.woa.com/standards/javascript/merge_requests/99)
## [2020-09-10, Version v0.9.1](http://git.woa.com/standards/javascript/-/tags/v0.9.1)
### Bug fixes
- [[`22937c94`](http://git.woa.com/standards/javascript/commit/22937c94)] **-** **rules**: 修正 TypeScript 校验逻辑 (feihua) [!103](https://git.woa.com/standards/javascript/merge_requests/103)
## [2020-09-10, Version v0.9.0](http://git.woa.com/standards/javascript/-/tags/v0.9.0)
### Features
- [[`33f50ba3`](http://git.woa.com/standards/javascript/commit/33f50ba3)] **-** **rules**: 放宽 no-mixed-operators 规则 (feihua) [!97](https://git.woa.com/standards/javascript/merge_requests/97)
## [2020-09-09, Version v0.8.1](http://git.woa.com/standards/javascript/-/tags/v0.8.1)
### Bug fixes
- [[`1f64b714`](http://git.woa.com/standards/javascript/commit/1f64b714)] **-** remove wrong comment in readme (ziofatli) [!96](https://git.woa.com/standards/javascript/merge_requests/96)
## [2020-09-09, Version v0.8.0](http://git.woa.com/standards/javascript/-/tags/v0.8.0)
### Features
- [[`e46ec7c2`](http://git.woa.com/standards/javascript/commit/e46ec7c2)] **-** **ci**: 建立专用的走查群 (youkunhuang) [!105](https://git.woa.com/standards/javascript/merge_requests/105)
## [2020-09-07, Version v0.7.2](http://git.woa.com/standards/javascript/-/tags/v0.7.2)
### Bug fixes
- [[`7d8637e4`](http://git.woa.com/standards/javascript/commit/7d8637e4)] **-** **typo**: fixed PascalCase typo (weitao)
## [2020-07-29, Version v0.7.1](http://git.woa.com/standards/javascript/-/tags/v0.7.1)
### Bug fixes
- [[`a5eb47c0`](http://git.woa.com/standards/javascript/commit/a5eb47c0)] **-** **rules**: 处理 ts 中 func-spacing-call 的误报问题 (ziofatli)
## [2020-06-24, Version v0.7.0](http://git.woa.com/standards/javascript/-/tags/v0.7.0)
### Features
- [[`dab1dde2`](http://git.woa.com/standards/javascript/commit/dab1dde2)] **-** **rules**: close ts-new-cap (svenzeng)
## [2020-06-10, Version v0.6.0](http://git.woa.com/standards/javascript/-/tags/v0.6.0)
### Features
- [[`6195f7cb`](http://git.woa.com/standards/javascript/commit/6195f7cb)] **-** **rules**: add ts-legacy.js (xcatliu)
## [2020-06-03, Version v0.5.1](http://git.woa.com/standards/javascript/-/tags/v0.5.1)
### Bug fixes
- [[`fb939f4f`](http://git.woa.com/standards/javascript/commit/fb939f4f)] **-** **rules**: make brace-style be error #70 (xqkuang(旷旭卿)) [#70](https://git.woa.com/standards/javascript/issues/70)
## [2020-05-21, Version v0.5.0](http://git.woa.com/standards/javascript/-/tags/v0.5.0)
### Features
- [[`ee63d704`](http://git.woa.com/standards/javascript/commit/ee63d704)] **-** **linebreaks-style**: added rule for unix linebreaks #36 (xqkuang(旷旭卿)) [#36](https://git.woa.com/standards/javascript/issues/36)
## [2020-05-09, Version v0.4.1](http://git.woa.com/standards/javascript/-/tags/v0.4.1)
### Bug fixes
- [[`a11d0b3a`](http://git.woa.com/standards/javascript/commit/a11d0b3a)] **-** 纠正文件名与组件文件名的规范要求 (kylehrzhang)
## [2020-05-06, Version v0.4.0](http://git.woa.com/standards/javascript/-/tags/v0.4.0)
### Features
- [[`a2220be9`](http://git.woa.com/standards/javascript/commit/a2220be9)] **-** **ts**: 添加 ts 的配置 (xcatliu)
## [2020-04-28, Version v0.3.8](http://git.woa.com/standards/javascript/-/tags/v0.3.8)
### Bug fixes
- [[`3d620e51`](http://git.woa.com/standards/javascript/commit/3d620e51)] **-** recorrect 'has' usage (merge request !61) (crystalmeng)
## [2020-04-27, Version v0.3.7](http://git.woa.com/standards/javascript/-/tags/v0.3.7)
### Bug fixes
- [[`02995407`](http://git.woa.com/standards/javascript/commit/02995407)] **-** **dockerfile**: Dockerfile 中增加 npm prune 以防止自身的 typescript 模块影响 ts 判断 (mapleeit)
## [2020-04-07, Version v0.3.6](http://git.woa.com/standards/javascript/-/tags/v0.3.6)
### Bug fixes
- [[`85ef0ae7`](http://git.woa.com/standards/javascript/commit/85ef0ae7)] **-** **rules**: 修复非 Typescript 项目使用腾讯代码规范的问题 (xqkuang(旷旭卿))
- [[`61cada36`](http://git.woa.com/standards/javascript/commit/61cada36)] **-** 应将 function 和 callback 翻译成`函数`而不是`方法` (cheeqi)
## [2020-03-26, Version v0.3.5](http://git.woa.com/standards/javascript/-/tags/v0.3.5)
### Bug fixes
- [[`fd39b3c5`](http://git.woa.com/standards/javascript/commit/fd39b3c5)] **-** **semi**: 26.1 semi的例子和7.12 no-param-reassign的bad例子冲突(#34) (cattyhuang) [#34](https://git.woa.com/standards/javascript/issues/34)
## [2020-03-25, Version v0.3.4](http://git.woa.com/standards/javascript/-/tags/v0.3.4)
### Bug fixes
- [[`258d0fdc`](http://git.woa.com/standards/javascript/commit/258d0fdc)] **-** **max-len**: fill more examples for max-len rule (xqkuang(旷旭卿))
- [[`a980c4c5`](http://git.woa.com/standards/javascript/commit/a980c4c5)] **-** **rules**: max-len规则对于长(模板)字符串需要手动配置忽略(#35) (cattyhuang) [#35](https://git.woa.com/standards/javascript/issues/35)
## [2020-03-13, Version v0.3.3](http://git.woa.com/standards/javascript/-/tags/v0.3.3)
### Bug fixes
- [[`072ffabc`](http://git.woa.com/standards/javascript/commit/072ffabc)] **-** 19.18示例格式不正确的问题(违反3.6) (xsbchen)
## [2020-03-13, Version v0.3.2](http://git.woa.com/standards/javascript/-/tags/v0.3.2)
### Bug fixes
- [[`fb54abd5`](http://git.woa.com/standards/javascript/commit/fb54abd5)] **-** 文档[24.1]的例子是不是有语法问题,已删除错误示例代码 (wadezhan) [#21](https://git.woa.com/standards/javascript/issues/21)
## [2020-03-13, Version v0.3.1](http://git.woa.com/standards/javascript/-/tags/v0.3.1)
### Bug fixes
- [[`33b71f05`](http://git.woa.com/standards/javascript/commit/33b71f05)] **-** **rules**: #22 - make no-plus-plus prompt error exclude in for loop (xqkuang(旷旭卿)) [#22](https://git.woa.com/standards/javascript/issues/22)
## [2020-03-09, Version v0.3.0](http://git.woa.com/standards/javascript/-/tags/v0.3.0)
### Features
- [[`d0c048fc`](http://git.woa.com/standards/javascript/commit/d0c048fc)] **-** add indent rule (xcatliu)
## [2020-03-05, Version v0.2.7](http://git.woa.com/standards/javascript/-/tags/v0.2.7)
### Bug fixes
- [[`d98b4758`](http://git.woa.com/standards/javascript/commit/d98b4758)] **-** **base**: babel-eslint dependency (xqkuang(旷旭卿))
## [2020-02-18, Version v0.2.6](http://git.woa.com/standards/javascript/-/tags/v0.2.6)
### Bug fixes
- [[`f4c44882`](http://git.woa.com/standards/javascript/commit/f4c44882)] **-** 因为实际应用问题, 取消 id-length 校验 (kelvinsun)
## [2020-02-18, Version v0.2.5](http://git.woa.com/standards/javascript/-/tags/v0.2.5)
### Bug fixes
- [[`e7690ca3`](http://git.woa.com/standards/javascript/commit/e7690ca3)] **-** 语法错误 (kelvinsun)
- [[`a6753800`](http://git.woa.com/standards/javascript/commit/a6753800)] **-** 新引入文件不通过 lint 的问题 (kelvinsun)
## [2020-02-18, Version v0.2.4](http://git.woa.com/standards/javascript/-/tags/v0.2.4)
### Bug fixes
- [[`3fd97805`](http://git.woa.com/standards/javascript/commit/3fd97805)] **-** autotag 发布法修复 (kelvinsun)
## [2020-02-18, Version v0.2.3](http://git.woa.com/standards/javascript/-/tags/v0.2.3)
### Bug fixes
- [[`01fd0e51`](http://git.woa.com/standards/javascript/commit/01fd0e51)] **-** version problem (kelvinsun)
## [2020-02-11, Version v0.2.2](http://git.woa.com/standards/javascript/-/tags/v0.2.2)
### Bug fixes
- [[`80f0888e`](http://git.woa.com/standards/javascript/commit/80f0888e)] **-** **rule**: fix #12 (lemanzhang) [#12](https://git.woa.com/standards/javascript/issues/12)
## [2020-01-20, Version v0.2.1](http://git.woa.com/standards/javascript/-/tags/v0.2.1)
### Bug fixes
- [[`65d9d035`](http://git.woa.com/standards/javascript/commit/65d9d035)] **-** format readme (vicyao)
## [2020-01-17, Version v0.2.0](http://git.woa.com/standards/javascript/-/tags/v0.2.0)
### Features
- [[`88ff16ba`](http://git.woa.com/standards/javascript/commit/88ff16ba)] **-** no-unused-vars 的 args 规则改为 after-used (bobbli)
## [2020-01-10, Version v0.1.11](http://git.woa.com/standards/javascript/-/tags/v0.1.11)
### Bug fixes
- [[`3ab3d602`](http://git.woa.com/standards/javascript/commit/3ab3d602)] **-** **rule**: 根据README补齐no-undef规则 (lemanzhang)
## [2020-01-09, Version v0.1.10](http://git.woa.com/standards/javascript/-/tags/v0.1.10)
### Bug fixes
- [[`f5910949`](http://git.woa.com/standards/javascript/commit/f5910949)] **-** 调整项目构建方式改为在ci中构建 (lemanzhang)
## [2020-01-09, Version v0.1.9](http://git.woa.com/standards/javascript/-/tags/v0.1.9)
### Bug fixes
- [[`dd62c31a`](http://git.woa.com/standards/javascript/commit/dd62c31a)] **-** 补一个遗漏的需要修改为warn规则prefer-destructuring (lemanzhang)
## [2020-01-09, Version v0.1.8](http://git.woa.com/standards/javascript/-/tags/v0.1.8)
### Bug fixes
- [[`16ead381`](http://git.woa.com/standards/javascript/commit/16ead381)] **-** 根据README的描述,将部分规则从error级别调整为warn (merge request !15) (lemanzhang)
## [2020-01-08, Version v0.1.7](http://git.woa.com/standards/javascript/-/tags/v0.1.7)
### Bug fixes
- [[`dd0f42b1`](http://git.woa.com/standards/javascript/commit/dd0f42b1)] **-** 修复部分规则与README描述不一致的问题 (merge request !13) (lemanzhang)
## [2020-01-07, Version v0.1.5](http://git.woa.com/standards/javascript/-/tags/v0.1.5)
### Bug fixes
- [[`3da5c2fb`](http://git.woa.com/standards/javascript/commit/3da5c2fb)] **-** 目前并不支持 vue 文件, 需要再添加其他插件 (kelvinsun)
## [2020-01-07, Version v0.1.4](http://git.woa.com/standards/javascript/-/tags/v0.1.4)
### Features
- [[`406488e0`](http://git.woa.com/standards/javascript/commit/406488e0)] **-** 增加 ci 专用 docker 镜像 (merge request !8) (kelvinsun)
## [2020-01-07, Version v0.1.2](http://git.woa.com/standards/javascript/-/tags/v0.1.2)
### Features
- [[`05fc410a`](http://git.woa.com/standards/javascript/commit/05fc410a)] **-** 增加供 ci 使用的 docker 镜像 (kelvinsun)
### Bug fixes
- [[`0150b512`](http://git.woa.com/standards/javascript/commit/0150b512)] **-** eslint-plugin-import 的依赖应该是 dependencies 而不是 devDependencies, 这样会导致引用方报错 (kelvinsun)
- [[`936f68db`](http://git.woa.com/standards/javascript/commit/936f68db)] **-** 遗漏修复 prettier.config -> .prettierrc (wadezhan)
- [[`476350ba`](http://git.woa.com/standards/javascript/commit/476350ba)] **-** window 环境下 ts-node 创建编译器示例,默认会从项目根目录读取项目根目录,导致 const ts = require("{cwd}/typescript.js"); typescript.js 规则配置变更为 ts.js (wadezhan)