ubiquity / ts-template

A template repository for all @ubiquity projects.
2 stars 24 forks source link

Three Letter Linter #39

Closed 0x4007 closed 6 months ago

0x4007 commented 7 months ago

Make a custom lint rule enforcing this. Check previous conversation

Our coding style guide should have this written as Erc20Permit

It is an implicit rule according to the contributing.md in the Ubiquity Dollar repo

_Originally posted by @0x4007 in https://github.com/ubiquity/pay.ubq.fi/pull/224#discussion_r1569165738_

gentlementlegen commented 7 months ago

I think that PascalCase rule would be a better name for this issue 😄

gitcoindev commented 7 months ago

I think that PascalCase rule would be a better name for this issue 😄

or UpperCamelCase. But Three letter linter is a catchy name as it made me to click on this issue 😄

jordan-ae commented 7 months ago

@0x4007 should the linter ensure every variable respects PascalCase or just the Erc20Permit and Erc721 should follow this rule?

jordan-ae commented 7 months ago

/start

ubiquibot[bot] commented 7 months ago

DeadlineFri, Apr 19, 12:23 PM UTC
Registered Wallet 0x2F05fD58023B0a95d1866aa0A3b672cEf05945c5
Tips:
ubiquibot[bot] commented 6 months ago
+ Evaluating results. Please wait...
ubiquibot[bot] commented 6 months ago

[ 15.8 WXDAI ]

@0x4007
Contributions Overview
ViewContributionCountReward
IssueSpecification13
ReviewComment412.8
Conversation Incentives
CommentFormattingRelevanceReward
Make a custom lint rule enforcing this. Check previous conversat...
3
code:
  count: 1
  score: "1"
  words: 1
13
That rule seems to only check for the first character being capi...
70.767
I think let's use strictpascalcase then!...
1.40.841.4
Yes let's apply this across all identifiers. ...
1.60.7651.6
We have lint-staged for this purpose but perhaps it's not config...
2.80.62.8

[ 21.4 WXDAI ]

@gentlementlegen
Contributions Overview
ViewContributionCountReward
IssueComment12.3
ReviewComment319.1
Conversation Incentives
CommentFormattingRelevanceReward
I think that `PascalCase` rule would be a better name for this i...
2.3
code:
  count: 1
  score: "1"
  words: 1
0.632.3
There actually already is a rule for `PascalCase` interfaces, no...
9.6
code:
  count: 3
  score: "3"
  words: 4
0.769.6
`StrictPascalCase` will enforce no more that one capital letter ...
6.3
code:
  count: 1
  score: "1"
  words: 1
0.746.3
@0x4007 Shall this be applied to other elements too, like variab...
3.2
code:
  count: 1
  score: "1"
  words: 1
0.853.2

[ 117.2 WXDAI ]

@jordan-ae
Contributions Overview
ViewContributionCountReward
IssueTask1100
IssueComment10
ReviewComment617.2
Conversation Incentives
CommentFormattingRelevanceReward
@0x4007 should the linter ensure every variable respects PascalC...
-0.53-
> You also should not change any other files. @0x4007 The othe...
4.20.524.2
@0x4007, @gentlementlegen I've added StrictPascalCase to the es...
8.50.718.5
> We have lint-staged for this purpose but perhaps it's not conf...
10.541
@gentlementlegen please can you review? Thanks ...
0.60.6450.6
Hey @0x4007 I've undone all the changes not related to the issue...
20.652
> I think let's use strictpascalcase then!I I thought we wer...
0.90.5650.9

[ 2.9 WXDAI ]

@gitcoindev
Contributions Overview
ViewContributionCountReward
IssueComment12.9
Conversation Incentives
CommentFormattingRelevanceReward
> I think that `PascalCase` rule would be a better name for this...
2.9
code:
  count: 1
  score: "1"
  words: 1
0.792.9