@seatentacle/eslint-plugin

An opensource collection of ESlint configs used by SeaTentacle

Usage no npm install needed!

<script type="module">
  import seatentacleEslintPlugin from 'https://cdn.skypack.dev/@seatentacle/eslint-plugin';
</script>

README

SeaTentacle ESLint Plugin

GitHub license NPM Version semantic-release

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 rules
  • plugin:@seatentacle/typescript contains javascript config and rules specific for TS

License

The code is licensed under MIT.