Warnings about strings in eslintrc
See original GitHub issueThe ESLint documentation suggests that the strings “error”, “warn”, and “off” can be used instead of the integer values, for example semi: ["error", "always"]
.
Currently, VSCode brings up a warning when using this syntax:
Incorrect type. Expected one of integer, array
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:10 (7 by maintainers)
Top Results From Across the Web
quotes - ESLint - Pluggable JavaScript Linter
JavaScript allows you to define strings in one of three ways: double quotes, single quotes, and backticks (as of ECMAScript 6). For example:....
Read more >eslint-plugin-prohibited-strings - npm
eslint plugin to prohibit specified strings. Installation. You'll first need to install ESLint: $ npm i eslint --save-dev.
Read more >How to tell eslint that you prefer single quotes around your ...
Another useful option is to allow single or double quotes as long as the string contains an escapable quote like "lorem ipsum 'donor'...
Read more >Understanding ESLint Rules - Mastering JS
Rules are how you configure ESLint. By configuring which rules are errors or warnings, you can build your own ESLint config.
Read more >vue/no-bare-strings-in-template
This rule disallows the use of bare strings in <template> . In order to be able to internationalize your application, you will need...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dbaeumer thank you
OK. Here is what I found out using eslint version 2.10.2 (the latest)
doing so result in the following error when executing eslint from the command line:
Using this inside an array works as expected and Code doesn’t print any warning/error.
I will close the issue since there is nothing VS Code can do about this.