Skip to content

Commit

Permalink
fix: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiin committed Jul 31, 2022
1 parent 65947d3 commit 2654a7d
Show file tree
Hide file tree
Showing 12 changed files with 339 additions and 217 deletions.
13 changes: 9 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,20 @@ module.exports = {
'prettier',
],
root: true,
"settings": {
settings: {
"import/resolver": {
"typescript": {}
"typescript": {
"alwaysTryTypes": true,
"project": './tsconfig.json'

}
},
},
env: {
node: true,
jest: true,
es6: true,
browser: true,
browser: false,
},
rules: {
'no-duplicate-imports': 'error',
Expand Down Expand Up @@ -103,10 +107,11 @@ module.exports = {
avoidEscape: true,
},
],
"no-unused-vars": ["error", { "varsIgnorePattern": "^_","ignoreRestSiblings": true,"argsIgnorePattern": "^_" }],
'no-console': [
'error',
{
allow: ['warn', 'error', 'info'],
allow: ['warn', 'error', 'info','table'],
},
],
},
Expand Down
39 changes: 20 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,25 @@
"orm": "npx mikro-orm"
},
"dependencies": {
"@golevelup/nestjs-modules": "^0.6.0",
"@golevelup/nestjs-rabbitmq": "^3.1.0",
"@golevelup/nestjs-modules": "^0.6.1",
"@golevelup/nestjs-rabbitmq": "^3.2.0",
"@mikro-orm/core": "^5.2.4",
"@mikro-orm/migrations": "^5.2.4",
"@mikro-orm/nestjs": "^5.1.0",
"@mikro-orm/postgresql": "^5.2.4",
"@mikro-orm/reflection": "^5.2.4",
"@mikro-orm/sql-highlighter": "^1.0.1",
"@nestjs/axios": "^0.1.0",
"@nestjs/common": "9.0.5",
"@nestjs/common": "9.0.7",
"@nestjs/config": "^2.2.0",
"@nestjs/core": "9.0.5",
"@nestjs/core": "9.0.7",
"@nestjs/jwt": "^9.0.0",
"@nestjs/mapped-types": "^1.1.0",
"@nestjs/passport": "^9.0.0",
"@nestjs/platform-express": "^9.0.5",
"@nestjs/platform-express": "^9.0.7",
"@nestjs/serve-static": "^3.0.0",
"@nestjs/swagger": "^6.0.4",
"@nestjs/terminus": "^9.0.0",
"@nestjs/terminus": "^9.1.0",
"@nestjs/throttler": "^3.0.0",
"@ntegral/nestjs-sentry": "^3.0.7",
"@sentry/hub": "^7.8.0",
Expand All @@ -55,7 +55,7 @@
"compression": "^1.7.4",
"date-fns": "^2.29.1",
"eta": "^1.12.3",
"firebase-admin": "^11.0.0",
"firebase-admin": "^11.0.1",
"helmet": "^5.1.1",
"helper-fns": "^2.5.6",
"joi": "^17.6.0",
Expand All @@ -68,7 +68,7 @@
"passport": "0.6.0",
"passport-google-oauth20": "^2.0.0",
"passport-jwt": "4.0.0",
"pino-http": "^8.1.1",
"pino-http": "^8.2.0",
"pino-pretty": "^8.1.0",
"piscina": "^3.2.0",
"preview-email": "^3.0.7",
Expand All @@ -77,7 +77,7 @@
"sharp": "^0.30.7",
"swagger-ui-express": "^4.5.0",
"twilio": "^3.80.0",
"type-fest": "^2.17.0"
"type-fest": "^2.18.0"
},
"devDependencies": {
"@firebase/app-compat": "0.x",
Expand All @@ -87,29 +87,30 @@
"@mikro-orm/seeder": "^5.2.4",
"@nestjs/cli": "9.0.0",
"@nestjs/schematics": "9.0.1",
"@nestjs/testing": "9.0.5",
"@ryansonshine/cz-conventional-changelog": "^3.3.4",
"@nestjs/testing": "9.0.7",
"@types/cache-manager": "^4.0.1",
"@types/cache-manager-redis-store": "^2.0.1",
"@types/multer": "^1.4.7",
"@types/passport-google-oauth20": "^2.0.11",
"@types/puppeteer": "^5.4.6",
"@types/qs": "6.9.7",
"@types/sharp": "^0.30.4",
"@types/swagger-ui-express": "^4.1.3",
"cz-conventional-changelog": "3.3.0",
"@ryansonshine/cz-conventional-changelog": "^3.3.4",
"@types/compression": "^1.7.2",
"@types/jest": "^28.1.6",
"@types/multer": "^1.4.7",
"@types/node": "^18.6.1",
"@types/node": "^18.6.3",
"@types/nodemailer": "^6.4.4",
"@types/passport": "^1.0.9",
"@types/passport-google-oauth20": "^2.0.11",
"@types/passport-jwt": "^3.0.6",
"@types/preview-email": "^2.0.1",
"@types/puppeteer": "^5.4.6",
"@types/qs": "6.9.7",
"@types/sharp": "^0.30.4",
"@types/supertest": "2.0.12",
"@types/swagger-ui-express": "^4.1.3",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"cz-conventional-changelog": "3.3.0",
"eslint": "^8.20.0",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-typescript": "^3.3.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-no-secrets": "^0.8.9",
"eslint-plugin-prettier": "^4.2.1",
Expand Down
Loading

0 comments on commit 2654a7d

Please sign in to comment.