@seatentacle/eslint-plugin
v1.2.0
Published
An opensource collection of ESlint configs used by SeaTentacle
Downloads
3
Readme
SeaTentacle ESLint Plugin
Installation
The plugin uses @typescript-eslint/parser
even for javascript projects.
npm i --save-dev @seatentacle/eslint-plugin
Note: make sure that your project has typescript
and eslint
installed.
Usage
Add @seatentacle
to the plugins section of a .eslintrc
file. In the extends section add the desired config.
{
"plugin": [
"@seatentacle"
],
"extends": [
"plugin:@eseatentacle/javascript"
]
}
Note: make sure the appropriate extensions are passed in the eslint
command. By default, eslint
searches only for .js
files.
Configs
The plugin contains two configs:
plugin:@seatentacle/javascript
describes general rulesplugin:@seatentacle/typescript
contains javascript config and rules specific for TS
License
The code is licensed under MIT.