Skip to content

Commit

Permalink
Update eslint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanqui committed Jan 7, 2025
1 parent 48a8d44 commit 7cc2590
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 47 deletions.
13 changes: 0 additions & 13 deletions .eslintignore

This file was deleted.

30 changes: 0 additions & 30 deletions .eslintrc.cjs

This file was deleted.

6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"svelte.svelte-vscode"
]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"eslint.validate": ["javascript", "javascriptreact", "svelte"]
}
39 changes: 39 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import prettier from 'eslint-config-prettier';
import js from '@eslint/js';
import { includeIgnoreFile } from '@eslint/compat';
import svelte from 'eslint-plugin-svelte';
import globals from 'globals';
import { fileURLToPath } from 'node:url';
import ts from 'typescript-eslint';
const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url));

export default ts.config(
includeIgnoreFile(gitignorePath),
js.configs.recommended,
{
rules: {
"no-irregular-whitespace": "off"
}
},
...ts.configs.recommended,
...svelte.configs['flat/recommended'],
prettier,
...svelte.configs['flat/prettier'],
{
languageOptions: {
globals: {
...globals.browser,
...globals.node
}
}
},
{
files: ['**/*.svelte'],

languageOptions: {
parserOptions: {
parser: ts.parser
}
}
}
);
4 changes: 0 additions & 4 deletions src/routes/projects/atari-klub-citov/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
<script lang="ts">
import type { PageData } from './$types';
import Meta from "$lib/Meta.svelte";
import type { AssetData, InterviewData } from "$src/types";
import InterviewBox from "$lib/InterviewBox.svelte";
import { data as havelka_data } from '$src/routes/interviews/josef-havelka/interview';
import AssetBox from "$src/lib/AssetBox.svelte";
import { loadRHInventoryAssetData } from '$src/lib/rhinventory_api';
let { pageData }: { pageData: PageData } = $props();
let interviews: InterviewData[] = [havelka_data];
let assetPage = $state(0);
Expand Down

0 comments on commit 7cc2590

Please sign in to comment.