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

added Inline JS support to ESlint #529

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
30 changes: 30 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"env": {
"browser": true,
"es6": true,
"jquery": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2018
},
"ignorePatterns": ["lib/*","tilt.jquery.js"],
"rules": {
"indent": [
"error",
subhangi2731 marked this conversation as resolved.
Show resolved Hide resolved
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
subhangi2731 marked this conversation as resolved.
Show resolved Hide resolved
"double"
],
"semi": [
"error",
"always"
]
}
}
12 changes: 12 additions & 0 deletions .htmlhintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"tagname-lowercase": true,
"attr-lowercase": true,
"attr-value-double-quotes": true,
"doctype-first": true,
"tag-pair": true,
"spec-char-escape": true,
"id-unique": true,
"src-not-empty": true,
"attr-no-duplication": true,
"title-require": true
}
3 changes: 2 additions & 1 deletion DSA.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
<li class="nav-item">
<a class="nav-link font-weight-bold nav-items" href="#footer">Contact</a>
</li>
</li>
subhangi2731 marked this conversation as resolved.
Show resolved Hide resolved
</ul>
</div>
</nav>
Expand Down Expand Up @@ -163,7 +164,7 @@ <h5 class="font-weight-bold text-white mb-lg-4 pb-2 margin-top-mobile">Features<
<a class="text-white mb-lg-3" href="https://www.codechef.com/ide" target="_blank">Code Editor</a><br>
<a class="text-white mb-lg-3" href="https://www.geeksforgeeks.org/data-structure-gq/" target="_blank">Quizzes</a><br>
<a class="text-white mb-lg-3" href="https://github.com/Algo-Phantoms/Algo-Tree" target="_blank">DSA Guidance</a><br>
<a class="text-white mb-lg-3" href="https://dare2compete.com/" target="_blank">Opportunities<a><br>
<a class="text-white mb-lg-3" href="https://dare2compete.com/" target="_blank">Opportunities</a><br>
<a class="text-white mb-lg-3" href="https://www.geeksforgeeks.org/computer-science-projects/?ref=shm" target="_blank">Project Ideas</a><br>
<a class="text-white mb-lg-3" href="DSA.html" >RoadMap to your DSA</a><br>
<a class="text-white mb-lg-3" href="practicedsa.html" >DSA Problems</a><br>
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
- Bootstrap
- Javascript

## Steps to add Inline JS Support to ESlint
subhangi2731 marked this conversation as resolved.
Show resolved Hide resolved
go to vscode > extensions > install HTMLHint

## Contribution Guidelines ⚙️

* Make sure you do not copy codes from external sources because that work will not be considered. Plagiarism is strictly not allowed.
Expand Down Expand Up @@ -64,3 +67,4 @@ This project follows the [MIT License](https://choosealicense.com/licenses/mit/)
[![forthebadge](https://forthebadge.com/images/badges/uses-html.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/uses-css.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)

5 changes: 3 additions & 2 deletions booklist.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
</head>

<body>
!-- header starts -->
<!-- header starts -->
<section>
<nav class="navbar navbar-expand-lg navbar-dark fixed-top nav-col top" id='nav'>
<nav class="navbar navbar-expand-lg navbar-dark fixed-top nav-col top" id="nav">
<a class="navbar-brand" href="index.html"><img src="images/icon.png" alt="Algo Phantoms" width="50" height="50"><strong><span class="brand1">Algo</span>Phantoms</strong></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
Expand Down Expand Up @@ -74,6 +74,7 @@
<a class="nav-link font-weight-bold nav-items" href="#footer">Contact</a>
<hr class="hr">
</li>
</li>
subhangi2731 marked this conversation as resolved.
Show resolved Hide resolved
</ul>
</div>
</nav>
Expand Down
3 changes: 2 additions & 1 deletion ide.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
<li class="nav-item">
<a class="nav-link font-weight-bold nav-items" href="#footer">Contact</a>
</li>
</li>
subhangi2731 marked this conversation as resolved.
Show resolved Hide resolved
</ul>
</div>
</nav>
Expand Down Expand Up @@ -182,7 +183,7 @@ <h5 class="font-weight-bold text-white mb-lg-4 pb-2 margin-top-mobile">Features<
<a class="text-white mb-lg-3" href="https://github.com/Algo-Phantoms/Algo-Tree"
target="_blank">DSA Guidance</a><br>
<a class="text-white mb-lg-3" href="https://dare2compete.com/"
target="_blank">Opportunities<a><br>
target="_blank">Opportunities</a><br>
<a class="text-white mb-lg-3"
href="https://www.geeksforgeeks.org/computer-science-projects/?ref=shm"
target="_blank">Project Ideas</a><br>
Expand Down
18 changes: 9 additions & 9 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ backToTopButton.addEventListener("click", () => {

$("#faqaccordion").on("hide.bs.collapse show.bs.collapse", e => {
$(e.target)
.prev()
.find("i:last-child")
.toggleClass("fa-minus fa-plus");
});
.prev()
.find("i:last-child")
.toggleClass("fa-minus fa-plus");
});

//close navbar when clicked on link
const navLinks = document.querySelectorAll('.nav-item')
const menuToggle = document.getElementById('navbarSupportedContent')
const bsCollapse = new bootstrap.Collapse(menuToggle)
const navLinks = document.querySelectorAll(".nav-item");
const menuToggle = document.getElementById("navbarSupportedContent");
const bsCollapse = new bootstrap.Collapse(menuToggle); // eslint-disable-line
subhangi2731 marked this conversation as resolved.
Show resolved Hide resolved
navLinks.forEach((l) => {
l.addEventListener('click', () => { bsCollapse.toggle() })
})
l.addEventListener("click", () => { bsCollapse.toggle(); });
});
2 changes: 1 addition & 1 deletion js/typing.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ function typingEffect(){
count = 0;
document.querySelector("#typed-text").innerHTML = "";
typingEffect();
},2000)
},2000);
}
}