diff --git a/.eslintrc.cjs b/.eslintrc.cjs
index c443e1e5..b3354079 100644
--- a/.eslintrc.cjs
+++ b/.eslintrc.cjs
@@ -16,5 +16,13 @@ module.exports = {
browser: true,
es2017: true,
node: true
+ },
+ rules: {
+ '@typescript-eslint/ban-ts-comment': [
+ 'error',
+ {
+ 'ts-ignore': 'allow-with-description'
+ }
+ ]
}
};
diff --git a/.prettierrc b/.prettierrc
index 4394a68a..91f264de 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -1,6 +1,6 @@
{
"singleQuote": true,
- "svelteSortOrder": "scripts-styles-markup",
+ "svelteSortOrder": "scripts-markup-styles",
"svelteBracketNewLine": false,
"useTabs": true,
"trailingComma": "none",
diff --git a/package.json b/package.json
index f14adece..63ef1b5a 100644
--- a/package.json
+++ b/package.json
@@ -19,7 +19,9 @@
"autoprefixer": "^10.2.5",
"cssnano": "^5.0.1",
"eslint": "^7.22.0",
+ "eslint-config-postcss": "^4.0.0",
"eslint-config-prettier": "^8.1.0",
+ "eslint-plugin-postcss-modules": "^1.2.1",
"eslint-plugin-svelte3": "^3.2.0",
"husky": "^6.0.0",
"lint-staged": "^11.0.0",
diff --git a/src/global.d.ts b/src/global.d.ts
index 4f0656f6..63908c66 100644
--- a/src/global.d.ts
+++ b/src/global.d.ts
@@ -1,33 +1 @@
///
-
-interface EditorUpdateEvent {
- text: string;
-}
-interface EditorEvents {
- update: EditorUpdateEvent;
-}
-
-interface TabEvents {
- select: Tab;
-}
-
-interface Tab {
- id: string;
- title: string;
- icon: string;
-}
-
-interface State {
- code: string;
- mermaid: string;
- updateEditor: boolean;
- updateDiagram: boolean;
- autoSync: boolean;
-}
-
-interface HistoryEntry {
- state: State;
- time: number;
- name?: string;
- auto: boolean;
-}
diff --git a/src/lib/components/card/card.svelte b/src/lib/components/card/card.svelte
index e3c8bcd1..5847f57b 100644
--- a/src/lib/components/card/card.svelte
+++ b/src/lib/components/card/card.svelte
@@ -1,8 +1,10 @@
+
+