diff --git a/.eslintrc.cjs b/.eslintrc.cjs deleted file mode 100644 index d83ae1c6..00000000 --- a/.eslintrc.cjs +++ /dev/null @@ -1,52 +0,0 @@ -// @ts-check -// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports -const { defineConfig } = require("eslint-define-config"); - -module.exports = defineConfig({ - parser: "@typescript-eslint/parser", - parserOptions: { - project: "tsconfig.json", - }, - ignorePatterns: ["migrations", "src/generated", "**/*.spec.ts", "**/*.e2e.ts"], // optimize this - extends: ["@rubiin/eslint-config-ts"], - root: true, - settings: { - "import/resolver": { - typescript: { - alwaysTryTypes: true, - project: "./tsconfig.json", - }, - }, - }, - rules: { - "unicorn/prefer-module": "off", - "@typescript-eslint/no-floating-promises": "off", - "no-useless-constructor": "off", // optimize this - "@typescript-eslint/require-await": "off", // optimize this - "@typescript-eslint/no-unsafe-assignment": "off", // optimize this - "@typescript-eslint/no-unsafe-member-access": "off", // optimize this - "unicorn/prefer-top-level-await": "off", - "max-nested-callbacks": "off", // rxjs is nested - "@typescript-eslint/no-misused-promises": [ - "error", - { - checksVoidReturn: false, - }, - ], - "unicorn/prevent-abbreviations": [ - "error", - { - ignore: [ - "\\.e2e*", - "\\.spec*", - "\\.decorator*", - "\\*idx*", - ], - allowList: { - ProcessEnv: true, - UUIDParam: true, - }, - }, - ], - }, -}); diff --git a/package.json b/package.json index 2620b2d0..69014b70 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "scripts": { "build": "nest build", "lint": "eslint '{src,test}/**/*.ts' --cache", - "lint:fix": "eslint '{src,test}/**/*.ts' --cache --fix --debug", + "lint:fix": "eslint '{src,test}/**/*.ts' --cache --fix", "orm": "npx mikro-orm", "prebuild": "rimraf dist", "sample": "cd env; npx sample-env --env .env.dev", @@ -149,7 +149,7 @@ "@nestjs/cli": "10.1.18", "@nestjs/schematics": "10.0.2", "@nestjs/testing": "10.2.6", - "@rubiin/eslint-config": "^1.8.6-beta.9", + "@rubiin/eslint-config": "^1.8.6-beta.10", "@rubiin/tsconfig": "^1.1.0", "@sentry/types": "^7.72.0", "@side/jest-runtime": "^1.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bcbbc5e3..ed2c07fa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -284,8 +284,8 @@ devDependencies: specifier: 10.2.6 version: 10.2.6(@nestjs/common@10.2.6)(@nestjs/core@10.2.6)(@nestjs/platform-express@10.2.6) '@rubiin/eslint-config': - specifier: ^1.8.6-beta.9 - version: 1.8.6-beta.9(eslint@8.50.0)(typescript@5.2.2)(vitest@0.34.6) + specifier: ^1.8.6-beta.10 + version: 1.8.6-beta.10(eslint@8.50.0)(typescript@5.2.2)(vitest@0.34.6) '@rubiin/tsconfig': specifier: ^1.1.0 version: 1.1.0 @@ -3625,8 +3625,8 @@ packages: '@redis/client': 1.5.11 dev: false - /@rubiin/eslint-config@1.8.6-beta.9(eslint@8.50.0)(typescript@5.2.2)(vitest@0.34.6): - resolution: {integrity: sha512-xyGrLfn/xk23mTQ0jp33ic4BmEviLoToRdw1DEnWeVRj4JAZSVmBw4WmPbt48Kk7pt9vSP33PM67g0dgdc6fbA==} + /@rubiin/eslint-config@1.8.6-beta.10(eslint@8.50.0)(typescript@5.2.2)(vitest@0.34.6): + resolution: {integrity: sha512-NMkeRC3aTIkCoVEQfTy/oZAzjdIXk6XWYWJuPTOcKsVUdWR1AVgzVwQB97EO0vX8zLVGXkGM42BYkrzOTNU12Q==} peerDependencies: eslint: '>=8.0.0' dependencies: