From 06e90f66c8d397d37986e08ffd0a32a96e14c637 Mon Sep 17 00:00:00 2001 From: Michael Frank Date: Wed, 12 May 2021 21:37:19 +1200 Subject: [PATCH] pulled eslint files from jester-tester and updated exercise numbers --- .eslintignore | 1 + .eslintrc.json | 2 +- caesar/README.md | 2 +- calculator/README.md | 2 ++ fibonacci/README.md | 2 +- findTheOldest/README.md | 2 +- getTheTitles/README.md | 2 +- helloWorld/README.md | 2 +- leapYears/README.md | 2 +- package.json | 9 ++++++--- palindromes/README.md | 2 +- reverseString/README.md | 2 +- tempConversion/README.md | 2 +- 13 files changed, 19 insertions(+), 13 deletions(-) create mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..46850e4 --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +generator-exercise/ \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json index bbf322d..409b54e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,5 +1,4 @@ { - "extends": "airbnb-base", "plugins": [ "import" ], @@ -8,5 +7,6 @@ "sourceType": "module" }, "rules": { + "eol-last": ["error", "always"] } } diff --git a/caesar/README.md b/caesar/README.md index 1a5c623..ba6d36b 100644 --- a/caesar/README.md +++ b/caesar/README.md @@ -1,4 +1,4 @@ -# Exercise XX - Caesar cipher +# Exercise 13 - Caesar cipher Implement the legendary Caesar cipher: diff --git a/calculator/README.md b/calculator/README.md index 8881dd7..e50b776 100644 --- a/calculator/README.md +++ b/calculator/README.md @@ -1,3 +1,5 @@ +# Exercise 08 - Calculator + The goal for this exercise is to create a calculator that does the following: add, subtract, get the sum, multiply, get the power, and find the factorial diff --git a/fibonacci/README.md b/fibonacci/README.md index 698c42d..9e65347 100644 --- a/fibonacci/README.md +++ b/fibonacci/README.md @@ -1,4 +1,4 @@ -# Exercise XX - Fibonacci +# Exercise 10 - Fibonacci Create a function that returns a specific member of the Fibonacci sequence: diff --git a/findTheOldest/README.md b/findTheOldest/README.md index a3d1cef..92d0bf3 100644 --- a/findTheOldest/README.md +++ b/findTheOldest/README.md @@ -1,4 +1,4 @@ -# Find the Oldest +# Exercise 12 - Find the Oldest Given an array of objects representing people with a birth and death year, return the oldest person. diff --git a/getTheTitles/README.md b/getTheTitles/README.md index 94cc5d4..fb8bf95 100644 --- a/getTheTitles/README.md +++ b/getTheTitles/README.md @@ -1,4 +1,4 @@ -# Get the Titles! +# Exercise 11 - Get the Titles! You are given an array of objects that represent books with an author and a title that looks like this: diff --git a/helloWorld/README.md b/helloWorld/README.md index 69b3efd..e79ae19 100644 --- a/helloWorld/README.md +++ b/helloWorld/README.md @@ -1,4 +1,4 @@ -# Exercise 01 - Hello World. +# Exercise 01 - Hello World The main purpose of this exercise is to walk you through the process of running the tests and make sure everything is set up and running correctly. diff --git a/leapYears/README.md b/leapYears/README.md index 6233ab8..c4134da 100644 --- a/leapYears/README.md +++ b/leapYears/README.md @@ -1,4 +1,4 @@ -# Exercise XX - leapYears +# Exercise 06 - leapYears Create a function that determines whether or not a given year is a leap year. Leap years are determined by the following rules: diff --git a/package.json b/package.json index 485274c..5f08d22 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ -{ +{ "name": "javascript-exercises", "version": "1.0.0", - "description": "These are a series of javascript exercises intended to be used alongside the curriculum at 'The Odin Project' They start very simply, but get more involved as you progress through them.", - "main": "index.js", + "description": "These are a series of javascript exercises intended to be used alongside the curriculum at 'The Odin Project' They start off nice and easy, but get more involved as you progress through them.", + "main": "index.js", "repository": { "type": "git", "url": "git+https://github.com/TheOdinProject/javascript-exercises.git" @@ -22,5 +22,8 @@ }, "scripts": { "test": "jest" + }, + "eslintConfig": { + "root": true } } diff --git a/palindromes/README.md b/palindromes/README.md index fc2c2f6..b924a45 100644 --- a/palindromes/README.md +++ b/palindromes/README.md @@ -1,4 +1,4 @@ -# Exercise XX - palindromes +# Exercise 09 - Palindromes Write a function that determines whether or not a given string is a palindrome. diff --git a/reverseString/README.md b/reverseString/README.md index 4b52d40..05221ae 100644 --- a/reverseString/README.md +++ b/reverseString/README.md @@ -1,4 +1,4 @@ -# Exercise 02 - Reverse a String. +# Exercise 03 - Reverse a String Pretty simple, write a function called `reverseString` that returns its input, reversed! diff --git a/tempConversion/README.md b/tempConversion/README.md index bd3954e..081a650 100644 --- a/tempConversion/README.md +++ b/tempConversion/README.md @@ -1,4 +1,4 @@ -# Exercise 06 - tempConversion +# Exercise 07 - tempConversion Write two functions that convert temperatures from Fahrenheit to Celsius, and vice versa: ```