LeDDGroup/typescript-transform-jsx

View on GitHub

Showing 6 of 6 total issues

File index.ts has 253 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import * as ts from "typescript";
import * as utils from "./utils";
 
const grabJsx = [
ts.SyntaxKind.JsxElement,
Severity: Minor
Found in src/index.ts - About 2 hrs to fix

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

    declare namespace JSX {
    type Element = string;
    interface ElementChildrenAttribute {
    children: any;
    }
    Severity: Major
    Found in examples/example-tsx-to-html/src/types.ts and 2 other locations - About 55 mins to fix
    examples/example-koa/src/global.ts on lines 1..11
    examples/example-ttypescript/src/home.tsx on lines 2..12

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

    namespace JSX {
    type Element = string;
    interface ElementChildrenAttribute {
    children: any;
    }
    Severity: Major
    Found in examples/example-ttypescript/src/home.tsx and 2 other locations - About 55 mins to fix
    examples/example-koa/src/global.ts on lines 1..11
    examples/example-tsx-to-html/src/types.ts on lines 1..11

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

    declare namespace JSX {
    type Element = string;
    interface ElementChildrenAttribute {
    children: any;
    }
    Severity: Major
    Found in examples/example-koa/src/global.ts and 2 other locations - About 55 mins to fix
    examples/example-tsx-to-html/src/types.ts on lines 1..11
    examples/example-ttypescript/src/home.tsx on lines 2..12

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    <tr>
    <td>Id: </td>
    <td>{props.user.id}</td>
    </tr>
    Severity: Minor
    Found in examples/example-koa/src/views/user-details.tsx and 1 other location - About 40 mins to fix
    examples/example-koa/src/views/user-details.tsx on lines 11..14

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    <tr>
    <td>Name: </td>
    <td>{props.user.name}</td>
    </tr>
    Severity: Minor
    Found in examples/example-koa/src/views/user-details.tsx and 1 other location - About 40 mins to fix
    examples/example-koa/src/views/user-details.tsx on lines 7..10
    Severity
    Category
    Status
    Source
    Language