Skip to content

Commit

Permalink
[all]: Migrate Tailwind configuration files to ESM with TS
Browse files Browse the repository at this point in the history
`.eslintrc.js` is required to be renamed to `.eslintrc.cjs`
in an ESM package.
  • Loading branch information
ThrRip committed Dec 4, 2023
1 parent 934609f commit 53b3533
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 5 deletions.
File renamed without changes.
6 changes: 6 additions & 0 deletions .idea/jsLinters/eslint.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "mzg.fan",
"version": "0.0.0",
"type": "module",
"license": "UNLICENSED",
"repository": {
"type": "git",
Expand All @@ -12,7 +13,7 @@
"dev": "pnpm -r exec nuxt dev",
"build": "pnpm -r exec nuxt build",
"preview": "pnpm -r exec nuxt preview",
"lint": "eslint --ext .js,.ts,.vue --ignore-path .gitignore .",
"lint": "eslint --ext .js,.cjs,.ts,.vue --ignore-path .gitignore .",
"postinstall": "nuxt prepare && pnpm -r exec nuxt prepare",
"dev:home": "pnpm -F home exec nuxt dev",
"build:home": "pnpm -F home exec nuxt build",
Expand Down
1 change: 0 additions & 1 deletion packages/admin/tailwind.config.js

This file was deleted.

1 change: 1 addition & 0 deletions packages/admin/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '../../tailwind.config'
1 change: 0 additions & 1 deletion packages/home/tailwind.config.js

This file was deleted.

1 change: 1 addition & 0 deletions packages/home/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '../../tailwind.config'
6 changes: 4 additions & 2 deletions tailwind.config.js → tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module.exports = {
import type { Config } from 'tailwindcss'

export default {
content: [
'./app.vue',
'./pages/**/*.vue',
Expand Down Expand Up @@ -60,4 +62,4 @@ module.exports = {
plugins: [
require('tailwind-scrollbar')
]
}
} satisfies Config

0 comments on commit 53b3533

Please sign in to comment.