Skip to content

Latest commit

 

History

History

eslint-config

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@yeger/eslint-config

npm

Installation

yarn add -D eslint @yeger/eslint-config

Usage

{
  "extends": ["@yeger"]
}

While using the standard eslint command is possible, the yeger-lint command automatically includes all supported files in the current directory:

{
  "scripts": {
    "lint": "yeger-lint",
    "lint:fix": "yeger-lint --fix"
  }
}

lint-staged

lint-staged will not work with the import/no-unresolved rule if TypeScript's path aliases are used. Hence, the rule has to be disabled for this use case:

{
  "lint-staged": {
    "*.{astro,html,js,jsx,json,md,ts,tsx,vue,yaml,yml}": "eslint --fix --rule 'import/no-unresolved: off'"
  }
}