question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.eslintrc is deprecated

See original GitHub issue

Version

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:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
LinusBorgcommented, Mar 21, 2018

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

5reactions
yangmingshancommented, Mar 19, 2018

And Babel 7 support .babelrc.js, PostCSS support postcss.config.js

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found