.eslintrc is deprecated
See original GitHub issueVersion
3.0.0-beta.6
Reproduction link
not-required
Steps to reproduce
Create a new Vue app activating ESLint.
What is expected?
Vue CLI should create a .eslintrc.json
or .eslint.js
file, due .eslintrc
file is deprecated according to the ESLint documentation: https://eslint.org/docs/user-guide/configuring#configuration-file-formats
What is actually happening?
Vue CLI creates a .eslintrc
file
Maybe the option to create a .eslintrc.js
file will be better to place comments and solve conditional rules according to the NODE_ENV
value
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Is the config file .eslintrc deprecated in favor of .eslintrc.* files?
eslintrc deprecated in favor of .eslintrc.* files? -- The answer is YES! See .eslintrc without file extension is deprecated, and Configuration ...
Read more >.eslintrc without file extension is deprecated - DEV Community ...
It's been quite some time since it got deprecated. However, I still see plenty of JavaScript projects using .eslintrc as a configuration ...
Read more >Working with Rules (Deprecated) - Pluggable JavaScript Linter
Note: This page covers the deprecated rule format for ESLint <= 2.13.1. This is the most recent rule format. Each rule in ESLint...
Read more >ESLint has deprecated .eslintrc file naming convention. #85
JSON - use .eslintrc.json to define the configuration structure. ESLint's JSON files also allow JavaScript-style comments. Deprecated - use .
Read more >eslint-plugin-deprecation - npm
ESLint rule that reports usage of deprecated code. Latest version: 1.3.3, last published: a month ago. Start using eslint-plugin-deprecation ...
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
currently, the cli creates JSON, not Javascript code. JSON is also easier to augment for 3rd party plugins, since you can simply require the file, change the updated object and save the JSON back to disc, so I would vote for
.eslintrc.json
And Babel 7 support
.babelrc.js
, PostCSS supportpostcss.config.js