Skip to content

Format files after pnpm dlx sv add #502

@hyunbinseo

Description

@hyunbinseo

These commands from #333 generates un-formatted files.

Reference hyunbinseo/svelte-kit-templates@78cb087

pnpm dlx sv create --template minimal --types ts --no-install --no-add-ons ts
pnpm dlx sv add --no-install --cwd ts eslint prettier
// eslint.config.js
// before format
[
  {
    languageOptions: {
      globals: { ...globals.browser, ...globals.node }
    },
    rules: { "no-undef": 'off' } // double quotes
  },
  {
    files: [
      '**/*.svelte', // multi-line array
      '**/*.svelte.ts',
      '**/*.svelte.js'
    ],
  }
]

// after format
[
  {
    languageOptions: {
      globals: { ...globals.browser, ...globals.node },
    },
    rules: { 'no-undef': 'off' },
  },
  {
    files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
  },
];

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpkg:addsv add

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions