Example of eslintRules?

Does someone have an example for the eslintRules in Project Properties?

I’m not sure what the expected syntax is. After several attempts, I’m not seeing any changes in the lint results, so I assume I’m doing everything wrong.

What are you trying to accomplish?

In AppStudio 9, currently in Beta, we update the Eslint rules to the latest version.

I use many legal conventions that the default eslint lists as errors or warnings. For example, using double quotes instead of single quotes for strings.

My understanding is that eslint can be “tuned” using a configuration placed in the eslintRules field in Project Properties.

To answer your question, the eslint feature would be more helpful if I could turn off the 98% of errors/warnings that I don’t care about or don’t apply to me.

For example, I thought I can configure something like:

 "quotes": "off"

or

{
     "rules": {
        "quotes": off
     }
 }

or

rules:
  quotes:
   - off

If tuning eslint is not possible, please let me know.

If it is possible, I have no idea how to format the options to do so. So an example would probably make it clear.

That makes sense. I’ll put together a sample of the usage.

Don’t mean to push, but any progress?

If it’s posted somewhere I missed, please point me in the right direction.

Thanks!

I’m sorry for the tardy reply.

I dug into this - this feature this is indeed broken in AppStudio. I have opened an issue to get it fixed.