eslint-config-nwronski-rules

2.0.3 • Public • Published

eslint-config-nwronski-rules

This repo contains the linting rules for my projects that use ESLint with TypeScript.

Installation

Install ESLint and TSLint (for now) for your project.

npm i -D eslint tslint

Install the eslint-config-nwronski-rules module.

npm i -D eslint-config-nwronski-rules

Create a .eslintrc.json file in the root folder of your project and add the following:

{
  "extends": "nwronski-rules",
  "parserOptions": {
    "project": "./tsconfig.json"
  }
}

Usage

Add a script to the scripts section of your package.json, making sure to set the correct pattern for your source files (the example uses src/**/*.ts):

{
  "scripts": {
    "lint": "eslint --fix \"./src/**.ts\""
  }
}

Readme

Keywords

Package Sidebar

Install

npm i eslint-config-nwronski-rules

Weekly Downloads

6

Version

2.0.3

License

MIT

Unpacked Size

24.3 kB

Total Files

6

Last publish

Collaborators

  • nwronski