M
M
mrSeller2021-04-01 12:36:47
Linter
mrSeller, 2021-04-01 12:36:47

How to run validation of a single eslint rule?

eslint frontend/ --ext .vue --ext .js --ext .ts --rule "brace-style: [error, stroustrup]"

prints errors and other rules

eslint frontend/ --ext .vue --ext .js --ext .ts --rule "brace-style: [error, stroustrup]" --no-eslintrc

gives in general such errors for js:
Parsing error: The keyword 'const' is reserved
Parsing error: The keyword 'import' is reserved


And these for vue:
Parsing error: Unexpected token <

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question