Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ieedan committed Nov 27, 2024
1 parent aaee807 commit c66cf1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/addons/eslint/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ export default defineAddon({
eslintConfigs.push(svelteTSParserConfig);
}

const ignores = ['build/', '.svelte-kit/', 'dist/', '.vercel/', '.netlify/'];

const ignoresConfig = object.create({
ignores: common.expressionFromString('["build/", ".svelte-kit/", "dist/", ".vercel/", ".netlify/"]')
ignores: common.expressionFromString(`[${ignores.join(', ')}]`)
});
eslintConfigs.push(ignoresConfig);

Expand Down

0 comments on commit c66cf1a

Please sign in to comment.