Skip to content

Commit

Permalink
➕ add eslint for tailwindcss
Browse files Browse the repository at this point in the history
  • Loading branch information
wook-hyung committed Dec 11, 2023
1 parent 653490a commit 02f5cea
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
'standard-with-typescript',
'plugin:import/recommended',
'plugin:@tanstack/eslint-plugin-query/recommended',
'plugin:tailwindcss/recommended',
'prettier',
],
overrides: [],
Expand Down
4 changes: 2 additions & 2 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
. "$(dirname -- "$0")/_/husky.sh"

# gitmoji as a commit hook
exec < /dev/tty
npx gitmoji --hook $1 $2
# exec < /dev/tty
# npx gitmoji --hook $1 $2
2 changes: 1 addition & 1 deletion app/(route)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Inter } from 'next/font/google'

import type { Metadata } from 'next'
import '../_styles/globals.css'
import '@/app/_styles/globals.css'

const inter = Inter({ subsets: ['latin'] })

Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"lint:fix": "eslint ./**/*.{js,jsx,ts,tsx} --cache --fix",
"prettier": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
"eslint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
"eslint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix",
"prepare": "husky install"
},
"lint-staged": {
"*.{ts,tsx}": [
"*.{js,jsx,ts,tsx}": [
"prettier --write",
"eslint --fix"
]
Expand Down Expand Up @@ -39,6 +41,7 @@
"eslint-plugin-n": "^15.0.0 || ^16.0.0 ",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-tailwindcss": "^3.13.0",
"gitmoji-cli": "^9.0.0",
"husky": "^8.0.0",
"lint-staged": "^15.2.0",
Expand Down
14 changes: 14 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 02f5cea

Please sign in to comment.