Skip to Content
avatar image
Former Member

SAP Web IDE - JavaScript Rules

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!

eslintrcext.txt (24.2 kB)
eslintrc.txt (8.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jan 26 at 01:37 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 26 at 05:46 AM
    -1

    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?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • Jan 26 at 09:07 AM

    Yuval Morad - Can you please assist? 10x

    Add comment
    10|10000 characters needed characters exceeded