Skip to content

Commit

Permalink
chore(*): self-prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mzrtamp committed Mar 7, 2024
1 parent 643b17b commit b2cad9a
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
next.config.js
tailwind.config.js
tailwind.config.js
4 changes: 2 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @type {import('next').NextConfig} */
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
};

module.exports = nextConfig;
module.exports = nextConfig;
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Sequelize } from "sequelize";

const client = new Sequelize({
dialect: "mariadb",
port: 3306,
host: "localhost",
password: "youshallnotpass",
username: "root",
port: 3306,
password: "youshallnotpass"
});

export default client;
2 changes: 1 addition & 1 deletion src/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/basic-features/typescript for more information.
2 changes: 0 additions & 2 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import "../styles/globals.css";

import { AppProps } from "next/app.js";

import React from "react";

export default function App({ Component, pageProps }: AppProps): JSX.Element {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/columns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default async function columns(
) {
const table = req.query["table"];
if (!table) {
res.status(400).json({ message: "Ngawur cik, mana nama tablenya???" });
res.status(400).json({ message: "Invalid table name." });
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/retrieve-all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default async function retrieveAll(
) {
const table = req.query["table"];
if (!table) {
res.status(400).json({ message: "Ngawur cik, mana nama tablenya???" });
res.status(400).json({ message: "Invalid table name." });
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/tables.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import connection from "../../index"; // ts server nya stress
import connection from "../../index";
import { NextApiRequest, NextApiResponse } from "next";

export default async function tables(
Expand Down
2 changes: 1 addition & 1 deletion src/pages/test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ export default function TestPage() {
</div>
</div>
)
}
}
10 changes: 5 additions & 5 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
"extends": "../tsconfig.json",
"compilerOptions": {},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
1 change: 0 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ module.exports = {
},
plugins: [],
}

0 comments on commit b2cad9a

Please sign in to comment.