npm install eslint-config-nixon --save-dev
This package contains the following configurations:
eslint-config-nixon
eslint-config-nixon/typescript
Contains our standard rules to be used across all projects.
{
"extends": "eslint-config-nixon"
}
Contains rules specific to TypeScript. Requires @typescript-eslint/eslint-plugin and @typescript-eslint/parser
npm install typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin --save-dev
{
"extends": "eslint-config-nixon",
"overrides": [
{
"files": ["**/*.ts"],
"extends": "eslint-config-nixon/typescript",
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"parserOptions": {"project": "tsconfig.json"}
}
]
}