developer239/create-opinionated-react-app

View on GitHub

Showing 7 of 20 total issues

Function createNextJsApp has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const createNextJsApp = async (context: IMainState) => {
  const { isCypress } = await prompt({
    name: 'isCypress',
    type: 'list',
    message: 'Do you want to use cypress?',
Severity: Minor
Found in src/projects/nextJsApp.ts - About 1 hr to fix

    Function createReactApp has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const createReactApp = async (context: IMainState) => {
      const { isCypress } = await prompt({
        name: 'isCypress',
        type: 'list',
        message: 'Do you want to use cypress?',
    Severity: Minor
    Found in src/projects/createReactApp.ts - About 1 hr to fix

      Function initGatsby has 44 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export const initGatsby = async (context: IContext) => {
        await shell.execWithSpinner(
          `npx gatsby new ${context.projectFolder}`,
          '[gatsby] initialize',
        )
      Severity: Minor
      Found in src/packages/_Gatsby/index.ts - About 1 hr to fix

        Function addEslint has 41 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export const addEslint = async (context: IContext) => {
          const lintTs = 'eslint --ext .ts,.tsx src'
        
          await json.update('package.json')(
            {
        Severity: Minor
        Found in src/packages/eslint/index.ts - About 1 hr to fix

          Function createNestJsApp has 40 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          export const createNestJsApp = async (context: IMainState) => {
            const { databaseType } = await prompt({
              name: 'databaseType',
              type: 'list',
              message: 'Do you want to use database?',
          Severity: Minor
          Found in src/projects/nestJsApp.ts - About 1 hr to fix

            Function addCypress has 38 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            export const addCypress = async (context: IContext) => {
              const { ciType } = await prompt({
                name: 'ciType',
                type: 'list',
                message: 'Do you want to generate CI configuration for cypress?',
            Severity: Minor
            Found in src/packages/cypress/index.ts - About 1 hr to fix

              Function initNestJsApp has 36 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              export const initNestJsApp = async (context: IContext) => {
                await shell.execWithSpinner(
                  `npx nest new ${context.projectFolder} --package-manager yarn`,
                  '[nest.js] initialize',
                )
              Severity: Minor
              Found in src/packages/_NestJs/index.ts - About 1 hr to fix
                Severity
                Category
                Status
                Source
                Language