cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Web IDE - JavaScript Rules

florian_eberhardt
Discoverer
0 Kudos

I tried to set JavaScript Rules for all users, but even though I import my ES Lint files new projects wont use my rules.

Does anyone have any idea how it works? I'll attach my .eslintrc and .eslintrc.ext file.

eslintrcext.txt

eslintrc.txt

Many thanks in advance!

Accepted Solutions (0)

Answers (3)

Answers (3)

yuval_morad
Employee
Employee

Hi,

If try to add "custom" rules to your project than the folder of the rules should be selected in the UI above under "Custom Rules Folder".
Also the actual rules code should reside in the folder.

This option will provide all users in the project to use the same rules.

In case you would like to share rules across projects in the account, you would need to upload the rules on account level.
This option supports only standard eslint riles and not own custom rules

Regards

Yuval

michal_keidar
Active Contributor
0 Kudos

yuval.morad - Can you please assist? 10x

richard-zhao
Employee
Employee
0 Kudos

Hello, Florian. As I know your custom rules appear in the Rules table instead of the default rules. All the rules are disabled by default. Have you enabled custom code checking rules in the Rules table? Could you double check please?

florian_eberhardt
Discoverer
0 Kudos

Hello Richard,

thanks for your reply.

I am not trying to add costum rules to the table but I am trying to set some standard rules for each user, so they do not have to check them themself for each project.