Skip to content

Commit

Permalink
fix and refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
baseballyama committed Jan 3, 2025
1 parent 4ca476a commit 4fbe97d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default createRule('no-export-load-in-svelte-module-in-kit-pages', {
},
create(context) {
const svelteContext = getSvelteContext(context);
if (svelteContext == null || svelteContext.svelteKitFileType == null) return {};
if (svelteContext?.svelteKitFileType == null) return {};
let isModule = false;
return {
// <script context="module">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default createRule('valid-prop-names-in-kit-pages', {
},
create(context) {
const svelteContext = getSvelteContext(context);
if (svelteContext == null || svelteContext.svelteKitFileType == null) return {};
if (svelteContext?.svelteKitFileType == null) return {};
let isScript = false;
return {
// <script>
Expand Down

This file was deleted.

0 comments on commit 4fbe97d

Please sign in to comment.