Skip to content

Commit

Permalink
Update the eslint config
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Oct 14, 2024
1 parent 87cf54f commit 8306c48
Show file tree
Hide file tree
Showing 5 changed files with 381 additions and 334 deletions.
17 changes: 0 additions & 17 deletions frontend/.eslintrc.cjs

This file was deleted.

27 changes: 27 additions & 0 deletions frontend/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// vim: et ts=4 sw=4:
// SPDX-FileCopyrightText: Contributors to the Fedora Project
//
// SPDX-License-Identifier: MIT

import js from "@eslint/js";
import pluginVue from 'eslint-plugin-vue'
import vueTsEslintConfig from "@vue/eslint-config-typescript";
import prettierConfig from "@vue/eslint-config-prettier";
//import skipFormattingConfig from "@vue/eslint-config-prettier/skip-formatting";

export default [
js.configs.recommended,
...pluginVue.configs['flat/essential'],
//...pluginVue.configs['flat/strongly-recommended'],
//...pluginVue.configs['flat/recommended'],
...vueTsEslintConfig(),
{
plugins: {
prettier: prettierConfig,
//prettier: skipFormattingConfig,
},
},
{
ignores: ["src/api/generated.ts", "dist/*"],
},
];
Loading

0 comments on commit 8306c48

Please sign in to comment.