Skip to content

Commit

Permalink
chore(deps): update typescript-eslint monorepo to v8
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] committed Nov 5, 2024
1 parent c538bb7 commit bbd3551
Show file tree
Hide file tree
Showing 8 changed files with 211 additions and 142 deletions.
38 changes: 0 additions & 38 deletions .eslintrc.js

This file was deleted.

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

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 [
{
ignores: ["**/node_modules", "**/dist", "**/coverage", "**/typings"],
},
...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier",
),
{
plugins: {
"@typescript-eslint": typescriptEslint,
},

languageOptions: {
globals: {
...globals.node,
Reflect: true,
},

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

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

rules: {
"new-cap": "off",
},
},
{
files: ["test/**/*.ts"],

languageOptions: {
globals: {
...globals.mocha,
},
},

rules: {
"@typescript-eslint/explicit-function-return-type": "off",
"no-unused-expressions": "off",
"no-magic-numbers": "off",
"@typescript-eslint/unbound-method": "off",
},
},
];
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@
"devDependencies": {
"@commitlint/cli": "19.5.0",
"@commitlint/config-conventional": "19.5.0",
"@eslint/eslintrc": "3.1.0",
"@eslint/js": "9.14.0",
"@fastify/compress": "7.0.3",
"@nestjs/cli": "10.4.5",
"@nestjs/common": "10.4.6",
Expand All @@ -100,13 +102,14 @@
"@types/sinon": "17.0.3",
"@types/sinon-chai": "3.2.12",
"@types/supertest": "6.0.2",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"@typescript-eslint/eslint-plugin": "8.13.0",
"@typescript-eslint/parser": "8.13.0",
"c8": "10.1.2",
"chai": "4.4.1",
"chai-as-promised": "7.1.2",
"eslint": "8.57.1",
"eslint-config-prettier": "9.1.0",
"globals": "15.12.0",
"husky": "9.1.6",
"lint-staged": "15.2.10",
"markdown-toc": "1.2.0",
Expand Down
Loading

0 comments on commit bbd3551

Please sign in to comment.