Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MRita443 committed Apr 11, 2024
1 parent f04f73f commit 55e295a
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 11 deletions.
50 changes: 50 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/** @type { import("eslint").Linter.Config } */
module.exports = {
files: ['**/*.js', '**/*.ts', '**/*.svelte'],
languageOptions: {
ecmaVersion: 2022,
sourceType: 'module',
extraFileExtensions: ['.svelte']
},
environments: {
browser: true,
es2021: true,
node: true
},
globals: {},
parser: '@typescript-eslint/parser',
processor: 'svelte-eslint-parser',
linterOptions: {
reportUnusedDisableDirectives: 'error'
},
rules: {
'import/export': 'error',
'import/no-empty-named-blocks': 'error',
'import/no-absolute-path': 'error',
'import/no-self-import': 'error',
'import/no-useless-path-segments': 'error',
'import/newline-after-import': 'error',
'import/no-duplicates': 'error',
'import/order': 'error',
'no-undef': 'off'
},
settings: {
'svelte/typescript': function () {
return require('typescript');
},
'import/extensions': ['.js', '.ts', '.svelte', '.stories.ts'],
'import/resolver': {
typescript: {
alwaysTryTypes: true
}
}
},
overrides: [
{
files: ['*.svelte'],
languageOptions: {
parser: '@typescript-eslint/parser'
}
}
]
};
2 changes: 1 addition & 1 deletion src/lib/component/Icon.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { Icon } from 'svelte-icons-pack';
import type {IconType} from 'svelte-icons-pack';
import type { IconType } from 'svelte-icons-pack';
export let src: IconType;
export let href: string | undefined = undefined;
Expand Down
20 changes: 10 additions & 10 deletions src/lib/component/Icons.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import {FaBrandsInstagram} from 'svelte-icons-pack/fa';
import {FaBrandsTwitter} from 'svelte-icons-pack/fa';
import {FaBrandsFacebook} from 'svelte-icons-pack/fa';
import {FaBrandsGithub} from 'svelte-icons-pack/fa';
import {IoMail} from 'svelte-icons-pack/io';
import {FaBrandsLinkedin} from 'svelte-icons-pack/fa';
import {FaSolidUser} from 'svelte-icons-pack/fa';
import {FaSolidBars} from 'svelte-icons-pack/fa';
import {IoClose} from 'svelte-icons-pack/io';
import {FaSolidGlobe} from 'svelte-icons-pack/fa';
import { FaBrandsInstagram } from 'svelte-icons-pack/fa';
import { FaBrandsTwitter } from 'svelte-icons-pack/fa';
import { FaBrandsFacebook } from 'svelte-icons-pack/fa';
import { FaBrandsGithub } from 'svelte-icons-pack/fa';
import { IoMail } from 'svelte-icons-pack/io';
import { FaBrandsLinkedin } from 'svelte-icons-pack/fa';
import { FaSolidUser } from 'svelte-icons-pack/fa';
import { FaSolidBars } from 'svelte-icons-pack/fa';
import { IoClose } from 'svelte-icons-pack/io';
import { FaSolidGlobe } from 'svelte-icons-pack/fa';

const Icons = {
Instagram: FaBrandsInstagram,
Expand Down

0 comments on commit 55e295a

Please sign in to comment.