rodolphocastro / dixture Goto Github PK
View Code? Open in Web Editor NEWDixture is a Deno module that helps you create random data for your tests.
License: MIT License
Dixture is a Deno module that helps you create random data for your tests.
License: MIT License
deno lint --unstable
show us some errors on the module.
This issue covers fixing the no-inferrable-types
problems. More info on why this rule is triggered can be found on this deno issue
(no-inferrable-types) inferrable types are not allowed
prefix: string = "",
^^^^^^^^^^^^^^^^^^^
at E:\Src\dixture\src\_simpleGenerator.ts:45:2
(no-inferrable-types) inferrable types are not allowed
roundToInt: boolean = false,
^^^^^^^^^^^^^^^^^^^^^^^^^^^
at E:\Src\dixture\src\_simpleGenerator.ts:62:2
(no-inferrable-types) inferrable types are not allowed
diceWeight: number = .5,
^^^^^^^^^^^^^^^^^^^^^^^
at E:\Src\dixture\src\_simpleGenerator.ts:78:2
(no-inferrable-types) inferrable types are not allowed
function createDateWithOffset(daysOffset: number = 0): Date {
^^^^^^^^^^^^^^^^^^^^^^
at E:\Src\dixture\src\_simpleGenerator.ts:93:30
(no-inferrable-types) inferrable types are not allowed
isFuture: boolean = true,
^^^^^^^^^^^^^^^^^^^^^^^^
at E:\Src\dixture\src\_simpleGenerator.ts:105:2
(no-inferrable-types) inferrable types are not allowed
name: string = "";
^^^^^^^^^^^^^^^^^^
at E:\Src\dixture\samples\secondVersion.ts:9:2
(no-inferrable-types) inferrable types are not allowed
age: number = 0;
^^^^^^^^^^^^^^^^
at E:\Src\dixture\samples\secondVersion.ts:10:2
(no-inferrable-types) inferrable types are not allowed
bankBalance: bigint = 1n;
^^^^^^^^^^^^^^^^^^^^^^^^^
at E:\Src\dixture\samples\secondVersion.ts:11:2
(no-inferrable-types) inferrable types are not allowed
isAlive: boolean = true;
^^^^^^^^^^^^^^^^^^^^^^^^
at E:\Src\dixture\samples\secondVersion.ts:12:2
(no-inferrable-types) inferrable types are not allowed
username: string = "";
^^^^^^^^^^^^^^^^^^^^^^
at E:\Src\dixture\tests\complexRules_test.ts:17:2
Might be a good idea to write the standards now that v0.2.0 is almost ready!
deno lint --unstable
show us some errors on the module.
This issue covers fixing the no-explicit-any
problems. More info on why this rule is triggered can be found on ESLint
(no-explicit-any) `any` type is not allowed
(subject[field] as any) = fieldValue;
^^^
at E:\Src\dixture\src\_simpleGenerator.ts:127:21
(no-explicit-any) `any` type is not allowed
BigInt: (...params: any[]) => bigint;
^^^
at E:\Src\dixture\src\_factory.ts:16:22
(no-explicit-any) `any` type is not allowed
Bool: (...params: any[]) => boolean;
^^^
at E:\Src\dixture\src\_factory.ts:21:20
(no-explicit-any) `any` type is not allowed
Number: (...params: any[]) => number;
^^^
at E:\Src\dixture\src\_factory.ts:26:22
(no-explicit-any) `any` type is not allowed
String: (...params: any[]) => string;
^^^
at E:\Src\dixture\src\_factory.ts:31:22
(no-explicit-any) `any` type is not allowed
Int: (...params: any[]) => number;
^^^
at E:\Src\dixture\src\_factory.ts:41:19
(no-explicit-any) `any` type is not allowed
FutureDate: (...params: any[]) => Date;
^^^
at E:\Src\dixture\src\_factory.ts:46:26
(no-explicit-any) `any` type is not allowed
PastDate: (...params: any[]) => Date;
^^^
at E:\Src\dixture\src\_factory.ts:51:24
(no-explicit-any) `any` type is not allowed
new (...args: any[]): T;
^^^
at E:\Src\dixture\src\_factory.ts:73:16
(no-explicit-any) `any` type is not allowed
resolve: (...args: any[]) => T[K];
^^^
at E:\Src\dixture\src\_factory.ts:81:21
(no-explicit-any) `any` type is not allowed
protected readonly ruleSets: BaseRuleSet<any>[] = [];
^^^
at E:\Src\dixture\src\_factory.ts:157:43
(no-explicit-any) `any` type is not allowed
constructor(...args: BaseRuleSet<any>[]) {
^^^
at E:\Src\dixture\src\_factory.ts:159:35
import {
createString,
} from "https://deno.land/x/[email protected]/mod.ts";
....
username: createString("", { min: 9, max: 14 }),
error: TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
GenerationFunctions,
at https://deno.land/x/[email protected]/mod.ts:13:3
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.