Skip to content

Commit

Permalink
chore: add Vue to eslint config (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterCarl authored Dec 9, 2024
1 parent 30f1b1c commit 625ad02
Show file tree
Hide file tree
Showing 3 changed files with 168 additions and 2 deletions.
13 changes: 11 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,27 @@ import eslintConfigPrettier from "eslint-config-prettier";
import globals from "globals";
import { fileURLToPath, URL } from "node:url";
import tseslint from "typescript-eslint";
import pluginVue from "eslint-plugin-vue";

export default [
// Files
includeIgnoreFile(fileURLToPath(new URL(".gitignore", import.meta.url))),
{ ignores: ["public/mockServiceWorker.js"] },
{ files: ["**/*.{js,ts}"] },
{ files: ["**/*.{js,ts,vue}"] },

// Language options
{ languageOptions: { globals: globals.browser } },
{
languageOptions: {
globals: globals.browser,
parserOptions: {
parser: tseslint.parser,
},
},
},

// Configs
pluginJs.configs.recommended,
...tseslint.configs.recommended,
...pluginVue.configs["flat/recommended"],
eslintConfigPrettier,
];
156 changes: 156 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"autoprefixer": "~10.4.20",
"eslint": "~9.14.0",
"eslint-config-prettier": "~9.1.0",
"eslint-plugin-vue": "^9.32.0",
"globals": "~15.12.0",
"jsdom": "~25.0.1",
"license-checker": "~25.0.1",
Expand Down

0 comments on commit 625ad02

Please sign in to comment.