Skip to content

Commit

Permalink
next: update formsnap and bits (#1303)
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Oct 6, 2024
1 parent bacd61c commit ef2705e
Show file tree
Hide file tree
Showing 53 changed files with 1,277 additions and 991 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,
"eslint.useFlatConfig": true,

// Auto fix
"editor.codeActionsOnSave": {
Expand Down
41 changes: 21 additions & 20 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
import config from "@huntabyte/eslint-config";
import config, { DEFAULT_IGNORES } from "@huntabyte/eslint-config";

export default config({ svelte: true })
const ignores = ["**/extended-types"];

export default config({ svelte: true, ignores: [...DEFAULT_IGNORES, ...ignores] })
.override("antfu/typescript/rules", {
rules: {
"ts/consistent-type-definitions": "off",
"unused-imports/no-unused-imports": "off",
"unused-imports/no-unused-vars": "off",
"ts/no-unused-expressions": "off",
"no-unused-expressions": "off",
"ts/no-empty-object-type": "off",
},
})
.override("antfu/javascript/rules", {
rules: {
"unused-imports/no-unused-vars": [
"error",
{
varsIgnorePattern: "^_",
argsIgnorePattern: "^_",
args: "after-used",
},
],
"no-unused-vars": "off",
"no-unused-expressions": "off",
"unused-imports/no-unused-imports": "off",
},
})
.override("antfu/typescript/rules", {
.override("huntabyte/svelte/rules", {
rules: {
"unused-imports/no-unused-vars": [
"error",
{
args: "after-used",
varsIgnorePattern: "^_",
argsIgnorePattern: "^_",
},
],
"svelte/no-at-html-tags": "off",
"unused-imports/no-unused-imports": "off",
"unused-imports/no-unused-vars": "off",
"import/no-self-import": "off",
},
});
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@
"@changesets/cli": "^2.27.1",
"@huntabyte/eslint-config": "^0.3.2",
"eslint": "^9.0.0",
"eslint-plugin-svelte": "^2.43.0",
"eslint-plugin-svelte": "^2.44.1",
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.2.6",
"prettier-plugin-svelte": "^3.2.7",
"prettier-plugin-tailwindcss": "^0.5.12",
"pretty-quick": "^4.0.0",
"simple-git-hooks": "^2.10.0",
"svelte": "5.0.0-next.259",
"svelte-eslint-parser": "^0.41.0"
"svelte": "5.0.0-next.262",
"svelte-eslint-parser": "^0.41.1"
},
"simple-git-hooks": {
"pre-commit": "pnpm -r format:staged --staged"
Expand Down
Loading

0 comments on commit ef2705e

Please sign in to comment.