Cli-microsoft365: Enhancement: Create eslint rule to check if the command's class name matches the naming convention

Created on 18 Sep 2020  路  4Comments  路  Source: pnp/cli-microsoft365

Checks if the command鈥檚 class name matches the naming convention.
Rule should check if the class name is a combination of Service +CommandName + Command which is basically the name property of the command.

e.g. A command for installing app in teams

Service : Teams
CommandName: App Install

Name property: TEAMS_APP_INSTALL.

And the class name should be TeamsAppInstallCommand

enhancement help wanted

Most helpful comment

Nothing useful at this stage @waldekmastykarz but I will be looking into this offline so if there is anything useful I can call it out and push a branch in. Just did not want to lock it in so other don't have a chance.

All 4 comments

Will soon get onto this :)

Removing myself from this until I update my skills on AST for this , meanwhile leaving it open if anyone else wants to take a stab at this ;)

Did you have the basic setup in place and were just stuck on AST? If so, is there anything you could share that could help whoever would like to help with this issue?

Nothing useful at this stage @waldekmastykarz but I will be looking into this offline so if there is anything useful I can call it out and push a branch in. Just did not want to lock it in so other don't have a chance.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

garrytrinder picture garrytrinder  路  3Comments

arjunumenon picture arjunumenon  路  3Comments

vineet2907 picture vineet2907  路  3Comments

waldekmastykarz picture waldekmastykarz  路  3Comments

plamber picture plamber  路  3Comments