UCF-CEN-5016 / NodeBB-UCF

This is a class specific fork of the NodeBB project for CEN 5016 taught in the Spring 2024 semester at UCF.
GNU General Public License v3.0
0 stars 74 forks source link

Converting src/middleware/helpers.js from JS to TS #182

Closed VinayManukonda3321 closed 7 months ago

VinayManukonda3321 commented 7 months ago

All my files has CRLF (Carriage Return + Line Feed) line endings, while the linter expects LF (Line Feed) line endings so to fix this issue I have changed "LF" (Unix) as the line ending format. After changing the line ending format the npm run lint ran successfully without any errors.

The following pull request shows "Showing 51,008 changed files with 8,125,991 additions and 72 deletions" It might be because of changing the line ending format.

The changes I made are the following:

  1. Created a new ts file named helper.ts in src/middleware
  2. Made some minor changes in the following files src/controllers 404.js errors.js helpers.js src/middleware admin.js assert.js header.js headers.js helpers.js(changes are automatically made) index.js maintenance.js render.js uploads.js user.js