From d0cb393bfd51afcf84d6c51bbec9981691d4c96f Mon Sep 17 00:00:00 2001 From: Khushal Date: Tue, 15 Oct 2024 12:52:45 +0530 Subject: [PATCH] Feature: Add lint and formatter dependencies in the project --- client/eslint.config.mjs | 15 +++++++++++++++ client/src/Components/CCHeader.js | 2 +- client/src/Components/CCHeaderDark.js | 4 ++-- client/src/Components/CCHeaderDarkPlus.js | 4 ++-- client/src/Components/CCHeaderPlus.js | 4 ++-- client/src/Components/CompetitionItem.js | 2 +- client/src/Components/LeftMenu.js | 4 ++-- client/src/Components/LeftMenuDark.js | 4 ++-- client/src/Components/MobileNavbar.js | 2 +- client/src/Components/RightMenu.js | 4 ++-- client/src/Components/SimpleFooter.js | 2 +- client/src/Components/tempCodeRunnerFile.js | 1 - client/src/Screen/AboutUs.js | 2 +- client/src/Screen/AllBlogs.js | 6 +++--- client/src/Screen/BlogAutoCode.js | 2 +- client/src/Screen/BlogPage.js | 6 +++--- client/src/Screen/CodingCompetitions.js | 2 +- client/src/Screen/ContestAnalysis.js | 8 ++++---- client/src/Screen/ContestArchive.js | 6 +++--- client/src/Screen/ContributeSite.js | 2 +- client/src/Screen/ContributorWork.js | 2 +- client/src/Screen/Contributors.js | 2 +- client/src/Screen/CoreSubjectsTracker.js | 6 +++--- client/src/Screen/CreateCustomCodingSheets.js | 4 ++-- client/src/Screen/CreateCustomCodingSheetsEdit.js | 6 +++--- client/src/Screen/InterviewSummaries.js | 2 +- client/src/Screen/LandingPage2.js | 12 ++++++------ client/src/Screen/LandingPage3.js | 6 +++--- client/src/Screen/Opportunities.js | 2 +- client/src/Screen/Profile.js | 4 ++-- client/src/Screen/Resources copy.js | 10 +++++----- client/src/Screen/Resources.js | 10 +++++----- client/src/Screen/SelectedProfiles.js | 10 +++++----- client/src/Screen/WorkWithUs.js | 2 +- client/src/Screen/showdownServer.js | 2 +- 35 files changed, 88 insertions(+), 74 deletions(-) create mode 100644 client/eslint.config.mjs diff --git a/client/eslint.config.mjs b/client/eslint.config.mjs new file mode 100644 index 00000000..aa5d2748 --- /dev/null +++ b/client/eslint.config.mjs @@ -0,0 +1,15 @@ +import globals from "globals"; +import pluginJs from "@eslint/js"; +import pluginReact, { rules } from "eslint-plugin-react"; + + +export default [ + {files: ["**/*.{js,mjs,cjs,jsx}"]}, + {languageOptions: { globals: globals.browser }}, + {"rules": { + "no-unused-vars": "warn", + "no-invalid-this": "error" + }}, + pluginJs.configs.recommended, + pluginReact.configs.flat.recommended, +]; \ No newline at end of file diff --git a/client/src/Components/CCHeader.js b/client/src/Components/CCHeader.js index e03e06a3..df2547bf 100644 --- a/client/src/Components/CCHeader.js +++ b/client/src/Components/CCHeader.js @@ -74,7 +74,7 @@ const CCHeader = () => {
- +
diff --git a/client/src/Components/CCHeaderDark.js b/client/src/Components/CCHeaderDark.js index 92212ff7..0437b99d 100644 --- a/client/src/Components/CCHeaderDark.js +++ b/client/src/Components/CCHeaderDark.js @@ -53,7 +53,7 @@ const CCHeaderDark = () => { */} - +
Master complete DSA as a beginner absolutely free with Love Babbar
Promotion
@@ -76,7 +76,7 @@ const CCHeaderDark = () => {
- +
diff --git a/client/src/Components/CCHeaderDarkPlus.js b/client/src/Components/CCHeaderDarkPlus.js index b633136f..29972731 100644 --- a/client/src/Components/CCHeaderDarkPlus.js +++ b/client/src/Components/CCHeaderDarkPlus.js @@ -83,7 +83,7 @@ const CCHeaderDarkPlus = ({ needDarkMode, toggleDarkMode }) => { */} - +
We're restructuring our website. Next.js frontend developers , send your profile!
Internship
@@ -106,7 +106,7 @@ const CCHeaderDarkPlus = ({ needDarkMode, toggleDarkMode }) => {
- +
diff --git a/client/src/Components/CCHeaderPlus.js b/client/src/Components/CCHeaderPlus.js index 8af606c2..c890edd1 100644 --- a/client/src/Components/CCHeaderPlus.js +++ b/client/src/Components/CCHeaderPlus.js @@ -79,7 +79,7 @@ const CCHeaderDarkPlus = ({needDarkMode, toggleDarkMode}) => { showModelCoffee ? : <> } - +
We're restructuring our website. Next.js frontend developers , send your profile!
Internship
@@ -99,7 +99,7 @@ const CCHeaderDarkPlus = ({needDarkMode, toggleDarkMode}) => { diff --git a/client/src/Components/CompetitionItem.js b/client/src/Components/CompetitionItem.js index d18b1cee..d1ee788e 100644 --- a/client/src/Components/CompetitionItem.js +++ b/client/src/Components/CompetitionItem.js @@ -80,7 +80,7 @@ export default function CompetitionItem({ item, index }) {
{index + 1}
{platform}
diff --git a/client/src/Components/LeftMenu.js b/client/src/Components/LeftMenu.js index 2aece577..889ee947 100644 --- a/client/src/Components/LeftMenu.js +++ b/client/src/Components/LeftMenu.js @@ -140,8 +140,8 @@ const LeftMenu = ({ marked }) => {
{/* Algolisted Business */} - Download Jobs Notifier - Report an Issue + Download Jobs Notifier + Report an Issue { diff --git a/client/src/Components/LeftMenuDark.js b/client/src/Components/LeftMenuDark.js index c8fe7b3c..3a11c7aa 100644 --- a/client/src/Components/LeftMenuDark.js +++ b/client/src/Components/LeftMenuDark.js @@ -132,8 +132,8 @@ const LeftMenuDark = ({ marked }) => {
{/* Algolisted Business */} - Download Jobs Notifier - Report an Issue + Download Jobs Notifier + Report an Issue { diff --git a/client/src/Components/MobileNavbar.js b/client/src/Components/MobileNavbar.js index f9e34ce9..26726947 100644 --- a/client/src/Components/MobileNavbar.js +++ b/client/src/Components/MobileNavbar.js @@ -44,7 +44,7 @@ const MobileDownMenu = () => { SDE Coding Sheets {/* Selected Profiles */} All Internship & Job Opportunities - Visit Github for Algolisted + Visit Github for Algolisted ) : (<>) diff --git a/client/src/Components/RightMenu.js b/client/src/Components/RightMenu.js index c51fd3fc..0ffbb542 100644 --- a/client/src/Components/RightMenu.js +++ b/client/src/Components/RightMenu.js @@ -47,13 +47,13 @@ const RightMenu = ({ blogid, blogname, ResourceType }) => {
{ data[blogid].authorImageLink.map((item, index) => { - return (); + return (); }) }
diff --git a/client/src/Components/SimpleFooter.js b/client/src/Components/SimpleFooter.js index 1d5eb26b..0667c177 100644 --- a/client/src/Components/SimpleFooter.js +++ b/client/src/Components/SimpleFooter.js @@ -11,7 +11,7 @@ const SimpleFooter = () => { Verify Contributors Privacy Policies Disclaimer - Figma + Figma {/*
Open Source project - beta version - a Nayak production diff --git a/client/src/Components/tempCodeRunnerFile.js b/client/src/Components/tempCodeRunnerFile.js index 9d45956d..e69de29b 100644 --- a/client/src/Components/tempCodeRunnerFile.js +++ b/client/src/Components/tempCodeRunnerFile.js @@ -1 +0,0 @@ -RouterLink \ No newline at end of file diff --git a/client/src/Screen/AboutUs.js b/client/src/Screen/AboutUs.js index 5ef0c857..667646b4 100644 --- a/client/src/Screen/AboutUs.js +++ b/client/src/Screen/AboutUs.js @@ -36,7 +36,7 @@ const AboutUs = () => { Thank you for choosing Algolisted, and we look forward to supporting you on your journey to success.

- Visit my Linkedin : Click Here + Visit my Linkedin : Click Here

{/*

diff --git a/client/src/Screen/AllBlogs.js b/client/src/Screen/AllBlogs.js index 22a904f8..2634f828 100644 --- a/client/src/Screen/AllBlogs.js +++ b/client/src/Screen/AllBlogs.js @@ -71,7 +71,7 @@ return ( {item.title}

{item.desc}
- +
Contribution by {item.author[0]} {item.author.length > 1 ? <>+ {item.author.length - 1} others : <>}
@@ -115,7 +115,7 @@ return (
Under Development : Our primary goal is to streamline the procedure of searching for a company's name, extracting approximately 25-50 recent and pertinent interview experiences, and utilizing this as input for our machine learning model. Subsequently, our model produces results, which we store for a 30-day period. Consequently, you consistently receive the most up-to-date information, ensuring that you are always provided with current data instead of outdated information. Have an idea in this feature {" "} - click here + click here
@@ -138,7 +138,7 @@ return ( {item.title}
{item.desc}
- +
Contribution by {item.author[0]} {item.author.length > 1 ? <>+ {item.author.length - 1} others : <>}
diff --git a/client/src/Screen/BlogAutoCode.js b/client/src/Screen/BlogAutoCode.js index 23bf05b2..99635d74 100644 --- a/client/src/Screen/BlogAutoCode.js +++ b/client/src/Screen/BlogAutoCode.js @@ -75,7 +75,7 @@ const BlogAutoCode = () => { showCodeFile ? "Hide raw HTML Code" : "Show raw HTML Code" } - Report an Issue + Report an Issue { showCodeFile ? ( diff --git a/client/src/Screen/BlogPage.js b/client/src/Screen/BlogPage.js index a9bcae8a..55562398 100644 --- a/client/src/Screen/BlogPage.js +++ b/client/src/Screen/BlogPage.js @@ -64,19 +64,19 @@ const BlogPage = () => {
Blog Contributors
- This blog is has being written by Atanu Nayak and a lot of resources are contributed + This blog is has being written by Atanu Nayak and a lot of resources are contributed by the community.
{ data[blogid].authorImageLink.map((item, index) => { - return (); + return (); }) }
diff --git a/client/src/Screen/CodingCompetitions.js b/client/src/Screen/CodingCompetitions.js index c9e6b06d..f0439011 100644 --- a/client/src/Screen/CodingCompetitions.js +++ b/client/src/Screen/CodingCompetitions.js @@ -266,7 +266,7 @@ const CodingCompetitions = () => { {/* */} - + {/* */} diff --git a/client/src/Screen/ContestAnalysis.js b/client/src/Screen/ContestAnalysis.js index 76440c73..8a9f81b6 100644 --- a/client/src/Screen/ContestAnalysis.js +++ b/client/src/Screen/ContestAnalysis.js @@ -557,7 +557,7 @@ const ContestAnalysis = () => { {rankings.map((ranking, index) => (
  • @@ -575,7 +575,7 @@ const ContestAnalysis = () => { If your username doesn't align with your country, it could be because you haven't specified your country in your LeetCode account settings. Visit the following URL:{" "} - + https://leetcode.com/profile/ {" "} and update your location information. @@ -614,7 +614,7 @@ const ContestAnalysis = () => { {eachuser.username} @@ -648,7 +648,7 @@ const ContestAnalysis = () => { {eachuser.username} diff --git a/client/src/Screen/ContestArchive.js b/client/src/Screen/ContestArchive.js index 606d20b8..11a43f07 100644 --- a/client/src/Screen/ContestArchive.js +++ b/client/src/Screen/ContestArchive.js @@ -601,10 +601,10 @@ const ContestArchive = () => {
    {contestData.contest_name}
    - + - + {notes.includes(contestData.contest_name) ? @@ -631,7 +631,7 @@ const ContestArchive = () => { { onClickShared(problem.name, contestData.contest_name) }} checked={isQuestionSolved(contestData.contest_name, problem.name)} /> Problem Unsolved - {String.fromCharCode(65 + problemIndex)}. {problem.name} + {String.fromCharCode(65 + problemIndex)}. {problem.name}
    { showTags ? ( diff --git a/client/src/Screen/ContributeSite.js b/client/src/Screen/ContributeSite.js index e87bbc5d..d0996424 100644 --- a/client/src/Screen/ContributeSite.js +++ b/client/src/Screen/ContributeSite.js @@ -139,7 +139,7 @@ const ContributeSite = () => {
    Open Source Project, by - Atanu Nayak and Community + Atanu Nayak and Community
    diff --git a/client/src/Screen/ContributorWork.js b/client/src/Screen/ContributorWork.js index b419e9a3..97bf3a9a 100644 --- a/client/src/Screen/ContributorWork.js +++ b/client/src/Screen/ContributorWork.js @@ -120,7 +120,7 @@ const ContributorWork = () => {
    diff --git a/client/src/Screen/Contributors.js b/client/src/Screen/Contributors.js index 3513d69f..07c81147 100644 --- a/client/src/Screen/Contributors.js +++ b/client/src/Screen/Contributors.js @@ -36,7 +36,7 @@ const Contributors = () => { { contributorsList != null && contributorsList.map((item, index) => { return ( - + ) diff --git a/client/src/Screen/CoreSubjectsTracker.js b/client/src/Screen/CoreSubjectsTracker.js index f4ebb110..ac24f6c0 100644 --- a/client/src/Screen/CoreSubjectsTracker.js +++ b/client/src/Screen/CoreSubjectsTracker.js @@ -229,7 +229,7 @@ const CoreSubjectsTracker = () => {

    - + Contribute Topics or Questions
    Open Sourced 🚀
    @@ -272,7 +272,7 @@ const CoreSubjectsTracker = () => { { resources.map((item, index) => { return ( -
    + ) @@ -357,7 +357,7 @@ const CoreSubjectsTracker = () => {
    diff --git a/client/src/Screen/CreateCustomCodingSheets.js b/client/src/Screen/CreateCustomCodingSheets.js index 31dca051..ceffd37e 100644 --- a/client/src/Screen/CreateCustomCodingSheets.js +++ b/client/src/Screen/CreateCustomCodingSheets.js @@ -310,7 +310,7 @@ const CreateCustomCodingSheets = ({setUserGlobal}) => { {userSheet.length > 0 && userSheet.map((sheet) => (
    - + {sheet.sheetName} {" "}
    {sheet.sheetDesc}
    @@ -325,7 +325,7 @@ const CreateCustomCodingSheets = ({setUserGlobal}) => { {formatDate(sheet.lastUpdated)}
    - Edit Sheet Content {'>'} + Edit Sheet Content {'>'}
  • ))} diff --git a/client/src/Screen/CreateCustomCodingSheetsEdit.js b/client/src/Screen/CreateCustomCodingSheetsEdit.js index 498122bc..17f3630f 100644 --- a/client/src/Screen/CreateCustomCodingSheetsEdit.js +++ b/client/src/Screen/CreateCustomCodingSheetsEdit.js @@ -398,7 +398,7 @@ const CreateCustomCodingSheetsEdit = (userGlobal) => { {filters} */}
    -

    Your generated link is

    +

    Your generated link is

    setShowModal(true)}> {exportingSheet ? ( <>Exporting... @@ -450,7 +450,7 @@ const CreateCustomCodingSheetsEdit = (userGlobal) => { {problemData.quesName} {status === "scrapping" ? ( @@ -535,7 +535,7 @@ const CreateCustomCodingSheetsEdit = (userGlobal) => { {problemData.quesName} diff --git a/client/src/Screen/InterviewSummaries.js b/client/src/Screen/InterviewSummaries.js index 2eead622..6be7cdf6 100644 --- a/client/src/Screen/InterviewSummaries.js +++ b/client/src/Screen/InterviewSummaries.js @@ -110,7 +110,7 @@ const InterviewSummaries = () => { feature{" "} click here diff --git a/client/src/Screen/LandingPage2.js b/client/src/Screen/LandingPage2.js index 7488ab41..0e94643c 100644 --- a/client/src/Screen/LandingPage2.js +++ b/client/src/Screen/LandingPage2.js @@ -129,12 +129,12 @@ const LandingPage2 = () => {
    - Start Contributing + Start Contributing

    Our Contributors

    { contributorsList != null && contributorsList.map((item, index) => { - return + return }) @@ -325,7 +325,7 @@ const LandingPage2 = () => {
    - Start Contributing + Start Contributing

    Technologies Used

    @@ -350,7 +350,7 @@ const LandingPage2 = () => { contributorsList != null && contributorsList.map((item, index) => { return ( - + @@ -414,8 +414,8 @@ const LandingPage2 = () => { Founder
    diff --git a/client/src/Screen/LandingPage3.js b/client/src/Screen/LandingPage3.js index c4524fc4..239991a8 100644 --- a/client/src/Screen/LandingPage3.js +++ b/client/src/Screen/LandingPage3.js @@ -248,7 +248,7 @@ const LandingPage3 = () => {
    Our website is a testament to the dedication and contributions of our amazing open source community. Every member has put in their best efforts to create and improve the site. If you want to resolve an issue or suggest a new feature, we encourage you to participate in the open source process by creating an issue.
    - Start Contributing + Start Contributing

    Technologies Used

    @@ -272,7 +272,7 @@ const LandingPage3 = () => {
    { contributorsList != null && contributorsList.map((item, index) => { - return + return }) @@ -291,7 +291,7 @@ const LandingPage3 = () => {
    Elevate your digital presence with Algolisted's expertise in scalable web and ML solutions, next-gen applications, UI excellence, SEO prowess, and AI-driven feature enhancements.
    - Get Started + Get Started

    You are in Good Company

    diff --git a/client/src/Screen/Opportunities.js b/client/src/Screen/Opportunities.js index 3845d396..381d4e45 100644 --- a/client/src/Screen/Opportunities.js +++ b/client/src/Screen/Opportunities.js @@ -519,7 +519,7 @@ const Opportunities = () => {
    {++count}
    - + {item.job_title}
    diff --git a/client/src/Screen/Profile.js b/client/src/Screen/Profile.js index bacfcdc5..31168811 100644 --- a/client/src/Screen/Profile.js +++ b/client/src/Screen/Profile.js @@ -180,8 +180,8 @@ const Profile = () => { Notable Pull Requests :

    diff --git a/client/src/Screen/Resources copy.js b/client/src/Screen/Resources copy.js index 8d2eef5d..8d0c9a44 100644 --- a/client/src/Screen/Resources copy.js +++ b/client/src/Screen/Resources copy.js @@ -110,10 +110,10 @@ const Resources = () => { if (filter == "All Resources" || item.mainTag == filter) { return (
    - + - {item.title} + {item.title}
    {item.description}
    {item.mainTag}
    @@ -190,10 +190,10 @@ const Resources = () => { ):(<>) }
    - + - {item.title} + {item.title}
    {item.description}
    @@ -202,7 +202,7 @@ const Resources = () => {
    {item.type}
    diff --git a/client/src/Screen/Resources.js b/client/src/Screen/Resources.js index f0e95193..dd6bed87 100644 --- a/client/src/Screen/Resources.js +++ b/client/src/Screen/Resources.js @@ -110,10 +110,10 @@ const Resources = () => { if (filter == "All Resources" || item.mainTag == filter) { return (
    - + - {item.title} + {item.title}
    {item.description}
    {item.mainTag}
    @@ -175,10 +175,10 @@ const Resources = () => { ):(<>) }
    - + - {item.title} + {item.title}
    {item.description}
    @@ -187,7 +187,7 @@ const Resources = () => {
    {item.type}
    diff --git a/client/src/Screen/SelectedProfiles.js b/client/src/Screen/SelectedProfiles.js index 271ddc29..f99d05fb 100644 --- a/client/src/Screen/SelectedProfiles.js +++ b/client/src/Screen/SelectedProfiles.js @@ -149,7 +149,7 @@ const SelectedProfiles = () => { { setImageValue(sampleImage2); setShowImageModel(true); }} />

    - + Add resume @@ -235,7 +235,7 @@ const SelectedProfiles = () => { { setImageValue(sampleImage2); setShowImageModel(true); }} />

    - + Add resume @@ -267,10 +267,10 @@ const SelectedProfiles = () => {
    ); diff --git a/client/src/Screen/WorkWithUs.js b/client/src/Screen/WorkWithUs.js index c585bd1f..b32d560c 100644 --- a/client/src/Screen/WorkWithUs.js +++ b/client/src/Screen/WorkWithUs.js @@ -151,7 +151,7 @@ const WorkWithUs = () => {
    Open Source Project, by - Atanu Nayak and Community + Atanu Nayak and Community
    diff --git a/client/src/Screen/showdownServer.js b/client/src/Screen/showdownServer.js index a6d9e307..243c530b 100644 --- a/client/src/Screen/showdownServer.js +++ b/client/src/Screen/showdownServer.js @@ -30,7 +30,7 @@ const ShowdownServer = () => {
    - For the developers working on this feature : Our goal is to develop a functionality akin to skribbl.io. In essence, a user will be able to initiate a server without any login, modify settings within it, and subsequently share a link with their friends for them to join. + For the developers working on this feature : Our goal is to develop a functionality akin to skribbl.io. In essence, a user will be able to initiate a server without any login, modify settings within it, and subsequently share a link with their friends for them to join.