@davidborzek/eslint-config

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i @davidborzek/eslint-config

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

3.11 kB

Total Files

5

Last publish

Collaborators

  • davidborzek