Skip to content

Commit

Permalink
Merge pull request #43 from fagbokforlaget/EP-6151-nestjs-mongoose-pa…
Browse files Browse the repository at this point in the history
…ginate-maintenance

Ep 6151 nestjs mongoose paginate maintenance
  • Loading branch information
espresse authored Oct 8, 2024
2 parents 07e807d + 2a898dc commit 3945db4
Show file tree
Hide file tree
Showing 7 changed files with 806 additions and 728 deletions.
23 changes: 0 additions & 23 deletions .eslintrc.js

This file was deleted.

46 changes: 46 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import typescriptEslintEslintPlugin from "@typescript-eslint/eslint-plugin";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [
...compat.extends("plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"),
{
plugins: {
"@typescript-eslint": typescriptEslintEslintPlugin,
},

languageOptions: {
globals: {
...globals.node,
...globals.jest,
},

parser: tsParser,
ecmaVersion: 5,
sourceType: "module",

parserOptions: {
project: "tsconfig.json",
},
},

rules: {
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
},
},
];
Loading

0 comments on commit 3945db4

Please sign in to comment.