Skip to content

Commit

Permalink
(frontend) linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Alexandre35 committed Oct 27, 2024
1 parent d725365 commit f863a78
Show file tree
Hide file tree
Showing 4 changed files with 1,845 additions and 40 deletions.
33 changes: 33 additions & 0 deletions travian/frontend/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginVue from "eslint-plugin-vue";
import vueParser from "vue-eslint-parser";

export default [
{
files: ["**/*.{js,mjs,cjs,ts,vue}"],
languageOptions: {
globals: globals.browser,
},
rules: {
...pluginJs.configs.recommended.rules,
...tseslint.configs.recommended.rules,
...pluginVue.configs["flat/essential"].rules,
},
},
{
files: ["**/*.vue"],
languageOptions: {
parser: vueParser,
parserOptions: {
parser: tseslint.parser,
ecmaVersion: 2020,
sourceType: "module",
},
},
rules: {
// Add any Vue-specific rules here if needed
},
},
];
Loading

0 comments on commit f863a78

Please sign in to comment.