Skip to content

Commit

Permalink
Change linter rule to match for file names with numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
CeEv committed Jan 21, 2025
1 parent f13549e commit d90b433
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ module.exports = {
'class-methods-use-this': 'off',
'no-param-reassign': 'off',
'no-underscore-dangle': 'off',
'filename-rules/match': [1, 'kebabcase'],
'filename-rules/match': [2, /^([a-z0-9]+-)*[a-z]+(?:\..*)?$/],
'require-await': 'warn',
'@typescript-eslint/unbound-method': 'error',
'@typescript-eslint/no-non-null-assertion': 'warn',
Expand Down
2 changes: 1 addition & 1 deletion apps/server/src/apps/server.app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async function bootstrap(): Promise<void> {

// logger middleware for deprecated paths
// TODO remove when all calls to the server are migrated
const logDeprecatedPaths = (req: express.Request, res: express.Response, next: express.NextFunction) => {
const logDeprecatedPaths = (req: express.Request, res: express.Response, next: express.NextFunction): void => {
legacyLogger.error(req.path, 'DEPRECATED-PATH');
next();
};
Expand Down

0 comments on commit d90b433

Please sign in to comment.