Skip to content

Commit

Permalink
🐞 FIX: all linting error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
hyper-dot committed Aug 10, 2024
1 parent 50d98b7 commit 943ab4e
Show file tree
Hide file tree
Showing 16 changed files with 4,035 additions and 121 deletions.
20 changes: 0 additions & 20 deletions .eslintrc.json

This file was deleted.

5 changes: 4 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"singleQuote": true,
"semi": false
"semi": true,
"trailingComma": "all",
"printWidth": 80,
"tabWidth": 2
}
17 changes: 17 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import globals from 'globals';
import pluginJs from '@eslint/js';
import tseslint from 'typescript-eslint';

export default [
{
files: ['**/*.{js,mjs,cjs,ts}'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
},
},
{
languageOptions: { globals: globals.browser },
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
];
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Typescript Server",
"type": "commonjs",
"devDependencies": {
"@eslint/js": "^9.9.0",
"@types/chalk": "^2.2.0",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
Expand All @@ -15,11 +16,13 @@
"@typescript-eslint/eslint-plugin": "^8.0.1",
"@typescript-eslint/parser": "^8.0.1",
"eslint": "^9.8.0",
"globals": "^15.9.0",
"nodemon": "^3.1.0",
"prettier": "^3.2.5",
"ts-node": "10.9.1",
"tsconfig-paths": "^4.2.0",
"typescript": "5.4.5"
"typescript": "5.4.5",
"typescript-eslint": "^8.0.1"
},
"dependencies": {
"@types/bcrypt": "^5.0.2",
Expand All @@ -44,6 +47,7 @@
"scripts": {
"dev": "nodemon --exec ts-node src/index.ts",
"build": "tsc",
"lint:fix": "eslint 'src/**/*.ts' --fix",
"start": "node ./dist/src/index.js",
"typeorm": "typeorm-ts-node-commonjs",
"generate": "typeorm migration:generate",
Expand Down
Loading

0 comments on commit 943ab4e

Please sign in to comment.