Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add lint and formatter dependencies in the project #276

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions client/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -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,
];
2 changes: 1 addition & 1 deletion client/src/Components/CCHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const CCHeader = () => {
</div>
</div>
<div className="icon-box">
<a href='https://github.com/Nayaker/Algorithmist/' target={"_blank"}>
<a href='https://github.com/Nayaker/Algorithmist/' target={"_blank"} rel="noreferrer">
<GitHubIcon/>
</a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions client/src/Components/CCHeaderDark.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const CCHeaderDark = () => {
<input type="text" className="input" placeholder='Search for algorithm or datastructure'/>
</div> */}

<a className="nav-adv" href='https://bit.ly/3t1AktU' target={"_blank"}>
<a className="nav-adv" href='https://bit.ly/3t1AktU' target={"_blank"} rel="noreferrer">
<div className="text">Master complete DSA as a beginner <b>absolutely free</b> with <b>Love Babbar</b></div>
<div className="promotion-tag linear-gradient">Promotion</div>
</a>
Expand All @@ -76,7 +76,7 @@ const CCHeaderDark = () => {
<Brightness4Icon />
</div>
<div className="icon-box">
<a href='https://github.com/Nayaker/Algorithmist/' target={"_blank"}>
<a href='https://github.com/Nayaker/Algorithmist/' target={"_blank"} rel="noreferrer">
<GitHubIcon/>
</a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions client/src/Components/CCHeaderDarkPlus.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const CCHeaderDarkPlus = ({ needDarkMode, toggleDarkMode }) => {
<input type="text" className="input" placeholder='Search for algorithm or datastructure'/>
</div> */}

<a className="nav-adv" href="mailto:[email protected]" target={"_blank"}>
<a className="nav-adv" href="mailto:[email protected]" target={"_blank"} rel="noreferrer">
<div className="text">We're restructuring our website. <b>Next.js frontend developers</b> , send your profile! <CallMadeIcon /> </div>
<div className="promotion-tag linear-gradient">Internship</div>
</a>
Expand All @@ -106,7 +106,7 @@ const CCHeaderDarkPlus = ({ needDarkMode, toggleDarkMode }) => {
<Brightness4Icon />
</div>
<div className="icon-box">
<a href='https://github.com/Nayaker/Algorithmist/' target={"_blank"}>
<a href='https://github.com/Nayaker/Algorithmist/' target={"_blank"} rel="noreferrer">
<GitHubIcon />
</a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions client/src/Components/CCHeaderPlus.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const CCHeaderDarkPlus = ({needDarkMode, toggleDarkMode}) => {
showModelCoffee ? <BuyMeACoffee showModelCoffee={showModelCoffee} setshowModelCoffee={setshowModelCoffee}/> : <></>
}

<a className="nav-adv" href="mailto:[email protected]" target={"_blank"}>
<a className="nav-adv" href="mailto:[email protected]" target={"_blank"} rel="noreferrer">
<div className="text">We're restructuring our website. <b>Next.js frontend developers</b> , send your profile! <CallMadeIcon/> </div>
<div className="promotion-tag linear-gradient">Internship</div>
</a>
Expand All @@ -99,7 +99,7 @@ const CCHeaderDarkPlus = ({needDarkMode, toggleDarkMode}) => {
<Brightness4Icon/>
</div>
<div className="icon-box" >
<a href='https://github.com/Nayaker/Algorithmist/' target={"_blank"}>
<a href='https://github.com/Nayaker/Algorithmist/' target={"_blank"} rel="noreferrer">
<GitHubIcon/>
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion client/src/Components/CompetitionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function CompetitionItem({ item, index }) {
<div className="hash">{index + 1}</div>
<div className="platform">{platform}</div>
<div className="contest">
<a href={`${competition_link}`} target="_blank">
<a href={`${competition_link}`} target="_blank" rel="noreferrer">
{competition_name}
</a>
</div>
Expand Down
17 changes: 2 additions & 15 deletions client/src/Components/LeftMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,21 +153,8 @@ const LeftMenu = ({ marked }) => {
<div className="line"></div>
</div>
{/* <a href='https://business.algolisted.com/' target={"_blank"} className="link">Algolisted Business<CallMadeIcon/></a> */}
<a
href="https://play.google.com/store/apps/"
target={"_blank"}
className="link"
>
Download Jobs Notifier
<CallMadeIcon />
</a>
<a
href="https://github.com/Nayaker/Algorithmist/"
target={"_blank"}
className="link"
>
Report an Issue
</a>
<a href='https://play.google.com/store/apps/' target={"_blank"} className="link" rel="noreferrer">Download Jobs Notifier<CallMadeIcon/></a>
<a href='https://github.com/Nayaker/Algorithmist/' target={"_blank"} className="link" rel="noreferrer">Report an Issue</a>
</div>

{showMoreInfo ? (
Expand Down
17 changes: 2 additions & 15 deletions client/src/Components/LeftMenuDark.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,21 +142,8 @@ const LeftMenuDark = ({ marked }) => {
<div className="line"></div>
</div>
{/* <a href='https://business.algolisted.com/' target={"_blank"} className="link">Algolisted Business<CallMadeIcon/></a> */}
<a
href="https://play.google.com/store/apps/"
target={"_blank"}
className="link"
>
Download Jobs Notifier
<CallMadeIcon />
</a>
<a
href="https://github.com/Nayaker/Algorithmist/"
target={"_blank"}
className="link"
>
Report an Issue
</a>
<a href='https://play.google.com/store/apps/' target={"_blank"} className="link" rel="noreferrer">Download Jobs Notifier<CallMadeIcon/></a>
<a href='https://github.com/Nayaker/Algorithmist/' target={"_blank"} className="link" rel="noreferrer">Report an Issue</a>
</div>

{showMoreInfo ? (
Expand Down
2 changes: 1 addition & 1 deletion client/src/Components/MobileNavbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const MobileDownMenu = () => {
<a href="/coding-sheets/striver-sde-sheet" className="link">SDE Coding Sheets</a>
{/* <a href="/selected-profiles" className="link">Selected Profiles</a> */}
<a href="/opportunities" className="link">All Internship & Job Opportunities</a>
<a href="https://github.com/Nayaker/AlgoListed" target={"_blank"} className="link">Visit Github for Algolisted</a>
<a href="https://github.com/Nayaker/AlgoListed" target={"_blank"} className="link" rel="noreferrer">Visit Github for Algolisted</a>
</div>
</MenuDropDownList>
) : (<></>)
Expand Down
4 changes: 2 additions & 2 deletions client/src/Components/RightMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ const RightMenu = ({ blogid, blogname, ResourceType }) => {
<div className="hold-contributors">
{
data[blogid].authorImageLink.map((item, index) => {
return (<a className="contributor" href={data[blogid].authorLink[index]} target={"_blank"} key={index}><img src={item} alt="" /></a>);
return (<a className="contributor" href={data[blogid].authorLink[index]} target={"_blank"} key={index} rel="noreferrer"><img src={item} alt="" /></a>);
})
}
</div>

<div className="btns">
<a href={`https://github.com/Nayaker/AlgoListed/blob/main/client/src/MarkdownFiles/Blog${blogid}.md`} target={"_blank"} className="full-btn cl-2">Add content to this blog or Report a bug</a>
<a href={`https://github.com/Nayaker/AlgoListed/blob/main/client/src/MarkdownFiles/Blog${blogid}.md`} target={"_blank"} className="full-btn cl-2" rel="noreferrer">Add content to this blog or Report a bug</a>
<button className="full-btn cl-1">Become a Technical Content Writer</button>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion client/src/Components/SimpleFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const SimpleFooter = () => {
<a href="/organisation-information/verify-contributor" className="link">Verify Contributors</a>
<a href="/organisation-information/privacy-policies" className="link">Privacy Policies</a>
<a href="/organisation-information/disclaimer" className="link">Disclaimer</a>
<a href="https://www.figma.com/file/WxQNK11kprjLMxfvESOP8y/Algorithmist-Project?node-id=0%3A1&t=6wm3USW7eS7dBjT3-0" target={"_blank"}>Figma</a>
<a href="https://www.figma.com/file/WxQNK11kprjLMxfvESOP8y/Algorithmist-Project?node-id=0%3A1&t=6wm3USW7eS7dBjT3-0" target={"_blank"} rel="noreferrer">Figma</a>
</div>
{/* <div className="company-info">
<a className="text">Open Source project - beta version - a Nayak production</a>
Expand Down
1 change: 0 additions & 1 deletion client/src/Components/tempCodeRunnerFile.js
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
RouterLink
2 changes: 1 addition & 1 deletion client/src/Screen/AboutUs.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const AboutUs = () => {
Thank you for choosing Algolisted, and we look forward to supporting you on your journey to success.
</p>
<p className="heading-supporter">
Visit my Linkedin : <a href="https://www.linkedin.com/in/atanu-nayak-profile/" target="_blank">Click Here</a>
Visit my Linkedin : <a href="https://www.linkedin.com/in/atanu-nayak-profile/" target="_blank" rel="noreferrer">Click Here</a>
</p>

{/* <p className="heading-supporter">
Expand Down
6 changes: 3 additions & 3 deletions client/src/Screen/AllBlogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ return (
<a className="blog-title">{item.title}</a>
<div className="blog-desc">{item.desc}
<div className="author">
<a href={item.authorLink[0]} target="_blank">
<a href={item.authorLink[0]} target="_blank" rel="noreferrer">
<img src={item.authorImageLink[0]} alt="" />
</a>
<div className="text">Contribution by {item.author[0]} {item.author.length > 1 ? <>+ {item.author.length - 1} others</> : <></>}</div>
Expand Down Expand Up @@ -115,7 +115,7 @@ return (
<div className="text">
<b>Under Development : </b> 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
{" "}
<a href="https://github.com/Nayaker/AlgoListed/issues/new" target={"_blank"}>click here</a>
<a href="https://github.com/Nayaker/AlgoListed/issues/new" target={"_blank"} rel="noreferrer">click here</a>
</div>
</div>

Expand All @@ -138,7 +138,7 @@ return (
<a href={item.link} className="blog-title">{item.title}</a>
<div className="blog-desc">{item.desc}
<div className="author">
<a href={item.authorLink[0]} target="_blank">
<a href={item.authorLink[0]} target="_blank" rel="noreferrer">
<img src={item.authorImageLink[0]} alt="" />
</a>
<div className="text">Contribution by {item.author[0]} {item.author.length > 1 ? <>+ {item.author.length - 1} others</> : <></>}</div>
Expand Down
2 changes: 1 addition & 1 deletion client/src/Screen/BlogAutoCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const BlogAutoCode = () => {
showCodeFile ? "Hide raw HTML Code" : "Show raw HTML Code"
}
</button>
<a href='https://github.com/Nayaker/Algorithmist/issues' target="_blank" className='btn-2'>Report an Issue</a>
<a href='https://github.com/Nayaker/Algorithmist/issues' target="_blank" className='btn-2' rel="noreferrer">Report an Issue</a>

{
showCodeFile ? (
Expand Down
6 changes: 3 additions & 3 deletions client/src/Screen/BlogPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,19 @@ const BlogPage = () => {
<div className="blog-contributors">
<div className="top-title">Blog Contributors</div>
<div className="top-desc">
This blog is has being written by <a href="https://www.linkedin.com/in/atanu-nayak-profile/" target='_blank'>Atanu Nayak</a> and a lot of resources are contributed
This blog is has being written by <a href="https://www.linkedin.com/in/atanu-nayak-profile/" target='_blank' rel="noreferrer">Atanu Nayak</a> and a lot of resources are contributed
by the community.
</div>
<div className="hold-contributors">
{
data[blogid].authorImageLink.map((item, index) => {
return (<a className="contributor" href={data[blogid].authorLink[index]} target={"_blank"} key={index}><img src={item} alt="" /></a>);
return (<a className="contributor" href={data[blogid].authorLink[index]} target={"_blank"} key={index} rel="noreferrer"><img src={item} alt="" /></a>);
})
}
</div>

<div className="btns">
<a href={`https://github.com/Nayaker/AlgoListed/blob/main/client/src/MarkdownFiles/Blog${blogid}.md`} target={"_blank"} className="full-btn cl-2">Add content to this blog or Report a bug</a>
<a href={`https://github.com/Nayaker/AlgoListed/blob/main/client/src/MarkdownFiles/Blog${blogid}.md`} target={"_blank"} className="full-btn cl-2" rel="noreferrer">Add content to this blog or Report a bug</a>
<button className="full-btn cl-1">Become a Technical Content Writer</button>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion client/src/Screen/CodingCompetitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ const CodingCompetitions = () => {

<Sort>
{/* <Tooltip title="Under Development"> */}
<a href="https://docs.google.com/forms/d/e/1FAIpQLSeMogvmpnRIg0MWh50H9xIGq5aSdzH3sbMtRENc_3r7sZpAOw/viewform" target={"_blank"} className="box">
<a href="https://docs.google.com/forms/d/e/1FAIpQLSeMogvmpnRIg0MWh50H9xIGq5aSdzH3sbMtRENc_3r7sZpAOw/viewform" target={"_blank"} className="box" rel="noreferrer">
<AddIcon />
</a>
{/* </Tooltip> */}
Expand Down
8 changes: 4 additions & 4 deletions client/src/Screen/ContestAnalysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ const ContestAnalysis = () => {
{rankings.map((ranking, index) => (
<li className="ranking" key={index}>
<div>
<a target="_blank" href={`https://leetcode.com/${ranking.username}`}>
<a target="_blank" href={`https://leetcode.com/${ranking.username}`} rel="noreferrer">
{ranking.username}
</a>
</div>
Expand All @@ -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:{" "}
<a href="https://leetcode.com/profile/" target="_blank">
<a href="https://leetcode.com/profile/" target="_blank" rel="noreferrer">
https://leetcode.com/profile/
</a>{" "}
and update your location information.
Expand Down Expand Up @@ -614,7 +614,7 @@ const ContestAnalysis = () => {
<a
href={`https://leetcode.com/${eachuser.username}/`}
className="username"
target="_blank"
target="_blank" rel="noreferrer"
>
{eachuser.username}
</a>
Expand Down Expand Up @@ -648,7 +648,7 @@ const ContestAnalysis = () => {
<a
href={`https://leetcode.com/${eachuser.username}/`}
className="username"
target="_blank"
target="_blank" rel="noreferrer"
>
{eachuser.username}
</a>
Expand Down
6 changes: 3 additions & 3 deletions client/src/Screen/ContestArchive.js
Original file line number Diff line number Diff line change
Expand Up @@ -601,10 +601,10 @@ const ContestArchive = () => {
<div className="one-contest-problems-parent" key={index}>
<div className="contest-name">{contestData.contest_name}</div>
<div className="contest-outlinks">
<a href={contestData.contest_link} target='_blank' className="link">
<a href={contestData.contest_link} target='_blank' className="link" rel="noreferrer">
<CallMadeIcon />
</a>
<a href={generateContestAnalysisURL(contestData.contest_name)} target='_blank' className="link">
<a href={generateContestAnalysisURL(contestData.contest_name)} target='_blank' className="link" rel="noreferrer">
<EqualizerIcon />
</a>
{notes.includes(contestData.contest_name) ?
Expand All @@ -631,7 +631,7 @@ const ContestArchive = () => {
<input type="checkbox" onChange={() => { onClickShared(problem.name, contestData.contest_name) }} checked={isQuestionSolved(contestData.contest_name, problem.name)} />
Problem Unsolved
</label>
<a href={problem.problemset_problem_link} target='_blank' className="problem-name">{String.fromCharCode(65 + problemIndex)}. {problem.name}</a>
<a href={problem.problemset_problem_link} target='_blank' className="problem-name" rel="noreferrer">{String.fromCharCode(65 + problemIndex)}. {problem.name}</a>
</div>
{
showTags ? (
Expand Down
2 changes: 1 addition & 1 deletion client/src/Screen/ContributeSite.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const ContributeSite = () => {

<div className="bottom">
Open Source Project, by
<a href="https://www.linkedin.com/in/atanu-nayak-profile/" target="_blank">Atanu Nayak</a> and Community
<a href="https://www.linkedin.com/in/atanu-nayak-profile/" target="_blank" rel="noreferrer">Atanu Nayak</a> and Community
</div>
</PageThreeFooter>
</GrandContainer>
Expand Down
2 changes: 1 addition & 1 deletion client/src/Screen/ContributorWork.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const ContributorWork = () => {
<div className="contributor-info">
<a
href={`https://github.com/${item.user_name}`}
target={"_blank"}
target={"_blank"} rel="noreferrer"
>
<img src={item.avatar_url} alt="" />
</a>
Expand Down
2 changes: 1 addition & 1 deletion client/src/Screen/Contributors.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const Contributors = () => {
{
contributorsList != null && contributorsList.map((item, index) => {
return (
<a className="contributor" href={item.html_url} target={"_blank"} key={index}>
<a className="contributor" href={item.html_url} target={"_blank"} key={index} rel="noreferrer">
<img src={item.avatar_url} alt="" />
</a>
)
Expand Down
Loading