-
Notifications
You must be signed in to change notification settings - Fork 1
Add linting and formatting #2
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
Open
ohheyjosh
wants to merge
9
commits into
thecodepixi:main
Choose a base branch
from
ohheyjosh:add-linting-and-formatting
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9718ac8
Added ESLint, Prettier, other relevant packages
ohheyjosh b284300
Added config files for ESLint and Prettier
ohheyjosh 1c0e820
First linting and formatting pass
ohheyjosh c146edc
Updated changelog
ohheyjosh 509f888
Resolved ES6 modulization issue
ohheyjosh a3d962b
Added bin line back to ensure compat
ohheyjosh 5ed6e1f
Gitignoring lockfile
ohheyjosh d42eb43
Folded linter config files into package.json
ohheyjosh ba2b2fa
Cleanup after going rogue with NPM
ohheyjosh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
|
||
# package lockfile | ||
# (if you run into package version conflicts later, unignore this) | ||
yarn.lock | ||
|
||
# log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"endOfLine": "auto", | ||
"printWidth": 100, | ||
"trailingComma": "es5" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
### Added | ||
|
||
- | ||
- Linting and formatting via ESLint and Prettier | ||
|
||
### Fixed | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,62 @@ | ||
const WORDS = ["psychotic", "pneumatic", "phonetic", "Pacific", "prosthetic", "pandemic", "pathetic", "pleonastic", "pedantic", "prognostic", "pleuritic", "piratic", "plethoric", "polemic", "phlegmatic", "pancreatic", "presbyopic", "pyknotic", "priapic", "phonemic", "pelagic", "puristic", "pragmatic", "pyretic", "plutonic", "pneumonic", "paretic", "pharisaic", "politic", "pantheistic", "Pharaonic", "Paleozoic", "pyloric", "platonic", "polaric", "plasmic", "prophetic", "prolific", "Potomac", "panoptic", "Puranic", "prodromic", "planktonic", "phyletic", "phenolic", "prostatic", "pilgarlic", "phrenetic", "podagric", "pulmonic", "panini", "Panera", "Pandora", "pandemonium"] | ||
const WORDS = [ | ||
"psychotic", | ||
"pneumatic", | ||
"phonetic", | ||
"Pacific", | ||
"prosthetic", | ||
"pandemic", | ||
"pathetic", | ||
"pleonastic", | ||
"pedantic", | ||
"prognostic", | ||
"pleuritic", | ||
"piratic", | ||
"plethoric", | ||
"polemic", | ||
"phlegmatic", | ||
"pancreatic", | ||
"presbyopic", | ||
"pyknotic", | ||
"priapic", | ||
"phonemic", | ||
"pelagic", | ||
"puristic", | ||
"pragmatic", | ||
"pyretic", | ||
"plutonic", | ||
"pneumonic", | ||
"paretic", | ||
"pharisaic", | ||
"politic", | ||
"pantheistic", | ||
"Pharaonic", | ||
"Paleozoic", | ||
"pyloric", | ||
"platonic", | ||
"polaric", | ||
"plasmic", | ||
"prophetic", | ||
"prolific", | ||
"Potomac", | ||
"panoptic", | ||
"Puranic", | ||
"prodromic", | ||
"planktonic", | ||
"phyletic", | ||
"phenolic", | ||
"prostatic", | ||
"pilgarlic", | ||
"phrenetic", | ||
"podagric", | ||
"pulmonic", | ||
"panini", | ||
"Panera", | ||
"Pandora", | ||
"pandemonium", | ||
]; | ||
|
||
function word() { | ||
return WORDS[Math.floor(Math.random() * WORDS.length)] | ||
return WORDS[Math.floor(Math.random() * WORDS.length)]; | ||
} | ||
|
||
module.exports = word | ||
export default word; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.