Skip to content

Commit

Permalink
chore: svelte demo deps
Browse files Browse the repository at this point in the history
  • Loading branch information
BCsabaEngine committed Aug 17, 2024
1 parent 1565a37 commit 7e92657
Show file tree
Hide file tree
Showing 9 changed files with 449 additions and 324 deletions.
12 changes: 0 additions & 12 deletions demo/svelte/.eslintignore

This file was deleted.

40 changes: 0 additions & 40 deletions demo/svelte/.eslintrc.cjs

This file was deleted.

1 change: 0 additions & 1 deletion demo/svelte/dist/assets/index-B4xhKHXE.css

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions demo/svelte/dist/assets/index-DcQuAU3J.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions demo/svelte/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<title>PCB THT Holder</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#f3f4f6" />
<script type="module" crossorigin src="./assets/index-CvL0GDnk.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-B4xhKHXE.css">
<script type="module" crossorigin src="./assets/index-CPCfQP0v.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-DcQuAU3J.css">
</head>

<body>
Expand Down
91 changes: 91 additions & 0 deletions demo/svelte/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
import path from 'node:path';
import { fileURLToPath } from 'node:url';

import { FlatCompat } from '@eslint/eslintrc';
import js from '@eslint/js';
import typescriptEslint from '@typescript-eslint/eslint-plugin';
import tsParser from '@typescript-eslint/parser';
import simpleImportSort from 'eslint-plugin-simple-import-sort';
import tailwindcss from 'eslint-plugin-tailwindcss';
import unicorn from 'eslint-plugin-unicorn';
import globals from 'globals';
import parser from 'svelte-eslint-parser';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [
{
ignores: [
'**/*.cjs',
'**/.DS_Store',
'**/node_modules',
'**/dist',
'.svelte-kit',
'**/.env',
'**/.env.*',
'!**/.env.example',
'**/pnpm-lock.yaml',
'**/package-lock.json',
'**/yarn.lock'
]
},
...compat.extends(
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'plugin:unicorn/all',
'plugin:tailwindcss/recommended',
'prettier'
),
{
plugins: {
'@typescript-eslint': typescriptEslint,
'simple-import-sort': simpleImportSort,
unicorn,
tailwindcss
},

languageOptions: {
globals: {
...globals.browser,
...globals.node
},

parser: tsParser,
ecmaVersion: 2020,
sourceType: 'module',

parserOptions: {
extraFileExtensions: ['.svelte']
}
},

rules: {
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'unicorn/filename-case': 'off',
'no-alert': 'error',
'no-console': 'error',
'no-debugger': 'error'
}
},
{
files: ['**/*.svelte'],

languageOptions: {
parser: parser,
ecmaVersion: 5,
sourceType: 'script',

parserOptions: {
parser: '@typescript-eslint/parser'
}
}
}
];
Loading

0 comments on commit 7e92657

Please sign in to comment.