Skip to content

nickgraffis/eslint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@nickgraffis/eslint

Automated Set Up

npx @nickgraffis/eslint -basic

⚠️ Remove node_modules: For automated set up, remove the node_modules folder. I'm not sure why this is causing an issue...

Flag Options

  • -basic: Basic ESLint configuration.
  • -react: React ESLint configuration.
    • react and ts configs.
  • -ts: TypeScript ESLint configuration.
    • ts and basic configs.
  • -vue: Vue ESLint configuration.
    • vue and ts configs.

Install

npm install @nickgraffis/eslint-[basic|react|ts|vue]

Config .eslintrc

{
  "extends": [
    "@nickgraffis/eslint-[basic|react|ts|vue]"
  ]
}

Config VSCode auto fix

Create .vscode/settings.json

{
  "prettier.enable": false,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}