Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate 401 report #2061

Merged
merged 17 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ module.exports = {
'react/jsx-tag-spacing': 'off',
'react/jsx-wrap-multilines': 'off',
'no-else-return': 'off',
'import/no-extraneous-dependencies': 'off',
'import/no-extraneous-dependencies': [
'error',
{ devDependencies: false, optionalDependencies: false, peerDependencies: false },
],
'no-nested-ternary': 'off',
'react/require-default-props': 'off',
'@typescript-eslint/naming-convention': [
Expand Down
3 changes: 1 addition & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
* https://jestjs.io/docs/configuration
*/
import type { Config } from 'jest';
// eslint-disable-next-line import/extensions
import nextJest from 'next/jest.js';
import nextJest from 'next/jest';

const createJestConfig = nextJest({
// Provide the path to your Next.js app to load next.config.js and .env files in your test environment
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iSunFA",
"version": "0.8.0+21",
"version": "0.8.0+22",
"private": false,
"scripts": {
"dev": "next dev",
Expand Down Expand Up @@ -63,6 +63,7 @@
"@types/cookie": "^0.6.0",
"@types/jest": "^29.5.11",
"@types/jsonwebtoken": "^9.0.6",
"@types/next-auth": "^3.15.0",
"@types/node": "^20",
"@types/nodemailer": "^6.4.15",
"@types/react": "^18",
Expand Down
5 changes: 2 additions & 3 deletions prisma/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,9 @@ main()
.then(async () => {
await prisma.$disconnect();
})
.catch(async (e) => {
.catch(async () => {
// Info (20240316 - Murky) - Log error and disconnect prisma
// eslint-disable-next-line no-console
console.error(e);
// console.error(e);
await prisma.$disconnect();
process.exit(1);
});
9 changes: 3 additions & 6 deletions scripts/update_version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ try {
packageJson = JSON.parse(packageJsonContent);
} catch (error) {
// Info:(20240701-Jacky) - Log the error
// eslint-disable-next-line no-console
console.error('Error reading package.json:', error);
// console.error('Error reading package.json:', error);
process.exit(1); // Exit the process with an error code
}

Expand Down Expand Up @@ -67,11 +66,9 @@ try {
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2) + '\n');
} catch (error) {
// Info:(20240701-Jacky) - Log the error
// eslint-disable-next-line no-console
console.error('Error writing package.json:', error);
// console.error('Error writing package.json:', error);
process.exit(1); // Exit the process with an error code
}

// Info:(20240701-Jacky) - Log the updated version
// eslint-disable-next-line no-console
console.log(`Version updated to ${newVersion}`);
// console.log(`Version updated to ${newVersion}`);
Loading