croct-tech / croct-tech/coding-standard-js

Enable member-ordering rule

Open
#144 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
TypeScript
Stars
6
Forks
1
PR merge metrics
No merged PRs in 30d

Description

✨ Feature request

Enable the member-ordering rule from typescript-eslint

Motivation

We should keep the order of the members consistent between our declarations and between our languages.

Alternatives

TSLint rule

Additional context

For PHP and Java we have:

  • Static fields
  • Instance fields
  • Constructor(s)
  • Static public methods
  • Instance methods
  • Static private methods

We should define the order for public, protected and private between the fields and instance methods

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked typescript-eslint member-ordering rule documentation and the repository's existing ESLint configuration. Define the ordering for static and instance members, visibility levels, constructors, fields, and methods to match the stated PHP and Java conventions. Done means the rule is enabled with an agreed, consistent ordering.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, typescript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.