Skip to content

docs: update README with usage example and dev guide#1

Open
0x3EF8 wants to merge 1 commit intohallofcodes:mainfrom
0x3EF8:main
Open

docs: update README with usage example and dev guide#1
0x3EF8 wants to merge 1 commit intohallofcodes:mainfrom
0x3EF8:main

Conversation

@0x3EF8
Copy link
Copy Markdown
Member

@0x3EF8 0x3EF8 commented Jan 2, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 2, 2026 14:09
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the project's documentation by significantly expanding the README with practical usage examples, detailed development setup instructions, and contribution guidelines. The update transforms a minimal README into comprehensive documentation that will help both users and contributors get started with the fca-redux library.

  • Added a complete Quick Start section with a working TypeScript example showing login and message listening
  • Expanded development setup with step-by-step instructions for build, lint, format, and test commands
  • Introduced Contributing section with clear guidelines for submitting pull requests

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- **Developer Experience**:
- Full TypeScript support with type definitions.
- Integrated debugging and logging utilities.
- customizable options (User Agent, auto-reconnect, etc.).
Copy link

Copilot AI Jan 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent capitalization in the sentence. The word "customizable" should be capitalized to match the style of other bullet points in this list, which all start with capital letters.

Suggested change
- customizable options (User Agent, auto-reconnect, etc.).
- Customizable options (User Agent, auto-reconnect, etc.).

Copilot uses AI. Check for mistakes.

To set up the project locally for development:

1. **Install dependencies:**
Copy link

Copilot AI Jan 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent spacing in numbered list. All other numbered list items in the "Contributing" section use a period followed by two spaces before the text (e.g., "1. Fork"), but this formatting should be consistent throughout both the "Development" and "Contributing" sections.

Copilot uses AI. Check for mistakes.
Comment on lines +33 to +36

// Your 'appState.json' contains the cookies from a logged-in session.
const credentials = {
appState: require('./appState.json')
Copy link

Copilot AI Jan 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code example uses require() for importing JSON, which is CommonJS syntax, while the rest of the example uses ES6 import syntax. This creates a mixing of module systems that may not work in all TypeScript configurations. Consider showing both approaches or using a more TypeScript-friendly approach like importing from a variable or using dynamic import.

Suggested change
// Your 'appState.json' contains the cookies from a logged-in session.
const credentials = {
appState: require('./appState.json')
import appState from './appState.json';
// Your 'appState.json' contains the cookies from a logged-in session.
const credentials = {
appState

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants