F
F
fapchat2019-06-29 13:46:07
JavaScript
fapchat, 2019-06-29 13:46:07

Did I install ESLint correctly?

Going through java script tutorial, couldn't get ESLint

Install Node.js
Install ESLint with the command npm install -g eslint (npm is a JavaScript package installer).
Create a config file named .eslintrc in the root of your JavaScript project (in the folder that contains all your files).
Install/enable the plugin for your editor that integrates with ESLint. The majority of editors have one.
Here's an example of an .eslintrc file:

{
  "extends": "eslint:recommended",
  "env": {
    "browser": true,
    "node": true,
    "es6": true
  },
  "rules": {
    "no-console": 0,
    "indent": ["warning", 2]
  }
}

I installed node.js 200 years ago, mb need a specific version, but don't say which one. Then I entered on the command line
npm install -g eslint
, like something is established. Next, I started creating the config.eslintrc file in the folder where all my html files and folders with these files are, I entered the code that is highlighted above. After that, I went to Atom and downloaded the eslint plugin, it does not want to work as the author of the plugin indicated, mb this plugin does not work, but I think that something was not installed correctly for me.

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