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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.3
    0
  • 2.0.2
    0
  • 2.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i eslint-config-nwronski-rules

Weekly Downloads

0

Version

2.0.3

License

MIT

Unpacked Size

24.3 kB

Total Files

6

Last publish

Collaborators

  • nwronski