Skip to content

Commit

Permalink
chore: code formatting prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
iqbalpa committed Jul 19, 2024
1 parent c3ece79 commit a27be0c
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": ["next/core-web-vitals", "plugin:prettier/recommended"]
"extends": ["next/core-web-vitals", "plugin:prettier/recommended"]
}
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

4 changes: 2 additions & 2 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"*{.js, .jsx, .ts, .tsx}": "eslint --fix",
"*.{json,md}": "prettier --write"
"*{.js, .jsx, .ts, .tsx}": "eslint --fix",
"*.{json,md}": "prettier --write"
}
12 changes: 6 additions & 6 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"singleQuote": true,
"trailingComma": "all",
"semi": true,
"bracketSpacing": true,
"tabWidth": 2,
"plugins": ["prettier-plugin-tailwindcss"]
"singleQuote": true,
"trailingComma": "all",
"semi": true,
"bracketSpacing": true,
"tabWidth": 2,
"plugins": ["prettier-plugin-tailwindcss"]
}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
"start": "next start",
"lint": "next lint",
"format": "prettier --check .",
"format:fix": "prettier --write --list-different .",
"prepare": "npx husky install"
"format:fix": "prettier --write --list-different ."
},
"dependencies": {
"axios": "^1.7.2",
Expand Down
8 changes: 0 additions & 8 deletions src/app/about/page.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import HomeModule from '@/modules/home/home';

export default function Home() {
return <HomeModule />;
return <HomeModule />;
}
30 changes: 15 additions & 15 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import type { Config } from 'tailwindcss';

const config: Config = {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/modules/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
},
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/modules/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
},
plugins: [],
},
plugins: [],
};
export default config;

0 comments on commit a27be0c

Please sign in to comment.