Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Commit 4e95cdd

Browse files
authored
feat: adding linting (#63)
* feat: adding prettier * feat: changing prettier * feat: adding node js tests file * fix: fixing deploy file * fix: removing node test file
1 parent adf76bc commit 4e95cdd

32 files changed

+19901
-1322
lines changed

.eslintrc.json

+3-23
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"extends": [
77
"eslint:recommended",
88
"plugin:react/recommended",
9-
"plugin:@typescript-eslint/recommended"
9+
"plugin:@typescript-eslint/recommended",
10+
"prettier"
1011
],
1112
"parser": "@typescript-eslint/parser",
1213
"parserOptions": {
@@ -16,26 +17,5 @@
1617
"ecmaVersion": "latest",
1718
"sourceType": "module"
1819
},
19-
"plugins": [
20-
"react",
21-
"@typescript-eslint"
22-
],
23-
"rules": {
24-
"indent": [
25-
"error",
26-
2
27-
],
28-
"linebreak-style": [
29-
"error",
30-
"unix"
31-
],
32-
"quotes": [
33-
"error",
34-
"double"
35-
],
36-
"semi": [
37-
"error",
38-
"always"
39-
]
40-
}
20+
"plugins": ["react", "@typescript-eslint"]
4121
}

CODE_OF_CONDUCT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
> Our Code of Conduct is available here: <https://www.freecodecamp.org/code-of-conduct/>
1+
> Our Code of Conduct is available here: <https://www.freecodecamp.org/code-of-conduct/>

CONTRIBUTING.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
## Our contributing docs are available here: <https://contribute.freecodecamp.org>.
22

3-
4-
Looking to edit these docs? Read [this document](https://contribute.freecodecamp.org/#/how-to-work-on-the-docs-theme) first.
3+
Looking to edit these docs? Read [this document](https://contribute.freecodecamp.org/#/how-to-work-on-the-docs-theme) first.

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ Redistributions in binary form must reproduce the above copyright notice, this l
1010

1111
Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
1212

13-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The [developerquiz.org](https://developerquiz.org/) website is the companion to
1313
- Python 🐍
1414
- Git 📁
1515
- SQL 📊
16-
- IT 🖥️
16+
- IT 🖥️
1717
- and Computer Science Concepts 🤖
1818

1919
All questions are beginner friendly and approachable to all levels, so they are ideal for refreshing your programming knowledge.
@@ -24,19 +24,20 @@ freeCodeCamp creates thousands of articles, videos and courses on a variety of c
2424

2525
All of the helpful and thoughtful resources are made possible by the generous donations of kind people.
2626

27-
Have a look [here](https://www.freecodecamp.org/news/how-to-donate-to-free-code-camp/) at the different ways you can support our non-profit's mission and make tech education accessible to all.
27+
Have a look [here](https://www.freecodecamp.org/news/how-to-donate-to-free-code-camp/) at the different ways you can support our non-profit's mission and make tech education accessible to all.
2828

2929
## How to run the quiz questions locally
30+
3031
Here are directions on how to fork the freeCodeCamp/Developer_Quiz_Site repository:<br>
3132
https://docs.github.com/en/get-started/quickstart/fork-a-repo
3233

3334
In the command line:
3435

35-
1) Clone the repo by typing `git clone https://github.com/YOUR-GITHUB-USERNAME/Developer_Quiz_Site.git`
36-
2) Then type `cd Developer_Quiz_Site` to go into the project's directory.
37-
3) Install dependencies with `npm install`
38-
4) Run the project with `npm start`
39-
5) Have fun 🚀
36+
1. Clone the repo by typing `git clone https://github.com/YOUR-GITHUB-USERNAME/Developer_Quiz_Site.git`
37+
2. Then type `cd Developer_Quiz_Site` to go into the project's directory.
38+
3. Install dependencies with `npm install`
39+
4. Run the project with `npm start`
40+
5. Have fun 🚀
4041

4142
### How to contribute
4243

0 commit comments

Comments
 (0)