@yeger/eslint-config

2.2.3 • Public • Published

@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'"
  }
}

Package Sidebar

Install

npm i @yeger/eslint-config

Weekly Downloads

151

Version

2.2.3

License

MIT

Unpacked Size

9.19 kB

Total Files

5

Last publish

Collaborators

  • yeger