S
S
Sergey Kotov2021-06-18 20:55:58
JavaScript
Sergey Kotov, 2021-06-18 20:55:58

How to prevent disabling the linter via inline comments?

I set up some rules for code linting, but it can be disabled via
// eslint-disable-next-line rule_name

Is there any way to configure the linter so that it ignores eslint-disable-next-line and continues to swear?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Belyaev, 2021-06-19
@bingo347

In addition to completely disabling controlling comments, as Uneasy Hearts Weigh the Most suggested , they can be controlled with the same eslint: https://www.npmjs.com/package/eslint-plugin-eslint...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question