Skip to content

Commit

Permalink
Fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed May 23, 2021
1 parent 46ec921 commit 626060c
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 8 additions & 0 deletions src/app.postcss
Original file line number Diff line number Diff line change
@@ -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 change: 0 additions & 1 deletion src/lib/components/card/card.svelte
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
8 changes: 1 addition & 7 deletions src/lib/components/history/history.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -111,9 +111,3 @@
{/if}
</ul>
</Card>

<style lang="postcss">
.btn {
@apply bg-indigo-500 hover:bg-indigo-700 rounded px-4 shadow;
}
</style>
5 changes: 1 addition & 4 deletions src/lib/components/navbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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>
3 changes: 0 additions & 3 deletions src/routes/__layout.svelte