Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
chore: update eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Selemondev authored and Selemondev committed Aug 16, 2023
1 parent 16ae9ee commit 81fcc20
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 54 deletions.
22 changes: 1 addition & 21 deletions packages/nuxtlabs-ui-vue/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,26 +1,6 @@
<script setup lang='ts'>
import { ref } from 'vue'
const isOpen = ref(false)
</script>

<template>
<div class="grid place-items-center w-full min-h-screen">
<UButton label="Open" @click="isOpen = true" />
<USlideover v-model="isOpen" side="right" prevent-close>
<UCard
class="flex flex-col flex-1"
:ui="{ body: { base: 'flex-1' }, ring: '', divide: 'divide-y divide-gray-100 dark:divide-gray-800' }"
>
<template #header>
<div class="flex items-center justify-between">
<h3 class="text-base font-semibold leading-6 text-gray-900 dark:text-white">
Slideover
</h3>
<UButton intent="ghost" icon="heroicons:x-mark-20-solid" class="-my-1" @click="isOpen = false" />
</div>
</template>
</UCard>
</USlideover>
</div>
<div />
</template>
33 changes: 0 additions & 33 deletions packages/nuxtlabs-ui-vue/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,41 +1,8 @@
// /* eslint-disable no-unused-expressions */
// import tailwindColors from './node_modules/tailwindcss/colors'

// const colorSafeList = []

// // Skip these to avoid a load of deprecated warnings when tailwind starts up
// const deprecated = ['lightBlue', 'warmGray', 'trueGray', 'coolGray', 'blueGray']

// for (const colorName in tailwindColors) {
// if (deprecated.includes(colorName))
// continue

// const shades = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900]

// const pallette = tailwindColors[colorName]

// if (typeof pallette === 'object') {
// shades.forEach((shade) => {
// if (shade in pallette) {
// colorSafeList.push(`text-${colorName}-${shade}`),
// colorSafeList.push(`accent-${colorName}-${shade}`),
// colorSafeList.push(`bg-${colorName}-${shade}`),
// colorSafeList.push(`hover:bg-${colorName}-${shade}`),
// colorSafeList.push(`focus:bg-${colorName}-${shade}`),
// colorSafeList.push(`ring-${colorName}-${shade}`),
// colorSafeList.push(`focus:ring-${colorName}-${shade}`),
// colorSafeList.push(`border-${colorName}-${shade}`)
// }
// })
// }
// }
/** @type {import('tailwindcss').Config} */
// export const safelist = colorSafeList
export const content = ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}']
export const darkMode = 'class'
export const theme = {
extend: {
// colors: tailwindColors,
backgroundColor: ['disabled'],
textColor: ['disabled'],
fontFamily: {
Expand Down

0 comments on commit 81fcc20

Please sign in to comment.