Skip to content

Commit

Permalink
types: cleanup, lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokada committed Oct 17, 2024
1 parent ad57099 commit 55889a6
Show file tree
Hide file tree
Showing 20 changed files with 735 additions and 578 deletions.
13 changes: 0 additions & 13 deletions .eslintignore

This file was deleted.

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

This file was deleted.

44 changes: 44 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import js from '@eslint/js';
import ts from 'typescript-eslint';
import svelte from 'eslint-plugin-svelte';
import prettier from 'eslint-config-prettier';
import globals from 'globals';

/** @type {import('eslint').Linter.Config[]} */
export default [
js.configs.recommended,
...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,
svelteFeatures: {
experimentalGenerics: true
}
}
}
},
{
ignores: ['build/', '.svelte-kit/', 'dist/', 'test-results/', '*.md']
},
{
rules: {
// Note: you must disable the base rule as it can report incorrect errors
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'svelte/no-at-html-tags': 'off'
}
}
];
36 changes: 19 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,44 +33,46 @@
"package:publish": "npm run lib-helpers && standard-version && git push --follow-tags origin main && npm publish"
},
"devDependencies": {
"@changesets/cli": "^2.27.8",
"@changesets/cli": "^2.27.9",
"@floating-ui/dom": "^1.6.11",
"@playwright/test": "^1.47.2",
"@playwright/test": "^1.48.1",
"@sveltejs/adapter-auto": "^3.2.5",
"@sveltejs/kit": "^2.6.1",
"@sveltejs/kit": "^2.7.1",
"@sveltejs/package": "^2.3.5",
"@sveltejs/vite-plugin-svelte": "^3.1.2",
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
"autoprefixer": "^10.4.20",
"eslint": "^9.11.1",
"eslint": "^9.12.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.44.1",
"flowbite-svelte-icons": "^1.6.1",
"eslint-plugin-svelte": "^2.45.1",
"flowbite-svelte": "^0.47.0",
"flowbite-svelte-icons": "^1.6.2",
"flowbite-typography": "^1.0.4",
"globals": "^15.11.0",
"mdsvex": "^0.12.3",
"mdsvexamples": "^0.4.1",
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.7",
"publint": "^0.2.11",
"svelte": "^4.2.19",
"svelte-check": "^4.0.4",
"svelte-lib-helpers": "^0.4.9",
"svelte-check": "^4.0.5",
"svelte-lib-helpers": "^0.4.16",
"svelte-meta-tags": "^3.1.4",
"svelte-preprocess": "^6.0.3",
"tailwindcss": "^3.4.13",
"tslib": "^2.7.0",
"typescript": "^5.6.2",
"vite": "^5.4.8",
"vitest": "^2.1.1"
"tailwindcss": "^3.4.14",
"tslib": "^2.8.0",
"typescript": "^5.6.3",
"typescript-eslint": "^8.9.0",
"vite": "^5.4.9",
"vitest": "^2.1.3"
},
"peerDependencies": {
"svelte": "^4.0.0 || ^5.0.0"
},
"dependencies": {
"flowbite": "^2.5.2",
"flowbite-svelte": "^0.46.22",
"tailwind-merge": "^2.5.2"
"tailwind-merge": "^2.5.4"
},
"type": "module",
"keywords": [
Expand Down Expand Up @@ -323,4 +325,4 @@
},
"./package.json": "./package.json"
}
}
}
Loading

0 comments on commit 55889a6

Please sign in to comment.