blackcomb eslint rules
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-blackcomb-defaults
and required dependencies:
npm install eslint-plugin-blackcomb-defaults eslint-plugin-import eslint-plugin-import-newlines --save-dev
When using the typescript config, you will also need to install:
npm install @typescript-eslint/eslint-plugin eslint-import-resolver-typescript eslint-plugin-deprecation --save-dev
When using the angular config, you will also need to install:
npm install @angular-eslint/eslint-plugin @angular-eslint/eslint-plugin-template @angular-eslint/template-parser --save-dev
Add the desired blackcomb-defaults
configuration to the extends property of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"extends": ["plugin:blackcomb-defaults/typescript"]
}
The following configurations are available:
- javascript
- typescript
- angular