v2.15.12
Sep 13, 2024
659
100
version = 1
[[analyzers]]
name = "javascript"
[analyzers.meta]
module_system = "commonjs"
environment = [
"nodejs",
"browser",
"jest",
]
plugins = ["react"]
style_guide = "airbnb"
dialect = "flow"
Anti-pattern
283
Bug risk
266
Documentation
2
Performance
33
Security
56
Style
9
Type check
10
Configuring the server to set insecure cookie configurations can lead to attacks like cookie hijacking, information leaks, and session hijacking.
kebab-case
for custom event names JS-0605Prefer kebab-case when naming events in Vue templates. Other cases can become less readable in the resulting markup.
Cross-Origin Resource Sharing(CORS) is a mechanism that enables web browsers to perform cross-domain requests using the XMLHttpRequest API in a controlled manner. It defines the protocol to use between a web browser and a server to determine whether a cross-origin request is allowed. Using *
, null
or google.com
is not a reliable way to ensure security of the application or software.
catch
clauses found JS-0112A catch
clause that only rethrows the original error is redundant, and has no effect on the runtime behavior of the program. These redundant clauses can be a source of confusion and code bloat, so it's better to disallow these unnecessary catch clauses.
Avoid using >= 0
and < 0
when comparing container sizes.