Explorar el Código

refactor: Typescript/eslint tweaks

Owen Diffey hace 1 año
padre
commit
0aa84e0385
Se han modificado 3 ficheros con 16 adiciones y 4 borrados
  1. 5 2
      backend/.eslintrc
  2. 5 2
      frontend/.eslintrc
  3. 6 0
      frontend/src/types/vue-shim.d.ts

+ 5 - 2
backend/.eslintrc

@@ -13,7 +13,9 @@
 		"eslint:recommended",
 		"airbnb-base",
 		"prettier",
-		"plugin:jsdoc/recommended"
+		"plugin:jsdoc/recommended",
+		"plugin:@typescript-eslint/eslint-recommended",
+        "plugin:@typescript-eslint/recommended"
     ],
     "plugins": [ "prettier", "jsdoc", "@typescript-eslint" ],
 	"rules": {
@@ -41,6 +43,7 @@
 				"ArrowFunctionExpression": false,
 				"FunctionExpression": false
 			}
-		}]
+		}],
+		"@typescript-eslint/no-empty-function": 0
     }
 }

+ 5 - 2
frontend/.eslintrc

@@ -17,7 +17,9 @@
 		"airbnb-base",
 		"plugin:vue/strongly-recommended",
 		"eslint:recommended",
-		"prettier"
+		"prettier",
+		"plugin:@typescript-eslint/eslint-recommended",
+        "plugin:@typescript-eslint/recommended"
 	],
 	"plugins": [
 		"prettier",
@@ -44,6 +46,7 @@
 		],
 		"vue/order-in-components": 2,
 		"vue/no-v-for-template-key": 0,
-		"vue/multi-word-component-names": 0
+		"vue/multi-word-component-names": 0,
+		"@typescript-eslint/no-empty-function": 0
 	}
 }

+ 6 - 0
frontend/src/types/vue-shim.d.ts

@@ -0,0 +1,6 @@
+declare module "*.vue" {
+	import { defineComponent } from "vue";
+
+	const component: ReturnType<typeof defineComponent>;
+	export default component;
+}