Skip to content

Commit

Permalink
fix(): fix linter for eslint 9
Browse files Browse the repository at this point in the history
  • Loading branch information
NarHakobyan committed Dec 25, 2024
1 parent a4da98c commit 45aa616
Show file tree
Hide file tree
Showing 4 changed files with 2,279 additions and 2,251 deletions.
14 changes: 5 additions & 9 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
/* eslint-disable @typescript-eslint/naming-convention,@typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-member-access,quote-props */
// @ts-check

import eslint from '@eslint/js';
import stylisticPlugin from '@stylistic/eslint-plugin-ts';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import canonicalPlugin from 'eslint-plugin-canonical';
import nPlugin from 'eslint-plugin-n';
import prettierPlugin from 'eslint-plugin-prettier/recommended';
// import sonarjsPlugin from "eslint-plugin-sonarjs";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import sonarjsPlugin from "eslint-plugin-sonarjs";
import promisePlugin from 'eslint-plugin-promise';
import simpleImportSort from 'eslint-plugin-simple-import-sort';
// import importPlugin from "eslint-plugin-import";
import importPlugin from "eslint-plugin-import";
import unicornPlugin from 'eslint-plugin-unicorn';
import globals from 'globals';
import tseslint from 'typescript-eslint';
Expand All @@ -24,6 +17,9 @@ export default tseslint.config(
tseslint.configs.eslintRecommended,
...tseslint.configs.stylisticTypeChecked,
...tseslint.configs.recommendedTypeChecked,
sonarjsPlugin.configs.recommended,
importPlugin.flatConfigs.recommended,
importPlugin.flatConfigs.typescript,
promisePlugin.configs['flat/recommended'],
nPlugin.configs['flat/recommended'],
canonicalPlugin.configs['flat/recommended'],
Expand Down
2 changes: 2 additions & 0 deletions nest-cli.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/nest-cli",
"language": "ts",
"collection": "@nestjs/schematics",
"sourceRoot": "src",
Expand All @@ -9,6 +10,7 @@
"swcrcPath": ".swcrc"
}
},
"deleteOutDir": true,
"typeCheck": true,
"plugins": ["@nestjs/swagger/plugin"],
"assets": [
Expand Down
45 changes: 23 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,15 @@
"uuid": "^9.0.1"
},
"devDependencies": {
"@eslint/compat": "^1.2.2",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.14.0",
"@handfish/hygen": "^6.1.6",
"@nestjs/cli": "^10.4.5",
"@nestjs/testing": "^10.4.6",
"@stylistic/eslint-plugin-ts": "^2.10.1",
"@swc/cli": "^0.5.0",
"@swc/core": "^1.7.42",
"@swc/plugin-transform-imports": "^4.0.0",
"@eslint/compat": "^1.2.4",
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.17.0",
"@nestjs/cli": "^10.4.9",
"@nestjs/testing": "^10.4.15",
"@stylistic/eslint-plugin-ts": "^2.12.1",
"@swc/cli": "^0.5.2",
"@swc/core": "^1.10.1",
"@swc/plugin-transform-imports": "^6.0.2",
"@types/bcrypt": "^5.0.2",
"@types/cache-manager-redis-store": "^2.0.4",
"@types/compression": "^1.7.5",
Expand All @@ -102,24 +101,24 @@
"@types/supertest": "^6.0.2",
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^8.12.2",
"@typescript-eslint/parser": "^8.12.2",
"@typescript-eslint/parser": "^8.18.2",
"@vuepress/client": "2.0.0-rc.2",
"cross-env": "^7.0.3",
"esbuild": "^0.24.0",
"esbuild": "^0.24.2",
"eslint": "^9.14.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-canonical": "^5.0.0",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-canonical": "^5.1.2",
"eslint-plugin-deprecation": "^3.0.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-import-helpers": "^2.0.1",
"eslint-plugin-n": "^17.12.0",
"eslint-plugin-no-secrets": "^1.0.2",
"eslint-plugin-n": "^17.15.1",
"eslint-plugin-no-secrets": "^1.1.2",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-promise": "^7.1.0",
"eslint-plugin-promise": "^7.2.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-sonarjs": "^2.0.4",
"eslint-plugin-unicorn": "^56.0.0",
"eslint-plugin-sonarjs": "^3.0.1",
"eslint-plugin-unicorn": "^56.0.1",
"gh-pages": "^6.2.0",
"husky": "^9.1.6",
"jest": "^29.7.0",
Expand All @@ -129,10 +128,9 @@
"supertest": "^7.0.0",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"ts-node-dev": "^2.0.0",
"tsx": "^4.19.2",
"typescript": "^5.6.3",
"typescript-eslint": "^8.12.2",
"typescript-eslint": "^8.18.2",
"vue": "^3.5.12"
},
"lint-staged": {
Expand All @@ -148,10 +146,13 @@
"ts"
],
"rootDir": "src",
"testRegex": ".spec.ts$",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
},
Expand Down
Loading

0 comments on commit 45aa616

Please sign in to comment.