Skip to content

Commit 2da9cf0

Browse files
committed
chore: update extensions of configs
1 parent 1eabaa8 commit 2da9cf0

File tree

17 files changed

+261
-292
lines changed

17 files changed

+261
-292
lines changed

.eslintignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
. "$(dirname -- "$0")/_/husky.sh"
33

44
yarn run lint
5-
npx lint-staged
5+

.prettierrc

Lines changed: 0 additions & 18 deletions
This file was deleted.

.prettierrc.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
singleQuote: true
2+
trailingComma: all
3+
semi: false
4+
tabWidth: 2
5+
useTabs: false
6+
printWidth: 80
7+
bracketSpacing: true
8+
arrowParens: always
9+
endOfLine: lf
10+
jsxSingleQuote: true
11+
quoteProps: as-needed
12+
embeddedLanguageFormatting: auto
13+
proseWrap: preserve
14+
htmlWhitespaceSensitivity: css
15+
bracketSameLine: false

commitlint.config.js

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

commitlint.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const config = {
2+
extends: ['@commitlint/config-conventional'],
3+
rules: {
4+
'header-max-length': [2, 'always', 72],
5+
},
6+
};
7+
8+
export default config;

eslint.config.mjs

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import tsEslintParser from '@typescript-eslint/parser';
2+
import tsEslintPlugin from '@typescript-eslint/eslint-plugin';
3+
import prettierPlugin from 'eslint-plugin-prettier';
4+
import prettierConfig from 'eslint-config-prettier';
5+
6+
export default [
7+
{
8+
files: ['**/*.ts', '**/*.tsx'],
9+
languageOptions: {
10+
parser: tsEslintParser,
11+
parserOptions: {
12+
project: 'tsconfig.json',
13+
tsconfigRootDir: process.cwd(),
14+
sourceType: 'module',
15+
},
16+
},
17+
plugins: {
18+
'@typescript-eslint': tsEslintPlugin,
19+
prettier: prettierPlugin,
20+
},
21+
rules: {
22+
'prettier/prettier': 'error',
23+
'@typescript-eslint/interface-name-prefix': 'off',
24+
'@typescript-eslint/explicit-function-return-type': 'off',
25+
'@typescript-eslint/explicit-module-boundary-types': 'off',
26+
'@typescript-eslint/no-explicit-any': 'off',
27+
'no-unused-vars': 'off',
28+
'no-console': 'off',
29+
'@typescript-eslint/no-unused-vars': ['error'],
30+
},
31+
settings: {
32+
'import/resolver': {
33+
typescript: {},
34+
},
35+
},
36+
},
37+
{
38+
ignores: ['node_modules', 'dist'],
39+
},
40+
];

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,12 @@
6363
"@types/node": "^20.3.1",
6464
"@types/passport": "^1.0.17",
6565
"@types/supertest": "^2.0.12",
66-
"@typescript-eslint/eslint-plugin": "^6.0.0",
67-
"@typescript-eslint/parser": "^6.0.0",
66+
"@typescript-eslint/eslint-plugin": "^8.22.0",
67+
"@typescript-eslint/parser": "^8.22.0",
6868
"commitizen": "^4.3.1",
69+
"commitlint": "^19.6.1",
6970
"cz-conventional-changelog": "^3.3.0",
70-
"eslint": "^8.42.0",
71+
"eslint": "^9.19.0",
7172
"eslint-config-prettier": "^9.0.0",
7273
"eslint-plugin-import": "^2.31.0",
7374
"eslint-plugin-prettier": "^5.0.0",

src/auth/auth/auth.controller.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export class AuthController {
3838
@Req() req: Request,
3939
@Res() res: Response,
4040
): Promise<any> {
41-
console.log('attempt auth')
4241
await this.authService.signinLocal(dto, req)
4342
return res.redirect('/auth/status')
4443
}

0 commit comments

Comments
 (0)