Axetroy

Results 156 issues of Axetroy

https://github.com/sindresorhus/eslint-plugin-unicorn/blob/d3e4b805da31c6ed7275e2e2e770b6b0fbcf11c2/rules/utils/boolean.js#L26-L37 Currently, this function is too complicated, judging both the node itself and the node's parent. It is easy to false positives (#1840). Let's split this into two functions -...

bug

### Description When using the +/- operator with strings and numbers. There are many traps here, and things can go wrong. e.g. ```js let result = '5' + 3; console.log(result);...

evaluating
new rule

### Description There are many irregular variable declarations in some Boolean variable declarations. For example ```js const showingModal = false ``` This value is obviously a Boolean value, but it...

evaluating
new rule
types

This is actually in my project, although the code is unreasonable. ```diff var target - target.ondrag = true + target.addEventListener('drag', true) ``` In addition, if the parameters do not match...

bug
help wanted

### Is there an existing issue for this? - [X] I have searched the existing issues and my issue is unique - [X] My issue appears in the command-line and...

enhancement
help wanted

![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123) ### Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project. #### Snyk changed the following file(s): - `package.json` - `yarn.lock` #### Note...