Linter Flashcards
ES Lint for Launch School:
Install es lint at launch school
npm install eslint@7.12.1 eslint-cli babel-eslint –save-dev
uninstall eslint
$ npm uninstall eslint eslint-cli babel-eslint -g
ES Lint for Launch School:
use custom settings for eslint
When you run ESLint, it looks for this file (and others) in the current directory or the closest parent directory that contains a usable configuration file, but it does not look in your home directory. The easiest way to leverage this search is to put your default .eslintrc.yml file in a directory that contains all of your projects as subdirectories. Alternatively, you can put the file in each project directory and customize it as needed.
In practice, nested configurations are allowed, but can be confusing. Put the .eslintrc.yml file in your top-level projects directory or put it in each individual project directory. Don’t put it in both.
ES Lint for Launch School:
run eslint in terminal
npx eslint hello.js
get eslint to work in vscode
if everything else is setup, it should automatically work
ES Lint for Launch School:
ES Lint for Launch School: