Skip to content

Commit

Permalink
chore: upgrade eslint to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Jan 20, 2025
1 parent 415fa4b commit 0342ba7
Show file tree
Hide file tree
Showing 6 changed files with 1,621 additions and 2,608 deletions.
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default tseslint.config(
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/require-await': 'warn',
'@typescript-eslint/no-misused-promises': 'warn',
'@typescript-eslint/no-require-imports': 'off',
},
},
);
2 changes: 1 addition & 1 deletion lib/loaders/express.loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class ExpressLoader extends AbstractLoader {
const express = loadPackage('express', 'ServeStaticModule', () =>
require('express')
);
optionsArr.forEach(options => {
optionsArr.forEach((options) => {
options.renderPath = options.renderPath || DEFAULT_RENDER_PATH;
const clientPath = options.rootPath || DEFAULT_ROOT_PATH;
const indexFilePath = this.getIndexFilePath(clientPath);
Expand Down
2 changes: 1 addition & 1 deletion lib/loaders/noop.loader.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-empty-function */

import { Injectable } from '@nestjs/common';
import { AbstractHttpAdapter } from '@nestjs/core';
import { ServeStaticModuleOptions } from '../interfaces/serve-static-options.interface';
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/is-route-excluded.util.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as pathToRegexp from 'path-to-regexp';

export const isRouteExcluded = (req: any, paths: string[] = []) => {
return paths.some(path => {
return paths.some((path) => {
const re = pathToRegexp(path);
const queryParamsIndex = req.originalUrl.indexOf('?');
const pathname =
Expand Down
Loading

0 comments on commit 0342ba7

Please sign in to comment.