Skip to content

Commit 6dc34e5

Browse files
authored
upgrade to tailwind v4 (#1)
* upgrade to tailwind v4 * add correct eslint imports * improve eslint config * update package lock * try to fix vite alias * change vite config to ts file * fix import directory * fix tsconfig * revert to old import alias * change alias in vite config * revert alias * use full path import * update placeholder pattern * revert placeholder pattern design * change svelte file name for placeholder pattern component * temporarily disable placeholder pattern * revert all placeholder pattern changes
1 parent 544c08e commit 6dc34e5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+410
-1388
lines changed

eslint.config.js

Lines changed: 45 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,56 @@
1+
import js from '@eslint/js';
12
import prettier from 'eslint-config-prettier';
2-
import vue from 'eslint-plugin-vue';
3+
import svelte from 'eslint-plugin-svelte';
4+
import globals from 'globals';
5+
import ts from 'typescript-eslint';
36

4-
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript';
5-
6-
export default defineConfigWithVueTs(
7-
vue.configs['flat/essential'],
8-
vueTsConfigs.recommended,
7+
export default ts.config(
8+
js.configs.recommended,
9+
...ts.configs.recommended,
10+
...svelte.configs.recommended,
911
{
10-
ignores: ['vendor', 'node_modules', 'public', 'bootstrap/ssr', 'tailwind.config.js', 'resources/js/components/ui/*'],
12+
languageOptions: {
13+
globals: {
14+
...globals.browser,
15+
...globals.node,
16+
route: 'readonly',
17+
Laravel: 'readonly',
18+
},
19+
},
20+
},
21+
{
22+
files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
23+
// See more details at: https://typescript-eslint.io/packages/parser/
24+
languageOptions: {
25+
parserOptions: {
26+
projectService: true,
27+
extraFileExtensions: ['.svelte', '.svelte.ts', '.svelte.js'], // Add support for additional file extensions, such as .svelte
28+
parser: ts.parser,
29+
// Specify a parser for each language, if needed:
30+
// parser: {
31+
// ts: ts.parser,
32+
// js: espree, // Use espree for .js files (add: import espree from 'espree')
33+
// typescript: ts.parser
34+
// },
35+
36+
// We recommend importing and specifying svelte.config.js.
37+
// By doing so, some rules in eslint-plugin-svelte will automatically read the configuration and adjust their behavior accordingly.
38+
// While certain Svelte settings may be statically loaded from svelte.config.js even if you don’t specify it,
39+
// explicitly specifying it ensures better compatibility and functionality.
40+
// svelteConfig,
41+
},
42+
},
1143
},
1244
{
1345
rules: {
14-
'vue/multi-word-component-names': 'off',
1546
'@typescript-eslint/no-explicit-any': 'off',
47+
'svelte/infinite-reactive-loop': 'error',
48+
'svelte/no-at-html-tags': 'error',
49+
'svelte/no-target-blank': 'error',
1650
},
1751
},
52+
{
53+
ignores: ['vendor', 'node_modules', 'public', 'bootstrap/ssr', 'tailwind.config.js', 'resources/js/components/ui/*'],
54+
},
1855
prettier,
1956
);

0 commit comments

Comments
 (0)