/eslint-plugins-esayemm

Custom rules

Primary LanguageJavaScript

eslint-plugins-esayemm

yarn add eslint-plugins-esayemm --dev

Usage

In .eslintrc

{
	"plugins": ["esayemm"],
	"rules": {
		"esayemm/align-imports": 2,
		"esayemm/sort-imports": 2
	}
}

Rules

esayemm/align-imports

Fixable

Invalid

import a from 'a'
import foo from 'foo'

Valid

import a   from 'a'
import foo from 'foo'

esayemm/sort-imports

Fixable

Invalid

import b from 'b'
import a from 'a'

Valid

import a from 'a'
import b from 'b'

Development

Run make to see the development API.

Links