mirror of
https://github.com/mermaid-js/mermaid-live-editor.git
synced 2025-03-18 17:16:21 +03:00
Fix eslint
This commit is contained in:
@@ -7,7 +7,7 @@ module.exports = {
|
||||
'plugin:jest/recommended',
|
||||
'prettier'
|
||||
],
|
||||
plugins: ['svelte3', 'jest', '@typescript-eslint'],
|
||||
plugins: ['svelte3', 'jest', 'tailwindcss', '@typescript-eslint'],
|
||||
ignorePatterns: ['docs/*', '*.cjs', 'snapshots.js'],
|
||||
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
|
||||
settings: {
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
"eslint-plugin-jest": "^24.3.6",
|
||||
"eslint-plugin-postcss-modules": "^1.2.1",
|
||||
"eslint-plugin-svelte3": "^3.2.0",
|
||||
"eslint-plugin-tailwindcss": "^1.8.0",
|
||||
"husky": "^6.0.0",
|
||||
"jest": "^26.6.3",
|
||||
"lint-staged": "^11.0.0",
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
.nav-btn {
|
||||
@apply lg:p-2 py-3 px-0 block border-b-2 border-transparent hover:border-white;
|
||||
}
|
||||
|
||||
.btn {
|
||||
@apply bg-indigo-500 hover:bg-indigo-700 rounded px-4 shadow;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { Tab } from '$lib/types';
|
||||
|
||||
import { slide } from 'svelte/transition';
|
||||
import Tabs from './tabs.svelte';
|
||||
export let isCloseable = true;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
import moment from 'moment';
|
||||
import type { State, Tab } from '$lib/types';
|
||||
|
||||
const HISTORY_SAVE_INTERVAL: number = 60000;
|
||||
const HISTORY_SAVE_INTERVAL = 60000;
|
||||
|
||||
const tabSelectHandler = (message: CustomEvent<Tab>) => {
|
||||
autoHistoryMode.set('timeline' === message.detail.id);
|
||||
@@ -111,9 +111,3 @@
|
||||
{/if}
|
||||
</ul>
|
||||
</Card>
|
||||
|
||||
<style lang="postcss">
|
||||
.btn {
|
||||
@apply bg-indigo-500 hover:bg-indigo-700 rounded px-4 shadow;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -70,11 +70,8 @@
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<style lang="postcss">
|
||||
<style>
|
||||
#menu-toggle:checked + #menu {
|
||||
display: block;
|
||||
}
|
||||
.nav-btn {
|
||||
@apply lg:p-2 py-3 px-0 block border-b-2 border-transparent hover:border-white;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -5,6 +5,3 @@
|
||||
<main class="h-screen">
|
||||
<slot />
|
||||
</main>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
|
||||
@@ -2674,6 +2674,13 @@ eslint-plugin-svelte3@^3.2.0:
|
||||
resolved "https://registry.yarnpkg.com/eslint-plugin-svelte3/-/eslint-plugin-svelte3-3.2.0.tgz#a6deb4ead4b31a647ea88a3823d7c96578f74683"
|
||||
integrity sha512-qdWB1QN21dEozsJFdR8XlEhMnsS6aKHjsXWuNmchYwxoet5I6QdCr1Xcq62++IzRBMCNCeH4waXqSOAdqrZzgA==
|
||||
|
||||
eslint-plugin-tailwindcss@^1.8.0:
|
||||
version "1.8.0"
|
||||
resolved "https://registry.yarnpkg.com/eslint-plugin-tailwindcss/-/eslint-plugin-tailwindcss-1.8.0.tgz#f55b6acfc5825e5a0804973293ac110b6b803c10"
|
||||
integrity sha512-5jPmJbPb4AKDVz3UyzKJaXVUBKqqQU9iQFPN6Y6IlfALk9faIqlkC8Aj+7mXx+2ayXDVu0UnHvA05eu7yprFaA==
|
||||
dependencies:
|
||||
tailwindcss "^2.1.2"
|
||||
|
||||
eslint-scope@^5.0.0, eslint-scope@^5.1.1:
|
||||
version "5.1.1"
|
||||
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c"
|
||||
@@ -6602,7 +6609,7 @@ table@^6.0.9:
|
||||
string-width "^4.2.0"
|
||||
strip-ansi "^6.0.0"
|
||||
|
||||
tailwindcss@^2.1.1:
|
||||
tailwindcss@^2.1.1, tailwindcss@^2.1.2:
|
||||
version "2.1.2"
|
||||
resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-2.1.2.tgz#29402bf73a445faedd03df6d3b177e7b52b7c4a1"
|
||||
integrity sha512-T5t+wwd+/hsOyRw2HJuFuv0LTUm3MUdHm2DJ94GPVgzqwPPFa9XxX0KlwLWupUuiOUj6uiKURCzYPHFcuPch/w==
|
||||
|
||||
Reference in New Issue
Block a user