Skip to content

Commit

Permalink
chore(deps): update to Vite 6 and ESLint 9
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed Dec 3, 2024
1 parent 73b1756 commit 560cffa
Show file tree
Hide file tree
Showing 62 changed files with 5,311 additions and 3,997 deletions.
40 changes: 0 additions & 40 deletions .eslintignore

This file was deleted.

2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ module.exports = {
"@typescript-eslint/explicit-module-boundary-types": "error",
"tsdoc/syntax": "warn",
},
};
}
4 changes: 2 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"jsdocCapitalizeDescription": false,
"jsdocSeparateReturnsFromParam": true,
"jsdocSeparateTagGroups": true,
"jsdocSingleLineComment": false,
"jsdocCommentLineStrategy": "multiline",
"tsdoc": true,
"importOrder": [
"^vitest(/|$)",
Expand All @@ -28,7 +28,7 @@
"importOrderGroupNamespaceSpecifiers": true,
"printWidth": 80,
"useTabs": true,
"semi": true,
"semi": false,
"singleQuote": false,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
Expand Down
12 changes: 6 additions & 6 deletions .size-limit.cjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const pkg = require("./package.json");
const pkg = require("./package.json")

function getObjectValues(input, acc = []) {
if (typeof input === "string") {
return input;
return input
} else {
return [
...acc,
...Object.values(input).flatMap((value) => getObjectValues(value)),
];
]
}
}

Expand All @@ -16,7 +16,7 @@ module.exports = [
]
.sort()
.filter((path) => {
return path && path !== "./package.json" && !path.endsWith(".d.ts");
return path && path !== "./package.json" && !path.endsWith(".d.ts")
})
.map((path) => {
return {
Expand All @@ -27,5 +27,5 @@ module.exports = [
// return config;
// },
ignore: ["vue-router"],
};
});
}
})
49 changes: 49 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import eslint from "@eslint/js"
import vueTsEslintConfig from "@vue/eslint-config-typescript"
import prettier from "eslint-plugin-prettier/recommended"
import tsdoc from "eslint-plugin-tsdoc"
import pluginVue from "eslint-plugin-vue"
import tseslint from "typescript-eslint"

export default tseslint.config(
{
ignores: ["dist"],
},
eslint.configs.recommended,
tseslint.configs.recommended,
prettier,
...pluginVue.configs["flat/essential"],
...vueTsEslintConfig(),
{
plugins: {
tsdoc,
},
rules: {
"no-console": ["warn", { allow: ["info", "warn", "error"] }],
"no-debugger": "warn",
"no-undef": "off",
curly: "error",
"prefer-const": "error",
"padding-line-between-statements": [
"error",
{
blankLine: "always",
prev: "*",
next: "return",
},
],
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/consistent-type-imports": "error",
"tsdoc/syntax": "warn",
"vue/multi-word-component-names": "off",
},
},
)
Loading

0 comments on commit 560cffa

Please sign in to comment.