-
Notifications
You must be signed in to change notification settings - Fork 0
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
chore(project): add prettier, eslint and husky #26
Merged
Conversation
This file contains 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
jsjoeio
changed the title
chore(project): add prettier and husky
chore(project): add prettier, eslint and husky
Nov 4, 2019
jeffreyzhen
approved these changes
Nov 4, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
jsjoeio
pushed a commit
that referenced
this pull request
Nov 11, 2019
* BREAKING CHANGE: modify how generate command works * docs(contrib): add ci and update generate command docs (#6) * feat: update README and add CONTRIBUTING * fix: update generate command args * feat: update docs with new generate command info * docs: add jsjoeio as a contributor (#13) * docs: update README.md * docs: create .all-contributorsrc * chore: add @semantic-release/npm & .../git plugins (#14) * feat: add semantic-release/git * feat: add npm plugin as well * chore(templates): add issue template (#15) * Update issue templates Add a simple issue report template * Create pull_request_template.md add PR template * docs: add cmejet as a contributor (#16) * docs: update README.md * docs: update .all-contributorsrc * change name to bug instead of issue It makes more sense to call this bug because it's a bug report issue template * Create feature_request.md add feature request template * Update and rename issue-report.md to bug_ report.md * chore: clean up template Remove stuff specific to Gatsby * feat(command): add init script (#11) * feat: add init command * feat: add node types * feat: add write to package.json in init * refactor: write to package.json * feat: add install eb-scripts line * refactor: change name of vars * chore: update oclif.manifest and README * Update src/commands/init.ts Co-Authored-By: Chris Ball <[email protected]> * fix: modify order of updatedScripts * docs: add alvincrespo as a contributor (#22) * docs: update README.md * docs: update .all-contributorsrc * feat(tests): adds basic testing support (#8) * first commit * moar progress * passing tests * reorg deps * cast as any properly * updating per review * move jest config into package.json * feat: update circleci config * docs: add cball as a contributor (#23) * docs: update README.md * docs: update .all-contributorsrc * chore(project): add prettier, eslint and husky (#26) * feat: add prettier and husky * chore: add eslint and deps * chore: add eslint plugins prettier and eb * feat(testing): add integration test for generate command (#24) * fix: add back in semantic release plugins * fix: add jest config and install fs-extra * feat: add makeTempDir and removeTempDir utils * wip: add initial generate test * feat: add util fn to check if dir exists * refactor: change names temp dir fns * refactor: add index to simplify exports * wip: add test with oclif * feat: add checkFileExists util * chore: update deps * chore: add checkFileExists to index * wip: almost there * wip: generate test * feat: add test for no flags * wip: add oclif test * feat: write snapshot test for generate error * chore: clean up deps * wip: add test to check custom templates * feat: add test to check using custom templates * refactor: use copyFile instead of writeFile * feat: update snapshot and get test passing default * refactor: create tests/helpers and move template * chore: update order of types in package.json * refactor: remove proxy fse fns * refactor: clean up getTemplateLocation * docs: add jeffreyzhen as a contributor (#35) * docs: update README.md * docs: update .all-contributorsrc * refactor: update CONTRIBUTING PR process * refactor: update PR template to add check for base branch * chore(release): add commit-analyzer and release-notes-generator (#30) * feat: add commit analyzer and rel not generator semantic release * fix: only release if semantic-release passes * refactor: use npm ci in circleci * refactor: use yarn in circleci config * fix: typo in release section * fix: switch back to npm in config * fix: change back to npm install * feat(generate, init): add support for react-typescript (#36) * fix: add back in semantic release plugins * fix: add jest config and install fs-extra * feat: add makeTempDir and removeTempDir utils * feat: add util fn to check if dir exists * refactor: change names temp dir fns * wip: add test with oclif * feat: add checkFileExists util * wip: almost there * wip: generate test * feat: add test for no flags * wip: add oclif test * feat: write snapshot test for generate error * chore: clean up deps * wip: add test to check custom templates * feat: add test to check using custom templates * refactor: use copyFile instead of writeFile * refactor: create tests/helpers and move template * chore: update order of types in package.json * refactor: remove proxy fse fns * feat: add initial init test * wip: get tests setup for init * feat: finish yarn lock * feat: add test for init without flag * feat: add validProjectTypes to init, and test * fix: run tests sequentially with --runInBand * refactor: clean up unused tests init * fix: update README formatting * fix: update getTemplateLocation test * refactor: fix getTemplateLocation test * refactor: move afterEach and afterAll into describe block * fix: switch to yarn * fix: update test description * docs: add comment about dup import of fn * fix: update test description in init.test * refactor: use flag or args for init, remove -p * chore: update README * wip: update init and test to make project required * fix: tell jest to ignore lib * fix: update init tests and snap * feat: add path flag to generate and update temps * fix: update generate to throw on no args * fix: remove extra space in templates * fix: update test description * fix: update log statement in generate * fix: remove other extra space * fix: update old test * fix: update helper template for test * feat: add test for location flag * fix: unskip tests * refactor: remove side effect in last test * feat: add -p to script in init * refactor: unskip and use all tests * fix: update test after rebase * fix: update snapshot after rebase not updating it * feat: add react-typescript-component templates * refactor: improve typings in generate command * refactor: remove old template flag from generate * wip: add test for react-typescript-component * feat: add react-typescript-component as new temp type * fix: typos in react-ts-component template * fix: remove old copyFile fn * feat: add react-typescript to init projects * feat: update snapshots and add test * refactor: require to readFile to prevent caching * fix: remove console.logs * docs: update with new command info * fix: update item in checklist for PR * fix: update circle ci config * fix: switch back to yarn * feat(generate, init): allow user to override path for templates (#33) * fix: add back in semantic release plugins * fix: add jest config and install fs-extra * feat: add makeTempDir and removeTempDir utils * feat: add util fn to check if dir exists * refactor: change names temp dir fns * wip: add test with oclif * feat: add checkFileExists util * wip: almost there * wip: generate test * feat: add test for no flags * wip: add oclif test * feat: write snapshot test for generate error * chore: clean up deps * wip: add test to check custom templates * feat: add test to check using custom templates * refactor: use copyFile instead of writeFile * refactor: create tests/helpers and move template * chore: update order of types in package.json * refactor: remove proxy fse fns * fix: run tests sequentially with --runInBand * fix: update getTemplateLocation test * refactor: fix getTemplateLocation test * chore: update README * fix: update init tests and snap * fix: update generate to throw on no args * fix: update test description * fix: update old test * refactor: remove side effect in last test * feat: add -p to script in init * refactor: unskip and use all tests * fix: update test after rebase * fix: update snapshot after rebase not updating it * fix: errors after rebase * fix: update snapshot * feat(generate, init): add support for react-native-typescript (#37) * feat: add component template * refactor: change name to react-native-typescript * refactor: change name to typescript component * feat: add react-typescript-component to generate * feat: add test for react-native-typescript-component * feat: add react-native-typescript to init * feat: add react-native-typescript screen template * feat: add react-native-typescript-screen to generate * wip: generate screen test * wip: add note about screen template test * feat: add e2e template * feat: add e2e to init command * feat: add e2e to generate * fix: update quotes to double in e2e template * feat: add e2e to react-native-ts and add tset * feat: add e2e template test * fix: update snapshot after changes * feat: add util-typescript-template * feat: add util-typescript to generate and init * fix: add test and default path for utils temp * fix: update generate test * fix: update generate snapshot after new util template * fix: update docs * fix: clean up from comments * fix: comment out skipped test * fix: change component name in test * fix: update version to match npm version * fix: update oclif manifest to match master * fix: update PR template * fix: update bug report * [ci skip]: fix version issue * docs(contrib): add ci and update generate command docs (#6) * feat: update README and add CONTRIBUTING * fix: update generate command args * feat: update docs with new generate command info * chore(templates): add issue template (#15) * Update issue templates Add a simple issue report template * Create pull_request_template.md add PR template * Update and rename issue-report.md to bug_ report.md * feat(command): add init script (#11) * feat: add init command * feat: add node types * feat: add write to package.json in init * refactor: write to package.json * feat: add install eb-scripts line * refactor: change name of vars * chore: update oclif.manifest and README * Update src/commands/init.ts Co-Authored-By: Chris Ball <[email protected]> * fix: modify order of updatedScripts * feat(generate, init): add support for react-typescript (#36) * fix: add back in semantic release plugins * fix: add jest config and install fs-extra * feat: add makeTempDir and removeTempDir utils * feat: add util fn to check if dir exists * refactor: change names temp dir fns * wip: add test with oclif * feat: add checkFileExists util * wip: almost there * wip: generate test * feat: add test for no flags * wip: add oclif test * feat: write snapshot test for generate error * chore: clean up deps * wip: add test to check custom templates * feat: add test to check using custom templates * refactor: use copyFile instead of writeFile * refactor: create tests/helpers and move template * chore: update order of types in package.json * refactor: remove proxy fse fns * feat: add initial init test * wip: get tests setup for init * feat: finish yarn lock * feat: add test for init without flag * feat: add validProjectTypes to init, and test * fix: run tests sequentially with --runInBand * refactor: clean up unused tests init * fix: update README formatting * fix: update getTemplateLocation test * refactor: fix getTemplateLocation test * refactor: move afterEach and afterAll into describe block * fix: switch to yarn * fix: update test description * docs: add comment about dup import of fn * fix: update test description in init.test * refactor: use flag or args for init, remove -p * chore: update README * wip: update init and test to make project required * fix: tell jest to ignore lib * fix: update init tests and snap * feat: add path flag to generate and update temps * fix: update generate to throw on no args * fix: remove extra space in templates * fix: update test description * fix: update log statement in generate * fix: remove other extra space * fix: update old test * fix: update helper template for test * feat: add test for location flag * fix: unskip tests * refactor: remove side effect in last test * feat: add -p to script in init * refactor: unskip and use all tests * fix: update test after rebase * fix: update snapshot after rebase not updating it * feat: add react-typescript-component templates * refactor: improve typings in generate command * refactor: remove old template flag from generate * wip: add test for react-typescript-component * feat: add react-typescript-component as new temp type * fix: typos in react-ts-component template * fix: remove old copyFile fn * feat: add react-typescript to init projects * feat: update snapshots and add test * refactor: require to readFile to prevent caching * fix: remove console.logs * docs: update with new command info * fix: update item in checklist for PR * fix: update circle ci config * fix: switch back to yarn * feat(generate, init): allow user to override path for templates (#33) * fix: add back in semantic release plugins * fix: add jest config and install fs-extra * feat: add makeTempDir and removeTempDir utils * feat: add util fn to check if dir exists * refactor: change names temp dir fns * wip: add test with oclif * feat: add checkFileExists util * wip: almost there * wip: generate test * feat: add test for no flags * wip: add oclif test * feat: write snapshot test for generate error * chore: clean up deps * wip: add test to check custom templates * feat: add test to check using custom templates * refactor: use copyFile instead of writeFile * refactor: create tests/helpers and move template * chore: update order of types in package.json * refactor: remove proxy fse fns * fix: run tests sequentially with --runInBand * fix: update getTemplateLocation test * refactor: fix getTemplateLocation test * chore: update README * fix: update init tests and snap * fix: update generate to throw on no args * fix: update test description * fix: update old test * refactor: remove side effect in last test * feat: add -p to script in init * refactor: unskip and use all tests * fix: update test after rebase * fix: update snapshot after rebase not updating it * fix: errors after rebase * fix: update snapshot * feat(generate, init): add support for react-native-typescript (#37) * feat: add component template * refactor: change name to react-native-typescript * refactor: change name to typescript component * feat: add react-typescript-component to generate * feat: add test for react-native-typescript-component * feat: add react-native-typescript to init * feat: add react-native-typescript screen template * feat: add react-native-typescript-screen to generate * wip: generate screen test * wip: add note about screen template test * feat: add e2e template * feat: add e2e to init command * feat: add e2e to generate * fix: update quotes to double in e2e template * feat: add e2e to react-native-ts and add tset * feat: add e2e template test * fix: update snapshot after changes * feat: add util-typescript-template * feat: add util-typescript to generate and init * fix: add test and default path for utils temp * fix: update generate test * fix: update generate snapshot after new util template * fix: update docs * fix: clean up from comments * fix: comment out skipped test * fix: change component name in test * fix: remove flag from yarn test * fix: update snapshots * fix: updte bin run * fix: update oclif and init snapshot * reactor: export all utils * refactor: move test higher * fix: update snapshots and add runInBand flag to yarn test * fix: update PR template to remove check for next branch
jsjoeio
pushed a commit
that referenced
this pull request
Nov 11, 2019
# [2.0.0](v1.0.0...v2.0.0) (2019-11-11) ### Features * **generate, init:** create new release ([#39](#39)) ([c4d4f54](c4d4f54)), closes [#6](#6) [#13](#13) [#14](#14) [#15](#15) [#16](#16) [#11](#11) [#22](#22) [#8](#8) [#23](#23) [#26](#26) [#24](#24) [#35](#35) [#30](#30) [#36](#36) [#33](#33) [#37](#37) [#6](#6) [#15](#15) [#11](#11) [#36](#36) [#33](#33) [#37](#37) ### BREAKING CHANGES * **generate, init:** modify how generate command works
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds eslint and a pre-commit hook to run prettier.
Changes
prettier
,pretty-quick
andhusky
per Prettier getting started guideeslint
,eslint-config-prettier
,eslint-plugin-echobind
andeslint-plugin-prettier
Screenshots
N/A
Checklist
prettier
pretty-quick
husky
eslint
eslint-config-prettier
eslint-plugin-echobind
eslint-plugin-prettier
Fixes #21
Fixes #9