flawcra / flawcralib Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Unlike statically-typed languages which enforce a function to return a typed value, JavaScript allows different code paths in a function to return different types of values.
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/FlawCra/FlawCraLIB/issue/JS-0045/occurrences/
It is considered good practice to use the type-safe equality operators ===
and !==
instead of their regular counterparts ==
and !=
.
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/FlawCra/FlawCraLIB/issue/JS-0050/occurrences/
Assignment to variables declared as function parameters can be misleading and lead to confusing behavior, as modifying function parameters will also mutate the arguments
object. Often, assignment to function parameters is unintended and indicative of a mistake or programmer error.
There are 2 occurrences of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/FlawCra/FlawCraLIB/issue/JS-0083/occurrences/
It is recommended to use arrow functions as callbacks.
There are 6 occurrences of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/FlawCra/FlawCraLIB/issue/JS-0241/occurrences/
Variables that aren't defined, but accessed may throw reference errors at runtime.
There are 3 occurrences of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/FlawCra/FlawCraLIB/issue/JS-0125/occurrences/
In ES2015 (ES6), we can use template literals instead of string concatenation.
There are 10 occurrences of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/FlawCra/FlawCraLIB/issue/JS-0246/occurrences/
Found variables that are declared but not used anywhere.
There are 2 occurrences of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/FlawCra/FlawCraLIB/issue/JS-0128/occurrences/
In ES2015 (ES6), we can use template literals instead of string concatenation.
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/FlawCra/FlawCraLIB/issue/JS-0246/occurrences/
JavaScript's eval()
function is potentially dangerous and is often misused. Using eval()
on untrusted code can open a program up to several different injection attacks. The use of eval()
in most contexts can be substituted for a better, alternative approach to the problem.
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/FlawCra/FlawCraLIB/issue/JS-0060/occurrences/
It is recommended to have comments just before or immediately at the start of a function or class declaration/expression so that anyone who reads the code understands the purpose of the particular function or class.
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/FlawCra/FlawCraLIB/issue/JS-D1001/occurrences/
Single character variable names affect code readability and complicate code refactoring, because of the difficulty in searching and replacing single characters.
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/FlawCra/FlawCraLIB/issue/JS-C1002/occurrences/
Tracking issue for:
A function that does not contain any await
expressions should not be async
(except for some edge cases in TypeScript which are discussed below). Asynchronous functions in JavaScript behave differently than other functions in two important ways:
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/FlawCra/FlawCraLIB/issue/JS-0116/occurrences/
A strict mode directive is a "use strict"
literal at the beginning of a script or function body. It enables strict mode semantics. When a directive occurs in global scope, strict mode applies to the entire script:
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/FlawCra/FlawCraLIB/issue/JS-0118/occurrences/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.