Skip to content

Commit

Permalink
Merge pull request #16 from cNikolaou/frontend_format_lint
Browse files Browse the repository at this point in the history
Add Prettier and ESLint to format and lint `frontend/`
  • Loading branch information
nfd committed Jul 1, 2024
2 parents ca2df8b + 82da0a2 commit f0bd33e
Show file tree
Hide file tree
Showing 22 changed files with 2,682 additions and 1,220 deletions.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ignore changes made by formatting with Prettier
ff38a0d24eab8b96a555c91793b2a7ea8401aada
4 changes: 4 additions & 0 deletions frontend/.prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
semi: true
singleQuote: true
tabWidth: 2
trailingComma: 'es5'
29 changes: 29 additions & 0 deletions frontend/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import pluginJs from '@eslint/js';
import pluginVue from 'eslint-plugin-vue';
import eslintConfigPrettier from 'eslint-config-prettier';

export default [
pluginJs.configs.recommended,

...pluginVue.configs['flat/essential'],

eslintConfigPrettier,

{
files: ['**/*.{js,mjs,cjs,vue}'],

rules: {
'no-unused-vars': 'warn',
'no-extra-boolean-cast': 'warn',
},
},

{
files: ['**/*.vue'],
rules: {
'vue/require-v-for-key': 'warn',
'vue/multi-word-component-names': 'warn',
'vue/no-side-effects-in-computed-properties': 'warn',
},
},
];
Loading

0 comments on commit f0bd33e

Please sign in to comment.