Skip to content

Commit 8290811

Browse files
committed
fix .gitignore error
1 parent 85be4ae commit 8290811

File tree

9 files changed

+70
-58
lines changed

9 files changed

+70
-58
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintignore

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# .env file
2+
.env
3+
.gitignore
4+
# dependencies
5+
/node_modules
6+
/.pnp
7+
.pnp.js
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/out/
15+
16+
# production
17+
/build
18+
19+
# misc
20+
.DS_Store
21+
*.pem
22+
23+
# debug
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
.pnpm-debug.log*
28+
29+
# local env files
30+
.env*.local
31+
32+
# vercel
33+
.vercel
34+
35+
# typescript
36+
*.tsbuildinfo
37+
next-env.d.ts
38+
39+
# Webstorm
40+
.idea
41+
.vscode
42+
43+
# dev db files
44+
/db/migrations/
45+
/db/*.db*

.prettierignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/components/Form/LoginForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type LoginFormValues = {
1818
password: string;
1919
};
2020

21-
const LoginForm = ({ csrfToken }: any) => {
21+
const LoginForm = ({ csrfToken }: { csrfToken: string }) => {
2222
const [isSubmitting, setSubmitting] = useState(false);
2323
const { register, handleSubmit } = useForm<LoginFormValues>();
2424
console.log(csrfToken);
@@ -135,7 +135,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
135135
}
136136

137137
const csrfToken = await getCsrfToken({ req: context.req });
138-
const providers = filter(await getProviders(), (provider: any) => {
138+
const providers = filter(await getProviders(), (provider: Credential) => {
139139
return provider.type !== 'credentials';
140140
});
141141

lib/components/Form/RegistrationForm.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1+
import { Button } from '@components/Input';
2+
import { MINIMUM_ACTIVITY_TIMEOUT } from '@lib/constants';
13
import { filter } from 'lodash';
24
import { GetServerSidePropsContext } from 'next';
35
import {
4-
getSession,
56
getCsrfToken,
6-
signIn,
77
getProviders,
8+
getSession,
9+
signIn,
810
} from 'next-auth/react';
911
import { useState } from 'react';
1012
import { useForm } from 'react-hook-form';
11-
import { Button } from '@components/Input';
12-
import { MINIMUM_ACTIVITY_TIMEOUT } from '@lib/constants';
1313
import ToastMessage from '../Toast';
1414

1515
type RegistrationFormValues = {
@@ -270,7 +270,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
270270
}
271271

272272
const csrfToken = await getCsrfToken({ req: context.req });
273-
const providers = filter(await getProviders(), (provider: any) => {
273+
const providers = filter(await getProviders(), (provider: Credential) => {
274274
return provider.type !== 'credentials';
275275
});
276276

lib/components/Input/IndeterminateCheckbox.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const IndeterminateCheckbox = ({
55
className = '',
66
...rest
77
}: { indeterminate?: boolean } & HTMLProps<HTMLInputElement>) => {
8-
const ref = useRef<HTMLInputElement>(null!);
8+
const ref = useRef<HTMLInputElement>(null);
99
useEffect(() => {
10-
if (typeof indeterminate === 'boolean') {
10+
if (ref.current && typeof indeterminate === 'boolean') {
1111
ref.current.indeterminate = !rest.checked && indeterminate;
1212
}
1313
}, [ref, indeterminate]);

next.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ module.exports = {
33
typescript: {
44
ignoreBuildErrors: true,
55
},
6-
images: {
7-
domains: ['medlem.vsait.org'],
8-
},
96
reactStrictMode: true,
7+
exclude: ["./.gitignore"]
108
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"bcryptjs": "^2.4.3",
2525
"eslint-config-next": "^13.5.4",
2626
"husky": "^8.0.1",
27+
"ignore-loader": "^0.1.2",
2728
"jotai": "^1.13.1",
2829
"lodash": "^4.17.21",
2930
"next": "^13.5.4",

tsconfig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@
2121
"resolveJsonModule": true,
2222
"isolatedModules": true,
2323
"jsx": "preserve",
24-
"incremental": true
24+
"incremental": true,
25+
"noUnusedLocals": false, // Report unused local variables
26+
"noUnusedParameters": false, // Report unused parameters
2527
},
2628
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
27-
"exclude": ["node_modules", ".gitignore", "./.gitignore"]
29+
"exclude": ["node_modules", "**/*.gitignore"]
2830
}

