Skip to content

cbryant24/lint-rules-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eslint and Prettier Setup

Run the following command to install and install peerDependencies as devDependencies for the current project

npx install-peerdeps --dev @cbryant24/eslint-config

Create a .eslintrc file in the root of your project's directory (it should live where package.json does). Your .eslintrc file should look like this:

{
  "extends": [
    "@cbryant24/eslint-config"
  ]
}

Run the following command to create a prettier config file

touch .prettierrc.json

Add the follow configuration to the .prettierrc.json file

{
  "tabWidth": 2,
  "semi": true,
  "singleQuote": true
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published