Skip to content

Commit

Permalink
fix: vite cjs deprecated issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kurrx committed Jan 31, 2024
1 parent 01d4880 commit ad5d588
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"browser": true, // enable use of global browser variables like `windows`.
"node": true // enable use of global node variables like `process`.
},
"ignorePatterns": ["tailwind.config.ts", "postcss.config.cjs"],
"parser": "@typescript-eslint/parser", // Allows Eslint to understand TypeScript syntax.
"parserOptions": {
"project": "./tsconfig.eslint.json", // Specify where to find the root tsconfig file of your project.
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "tv.kurr.dev",
"type": "module",
"version": "0.1.0",
"description": "Movie and TV Shows App",
"repository": "[email protected]:kurrx/tv.kurr.dev.git",
Expand Down
File renamed without changes.
11 changes: 7 additions & 4 deletions tailwind.config.js → tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
const defaultTheme = require('tailwindcss/defaultTheme')
import { Config } from 'tailwindcss'
import tailwindAnimate from 'tailwindcss-animate'
import defaultTheme from 'tailwindcss/defaultTheme'

/** @type {import('tailwindcss').Config} */
module.exports = {
const config: Config = {
darkMode: ['class'],
content: [
'./pages/**/*.{ts,tsx}',
Expand Down Expand Up @@ -83,5 +84,7 @@ module.exports = {
},
},
},
plugins: [require('tailwindcss-animate')],
plugins: [tailwindAnimate],
}

export default config
5 changes: 2 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"baseUrl": ".",
"paths": {
"@/*": ["src/*"],
"@types": ["src/@types"]
}
},
},
"include": ["src", "vite.config.ts"]
"include": ["src", "vite.config.ts"],
}

0 comments on commit ad5d588

Please sign in to comment.