yarn.lock

Lines changed: 10 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,7 @@ debug@^3.1.0, debug@^3.2.7:
15801580
dependencies:
15811581
ms "^2.1.1"
15821582

1583-
debuglog@*, debuglog@^1.0.1:
1583+
debuglog@^1.0.1:
15841584
version "1.0.1"
15851585
resolved "https://registry.npmjs.org/debuglog/-/debuglog-1.0.1.tgz"
15861586
integrity sha512-syBZ+rnAK3EgMsH2aYEOLUW7mZSY9Gb+0wUMCFsZvcmiz+HigA0LOcq/HoQqVuGG+EKykunc7QG2bzrponfaSw==
@@ -2013,16 +2013,11 @@ eslint-plugin-prettier@^4.2.1:
20132013
dependencies:
20142014
prettier-linter-helpers "^1.0.0"
20152015

2016-
"eslint-plugin-react-hooks@^4.5.0 || 5.0.0-canary-7118f5dd7-20230705":
2016+
"eslint-plugin-react-hooks@^4.5.0 || 5.0.0-canary-7118f5dd7-20230705", eslint-plugin-react-hooks@^4.6.0:
20172017
version "4.6.0"
20182018
resolved "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz"
20192019
integrity sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==
20202020

2021-
eslint-plugin-react-hooks@^4.6.0:
2022-
version "4.6.0"
2023-
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz#4c3e697ad95b77e93f8646aaa1630c1ba607edd3"
2024-
integrity sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==
2025-
20262021
eslint-plugin-react@^7.33.2:
20272022
version "7.33.2"
20282023
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.33.2.tgz#69ee09443ffc583927eafe86ffebb470ee737608"
@@ -2788,6 +2783,11 @@ iferr@^0.1.5, iferr@~0.1.5:
27882783
resolved "https://registry.npmjs.org/iferr/-/iferr-0.1.5.tgz"
27892784
integrity sha512-DUNFN5j7Tln0D+TxzloUjKB+CtVu6myn0JEFak6dG18mNt9YkQ6lzGCdafwofISZ1lLF3xRHJ98VKy9ynkcFaA==
27902785

2786+
ignore-loader@^0.1.2:
2787+
version "0.1.2"
2788+
resolved "https://registry.yarnpkg.com/ignore-loader/-/ignore-loader-0.1.2.tgz#d81f240376d0ba4f0d778972c3ad25874117a463"
2789+
integrity sha512-yOJQEKrNwoYqrWLS4DcnzM7SEQhRKis5mB+LdKKh4cPmGYlLPR0ozRzHV5jmEk2IxptqJNQA5Cc0gw8Fj12bXA==
2790+
27912791
ignore@^5.2.0:
27922792
version "5.2.4"
27932793
resolved "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz"
@@ -2806,7 +2806,7 @@ import-lazy@^2.1.0:
28062806
resolved "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz"
28072807
integrity sha512-m7ZEHgtw69qOGw+jwxXkHlrlIPdTGkyh66zXZ1ajZbxkDBNjSY/LGbmjc7h0s2ELsUDTAhFr55TrPSSqJGPG0A==
28082808

2809-
imurmurhash@*, imurmurhash@^0.1.4:
2809+
imurmurhash@^0.1.4:
28102810
version "0.1.4"
28112811
resolved "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz"
28122812
integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==
@@ -3391,11 +3391,6 @@ lockfile@~1.0.3:
33913391
dependencies:
33923392
signal-exit "^3.0.2"
33933393

3394-
lodash._baseindexof@*:
3395-
version "3.1.0"
3396-
resolved "https://registry.npmjs.org/lodash._baseindexof/-/lodash._baseindexof-3.1.0.tgz"
3397-
integrity sha512-bSYo8Pc/f0qAkr8fPJydpJjtrHiSynYfYBjtANIgXv5xEf1WlTC63dIDlgu0s9dmTvzRu1+JJTxcIAHe+sH0FQ==
3398-
33993394
lodash._baseuniq@~4.6.0:
34003395
version "4.6.0"
34013396
resolved "https://registry.npmjs.org/lodash._baseuniq/-/lodash._baseuniq-4.6.0.tgz"
@@ -3404,33 +3399,11 @@ lodash._baseuniq@~4.6.0:
34043399
lodash._createset "~4.0.0"
34053400
lodash._root "~3.0.0"
34063401

