Skip to content

Commit

Permalink
Merge pull request #515 from patrick11514/master
Browse files Browse the repository at this point in the history
Swap rollup with vite for building and watching code, added support for Vue, linting
  • Loading branch information
Kobzol authored Oct 2, 2024
2 parents 5cdb65d + c856db9 commit 203c969
Show file tree
Hide file tree
Showing 11 changed files with 2,777 additions and 1,783 deletions.
4 changes: 3 additions & 1 deletion frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/node_modules/
/public/build/

.DS_Store

# Vite timestamp files
vite.config.mjs.*
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": [] } }]
}
31 changes: 31 additions & 0 deletions frontend/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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'
}
},
{
rules: {
'no-prototype-builtins': 'off'
}
}
];
Loading

0 comments on commit 203c969

Please sign in to comment.