Skip to content

Commit

Permalink
chore: Update eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Dec 21, 2024
1 parent 4330c24 commit b5f3a5e
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 36 deletions.
26 changes: 0 additions & 26 deletions .eslintrc.cjs

This file was deleted.

26 changes: 26 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import pluginVue from "eslint-plugin-vue";
import pluginVuetify from "eslint-plugin-vuetify";
import pluginPrettier from "eslint-plugin-prettier/recommended";
import pluginAutoImport from "./.eslintrc-auto-import.json" with { type: "json" };

export default [
{
languageOptions: {
globals: { ...globals.node, ...globals.browser },
},
},
{ ignores: ["dist", "dev-dist"] },
pluginJs.configs.recommended,
...pluginVue.configs["flat/recommended"],
...pluginVuetify.configs["flat/recommended"],
pluginPrettier,
{ languageOptions: pluginAutoImport },
{
rules: {
"no-unused-vars": ["error", { varsIgnorePattern: "^_", argsIgnorePattern: "^_" }],
"vue/no-template-shadow": "off",
},
},
];
9 changes: 1 addition & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "vite build",
"preview": "vite preview",
"watch": "vite build --mode=dev --watch",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"lint": "eslint . --fix",
"format": "prettier . --write --ignore-path .gitignore"
},
"dependencies": {
Expand All @@ -30,7 +30,7 @@
"vuetify": "3.7.6"
},
"devDependencies": {
"@rushstack/eslint-patch": "1.10.2",
"@eslint/js": "9.17.0",
"@vue/eslint-config-prettier": "10.1.0",
"eslint": "9.17.0",
"eslint-config-prettier": "9.1.0",
Expand Down

0 comments on commit b5f3a5e

Please sign in to comment.