Skip to content

Commit

Permalink
Override no-undef-init for Svelte files
Browse files Browse the repository at this point in the history
Resolves #28
  • Loading branch information
kieranhall committed Feb 29, 2024
1 parent 286281c commit 0d2cc44
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions svelte/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ const rules = ["./base", "./style"].map(require.resolve);

module.exports = {
extends: ["plugin:svelte/recommended", "plugin:svelte/prettier", ...rules],
overrides: [
{
files: ["*.svelte"],
rules: {
"no-undef-init": 0,
},
},
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
Expand Down

0 comments on commit 0d2cc44

Please sign in to comment.