Skip to content

davidborzek/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config

A eslint config for my typescript projects.

Setup

1) Install

yarn add -D @davidborzek/eslint-config

2) Configure

You have to options to include the config in your projects.

  1. Add the config to a .eslintrc.js
module.exports = {
  extends: "@davidborzek",
  rules: {},
};

You can also add additional rules.

  1. Add it to the package.json of your project
{
  "eslintConfig": {
    "extends": "@davidborzek"
  }
}

3) Linting scripts (optional)

For lint fix and check scripts you can add the following lines to your package.json scripts:

{
  "scripts": {
    "lint": "eslint 'src/**/*.ts'",
    "lint-tests": "eslint 'test/**/*.ts'"
  }
}

Releases

No releases published

Packages

No packages published