@dekode/eslint-plugin

0.0.1 • Public • Published

@dekode/eslint-plugin

Dekodes's ESLint plugin, following our styleguide.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install @dekode/eslint-plugin:

$ npm install @dekode/eslint-plugin --save-dev

Usage

This plugin exports a base config that enforces best practices.

Create your own .eslintrc.js configuration file:

{
	"extends": "plugin:@dekode/base",
	"plugins": [
		"@dekode"
	]
}

Or see the ESLint docs for more information about configuration file formats.

You can also stack any of the extra shared configs on top of the "base" config by extending an array of linting configs. For example, this package provides a React linting config, which can be added to the base config with the following configuration file:

{
	"extends": [
		"plugin:@dekode/base",
		"plugin:@dekode/react"
	]
}

Available rulesets

The following rulesets are available:

  • base: Enforces best practices and possible errors
  • react: Enforces best React.js practices

Readme

Keywords

none

Package Sidebar

Install

npm i @dekode/eslint-plugin

Weekly Downloads

12

Version

0.0.1

License

MIT

Unpacked Size

68.2 kB

Total Files

17

Last publish

Collaborators

  • stian-overasen
  • walbo
  • olethomas