2.0.3 • Published 6 years ago
eslint-config-nwronski-rules v2.0.3
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 tslintInstall the eslint-config-nwronski-rules module.
npm i -D eslint-config-nwronski-rulesCreate 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\""
}
}