question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rename rules and options

See original GitHub issue

Looking at other plugins, they are tending to move away from no- and ignore prefixes.

Some of our rules names are also inconsistent, some end with statement while others don’t despite them both refering to statements.

New Name Proposals

Rules

Current Name New Name Theme
prefer-readonly-type No mutability
no-let enforce-const No mutability
immutable-data No mutability
no-method-signature prefer-property-signature No mutability
no-this-expression No OO
no-class No OO
no-mixed-type No OO
prefer-type-literal No OO
no-expression-statement No statements
no-conditional-statement No statements
no-loop-statement No statements
no-return-void No statements
no-throw-statement No exceptions
no-try-statement No exceptions
no-promise-reject No exceptions
functional-parameters Currying

Options

Current Name New Name
ignoreAccessorPattern
ignoreLocal
ignoreClass
ignoreInterface
ignorePattern
allowMutableReturnType
ignoreImmediateMutation
allowArgumentsKeyword
allowNull
allowRestParameter
allowReturningBranches
allowUndefined
assumeTypes
checkImplicit
checkInterfaces
checkTypeLiterals
enforceParameterCount

Name Suggestion Are Most Welcome

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
jonaskellocommented, Jul 12, 2019

When considering the rule names and separation, perhaps it would be help to identify some main themes that are needed to make typescript functional. Something like:

  • Immutability
  • No statements
  • No exceptions
  • No object orientation
0reactions
jonaskellocommented, Aug 7, 2019

@RebeccaStevens A big thank you for all the work you have put in to port the rules! 👍

Agreed #60 could be merged after release. I’ll go ahead and put the release candidate to use in some of the larger projects I’m working on as soon as I can to get a feel for the stability etc. Just need to migrate the projects from tslint to eslint first 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rename rules settings
On the menu bar, go to Tools > Global Options. Expand Transfer. Click Rename Rules. Apply auto-rename rules to transfers.
Read more >
Use Rules to Automatically Rename Different Document ...
Step-by-step tutorial on using renaming rules to rename different document types with the AutoSplit plug-in for Adobe® Acrobat®
Read more >
Adding renaming rules
To add a renaming rule from the register ; Select Edit Transaction and enter the new payee name. ; Click the dropdown arrow...
Read more >
Manage renaming rules for payee names in QuickBooks ...
Edit a renaming rule · Go to your Downloaded Transactions. · Select the arrow next to the payee, then Edit Rule. · Select...
Read more >
Edit an Outlook rule
Click Change Rule, click the type of change you want to make, and then complete the steps. Change rule options. Note: To delete...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found