Skip to content

Commit

Permalink
Format code with new prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
TMH-SE committed Mar 17, 2023
1 parent 46ff28a commit 238f1c3
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 25 deletions.
6 changes: 3 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module.exports = {
root: true,
// This tells ESLint to load the config from the package `eslint-config-custom`
extends: ["custom"],
extends: ['custom'],
settings: {
next: {
rootDir: ["apps/*/"],
rootDir: ['apps/*/'],
},
},
};
}
4 changes: 2 additions & 2 deletions apps/docs/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
root: true,
extends: ["custom"],
};
extends: ['custom'],
}
4 changes: 2 additions & 2 deletions apps/docs/next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
reactStrictMode: true,
transpilePackages: ["ui"],
};
transpilePackages: ['ui'],
}
4 changes: 2 additions & 2 deletions apps/docs/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Button } from "ui";
import { Button } from 'ui'

export default function Docs() {
return (
<div>
<h1>Docs</h1>
<Button />
</div>
);
)
}
4 changes: 2 additions & 2 deletions apps/web/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
root: true,
extends: ["custom"],
};
extends: ['custom'],
}
4 changes: 2 additions & 2 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
reactStrictMode: true,
transpilePackages: ["ui"],
};
transpilePackages: ['ui'],
}
4 changes: 2 additions & 2 deletions apps/web/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Button } from "ui";
import { Button } from 'ui'

export default function Web() {
return (
<div>
<h1>Web</h1>
<Button />
</div>
);
)
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "turbo run build",
"dev": "turbo run dev",
"lint": "turbo run lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
"format": "prettier --write \"**/*.{js,ts,tsx,md}\""
},
"devDependencies": {
"eslint-config-custom": "workspace:*",
Expand All @@ -22,4 +22,4 @@
},
"dependencies": {},
"packageManager": "[email protected]"
}
}
4 changes: 2 additions & 2 deletions packages/tailwind-config/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{js,ts,jsx,tsx}"],
content: ['./src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {},
},
plugins: [],
}
}
2 changes: 1 addition & 1 deletion packages/tsconfig/nextjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"module": "esnext",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
"jsx": "react-jsx"
},
"include": ["src", "next-env.d.ts"],
"exclude": ["node_modules"]
Expand Down
6 changes: 3 additions & 3 deletions packages/ui/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as React from "react";
import * as React from 'react'
export const Button = () => {
return <button>Boop</button>;
};
return <button>Boop</button>
}
4 changes: 2 additions & 2 deletions packages/ui/index.tsx
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import * as React from "react";
export * from "./Button";
import * as React from 'react'
export * from './Button'

0 comments on commit 238f1c3

Please sign in to comment.