Skip to content

Commit

Permalink
Added prettier + eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick11514 committed Sep 26, 2024
1 parent 2feb223 commit 9ba73bd
Show file tree
Hide file tree
Showing 5 changed files with 1,486 additions and 7 deletions.
4 changes: 4 additions & 0 deletions frontend/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
10 changes: 10 additions & 0 deletions frontend/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"useTabs": false,
"tabWidth": 4,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 180,
"semi": true,
"plugins": ["prettier-plugin-vue"],
"overrides": [{ "files": "*.vue", "options": { "parser": "vue", "vueExcludeBlocks": [] } }]
}
26 changes: 26 additions & 0 deletions frontend/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import js from '@eslint/js';
import prettier from 'eslint-config-prettier';
import pluginVue from 'eslint-plugin-vue';
import ts from 'typescript-eslint';

/** @type {import("eslint").Linter.Config} */
export default [
js.configs.recommended,
...ts.configs.recommended,
...pluginVue.configs['flat/recommended'],
prettier,
{
ignores: ['node_modules', 'rollup.config.js', 'package-lock.json', 'pnpm-lock.yaml', 'rollup.config.js']
},
{
files: ['*.vue', '**/*.vue'],
languageOptions: {
parserOptions: {
parser: '@typescript-eslint/parser'
}
},
rules: {
'vue/multi-word-component-names': 'off'
}
}
];
Loading

0 comments on commit 9ba73bd

Please sign in to comment.