npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

eslint-plugin-thsjs

v1.0.2

Published

## 1. no-delete-array sonar: "delete" should not be used on arrays 不能将delete应用于数组。

Downloads

224

Readme

eslint-plugin-thsjs

1. no-delete-array

sonar: "delete" should not be used on arrays 不能将delete应用于数组。

2. no-amend-for-counter

sonar: "for" loop increment clauses should modify the loops' counters for循环中定义的变量必须在表达式中更新和判断

3. no-future-identifiers

sonar: "future reserved words" should not be used as identifiers 保留字不能作为变量名

4. no-else-if-end

sonar: "if ... else if" constructs should end with "else" clauses if...else if结构应该以一个else结尾

5. no-in-primitive-type

sonar: "in" should not be used with primitive types in不应该使用在原始类型上

6. no-indexof-greater-zero

sonar: "indexOf" checks should not be for positive numbers indexOf检查应该 >= 0 ()

7. new 操作符只能作用于函数 [todo]

8. 已存在eslint constructor-super

9. sonarjs/no-nested-switch

sonar: "switch" statements should not be nested switch语句不能嵌套

10. sonarjs/max-switch-cases

sonar: "switch" statements should not have too many "case" clauses switch语句不能有过多的case

11. 内置函数的参数应与记录的类型匹配(no-arguments-type)[todo]

12. 算数运算符只能作用于数字[todo]

13. 数组索引需要的是数字类型 (no-arrays-mutating)[todo]

14. no-arrays-mutating

sonar: Array-mutating methods should not be used misleadingly 不要错误地使用可以改变数组本身的方法

15. no-assignments-redundant

sonar: Assignments should not be redundant 不应该有多余的赋值语句

16. sonarjs/no-gratuitous-expressions

sonar: Boolean expressions should not be gratuitous 布尔值表达式应该是合理的

17. no-switch-case

sonar: Comma and logical OR operators should not be used in switch cases 逗号和逻辑或不应该出现在switch的case中

18. no-for-equality

sonar: Equality operators should not be used in "for" loop termination conditions 等号运算不能用于for循环的结束条件