3407-
lodash._bindcallback@*:
3408-
version "3.0.1"
3409-
resolved "https://registry.npmjs.org/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz"
3410-
integrity sha512-2wlI0JRAGX8WEf4Gm1p/mv/SZ+jLijpj0jyaE/AXeuQphzCgD8ZQW4oSpoN8JAopujOFGU3KMuq7qfHBWlGpjQ==
3411-
3412-
lodash._cacheindexof@*:
3413-
version "3.0.2"
3414-
resolved "https://registry.npmjs.org/lodash._cacheindexof/-/lodash._cacheindexof-3.0.2.tgz"
3415-
integrity sha512-S8dUjWr7SUT/X6TBIQ/OYoCHo1Stu1ZRy6uMUSKqzFnZp5G5RyQizSm6kvxD2Ewyy6AVfMg4AToeZzKfF99T5w==
3416-
3417-
lodash._createcache@*:
3418-
version "3.1.2"
3419-
resolved "https://registry.npmjs.org/lodash._createcache/-/lodash._createcache-3.1.2.tgz"
3420-
integrity sha512-ev5SP+iFpZOugyab/DEUQxUeZP5qyciVTlgQ1f4Vlw7VUcCD8fVnyIqVUEIaoFH9zjAqdgi69KiofzvVmda/ZQ==
3421-
dependencies:
3422-
lodash._getnative "^3.0.0"
3423-
34243402
lodash._createset@~4.0.0:
34253403
version "4.0.3"
34263404
resolved "https://registry.npmjs.org/lodash._createset/-/lodash._createset-4.0.3.tgz"
34273405
integrity sha512-GTkC6YMprrJZCYU3zcqZj+jkXkrXzq3IPBcF/fIPpNEAB4hZEtXU8zp/RwKOvZl43NUmwDbyRk3+ZTbeRdEBXA==
34283406

3429-
lodash._getnative@*, lodash._getnative@^3.0.0:
3430-
version "3.9.1"
3431-
resolved "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz"
3432-
integrity sha512-RrL9VxMEPyDMHOd9uFbvMe8X55X16/cGM5IgOKgRElQZutpX89iS6vwl64duTV1/16w5JY7tuFNXqoekmh1EmA==
3433-
34343407
lodash._root@~3.0.0:
34353408
version "3.0.1"
34363409
resolved "https://registry.npmjs.org/lodash._root/-/lodash._root-3.0.1.tgz"
@@ -3446,11 +3419,6 @@ lodash.merge@^4.6.2:
34463419
resolved "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz"
34473420
integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==
34483421

3449-
lodash.restparam@*:
3450-
version "3.6.1"
3451-
resolved "https://registry.npmjs.org/lodash.restparam/-/lodash.restparam-3.6.1.tgz"
3452-
integrity sha512-L4/arjjuq4noiUJpt3yS6KIKDtJwNe2fIYgMqyYYKoeIfV1iEqvPwhCx23o+R9dzouGihDAPN1dTIRWa7zk8tw==
3453-
34543422
lodash.union@~4.6.0:
34553423
version "4.6.0"
34563424
resolved "https://registry.npmjs.org/lodash.union/-/lodash.union-4.6.0.tgz"
@@ -4775,7 +4743,7 @@ readable-stream@~1.1.10:
47754743
isarray "0.0.1"
47764744
string_decoder "~0.10.x"
47774745

4778-
readdir-scoped-modules@*, readdir-scoped-modules@^1.0.0:
4746+
readdir-scoped-modules@^1.0.0:
47794747
version "1.1.0"
47804748
resolved "https://registry.yarnpkg.com/readdir-scoped-modules/-/readdir-scoped-modules-1.1.0.tgz#8d45407b4f870a0dcaebc0e28670d18e74514309"
47814749
integrity sha512-asaikDeqAQg7JifRsZn1NJZXo9E+VwlyCfbkZhwyISinqk5zNS6266HS5kah6P0SaQKGF6SkNnZVHUzHFYxYDw==
@@ -5915,7 +5883,7 @@ v8-compile-cache-lib@^3.0.1:
59155883
resolved "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz"
59165884
integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==
59175885

5918-
validate-npm-package-license@*, validate-npm-package-license@^3.0.1:
5886+
validate-npm-package-license@^3.0.1:
59195887
version "3.0.4"
59205888
resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a"
59215889
integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==

0 commit comments

Comments
 (0)