I have two files which are siblings.
First is for source, second is the unit tests for first file.
I have a lot of eslint rules to check my sources. And I use some plugins to enhance thoses checks. Especially security-plugin.
It makes sense to check security into source code, but i don't mind for tests files. How can i disable into tests files only security rules?
I already have tried those but it's not working:
/* eslint-disable security */
/* eslint-disable security/* */
Any idea is welcomed. I just want to keep source and test files as siblings
Have a found a trick. I just run eslint twice. One time for "normal" sources with tests excluded, and a second time with another configuration file without security plugin declared inside only for tests. Not the smartest way but does the job.