feat [front]: switch to nuxt3 and vue3

This commit is contained in:
Alice 2022-04-03 01:20:54 +02:00
parent 6a85d0694e
commit ed1cd6a466
7 changed files with 45 additions and 18 deletions

0
front/.eslintignore Normal file
View file

View file

@ -2,14 +2,27 @@ module.exports = {
root: true,
env: {
browser: true,
node: true
node: true,
},
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
parser: "@typescript-eslint/parser",
},
extends: [
'@nuxtjs/eslint-config-typescript',
'plugin:nuxt/recommended'
],
plugins: [
"plugin:@typescript-eslint/recommended",
"plugin:nuxt/recommended",
"plugin:vue/vue3-recommended",
"plugin:prettier/recommended",
],
plugins: ["@typescript-eslint"],
// add your custom rules here
rules: {}
rules: {},
overrides: [
{
files: ["layouts/*.vue", "pages/**/*.vue"],
rules: { "vue/multi-word-component-names": "off" },
},
],
}

6
front/.gitignore vendored Normal file
View file

@ -0,0 +1,6 @@
node_modules
*.log
.nuxt
nuxt.d.ts
.output
.env

6
front/.prettierrc Normal file
View file

@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": false
}

View file

@ -1,8 +1,6 @@
module.exports = {
extends: [
'stylelint-config-standard'
],
extends: ["stylelint-config-standard"],
// add your custom config here
// https://stylelint.io/user-guide/configuration
rules: {}
rules: {},
}

View file

@ -1,15 +1,15 @@
/*
** TailwindCSS Configuration File
**
** Docs: https://tailwindcss.com/docs/configuration
** Default: https://github.com/tailwindcss/tailwindcss/blob/master/stubs/defaultConfig.stub.js
*/
** TailwindCSS Configuration File
**
** Docs: https://tailwindcss.com/docs/configuration
** Default: https://github.com/tailwindcss/tailwindcss/blob/master/stubs/defaultConfig.stub.js
*/
module.exports = {
theme: {
container: {
center: true
}
}
center: true,
},
},
// purge: {
// enabled: process.env.NODE_ENV === 'production',
// content: [

4
server/.flake8 Normal file
View file

@ -0,0 +1,4 @@
[flake8]
ignore=E501,W503,E731
exclude = .git,__pycache__,docs/source/conf.py,build,dist,migrations,media,fixtures,requirements,static,assets
max-complexity = 10