diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..717b689
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,7 @@
+ root = true
+
+[*]
+end_of_line = lf
+insert_final_newline = false
+indent_style = space
+indent_size = 2
diff --git a/.eslintrc.yml b/.eslintrc.yml
new file mode 100644
index 0000000..fadeefa
--- /dev/null
+++ b/.eslintrc.yml
@@ -0,0 +1,15 @@
+env:
+ browser: true
+ es2021: true
+ vue/setup-compiler-macros: true
+extends:
+ - 'plugin:vue/vue3-recommended'
+ - standard
+parserOptions:
+ ecmaVersion: 13
+ parser: '@typescript-eslint/parser'
+ sourceType: module
+plugins:
+ - vue
+ - '@typescript-eslint'
+rules: {}
diff --git a/package.json b/package.json
index d6a64c9..818cb36 100644
--- a/package.json
+++ b/package.json
@@ -5,13 +5,23 @@
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview",
- "image": "docker build -t chewingbever/rb-blog ."
+ "image": "docker build -t chewingbever/rb-blog .",
+ "lint": "eslint --ext .js,.vue,.ts src",
+ "format": "yarn run lint --fix"
},
"dependencies": {
"vue": "^3.2.25"
},
"devDependencies": {
+ "@typescript-eslint/eslint-plugin": "^5.8.1",
+ "@typescript-eslint/parser": "^5.8.1",
"@vitejs/plugin-vue": "^2.0.0",
+ "eslint": "^7.32.0",
+ "eslint-config-standard": "^16.0.3",
+ "eslint-plugin-import": "^2.25.3",
+ "eslint-plugin-node": "^11.1.0",
+ "eslint-plugin-promise": "^5.2.0",
+ "eslint-plugin-vue": "^8.2.0",
"miragejs": "^0.1.43",
"null-loader": "^4.0.1",
"typescript": "^4.4.4",
diff --git a/src/App.vue b/src/App.vue
index df4e2d7..017d1c7 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -5,8 +5,13 @@ import HelloWorld from './components/HelloWorld.vue'
-
-
+
+
+
+