Code Monkey home page Code Monkey logo

dixture's People

Contributors

rodolphocastro avatar

Stargazers

 avatar  avatar

Watchers

 avatar

dixture's Issues

Remove explicit any

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

Remove inferrable types

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.