Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

eslint-config-elemefe

0.3.0 • Public • Published

eslint-config-elemefe

This package provides Elemefe's base JS .eslintrc as an extensible shared config.

Usage

eslint-config-elemefe

Our default export contains all of our ESLint rules, including ECMAScript 6.

First, install this package

npm install --save-dev eslint-config-elemefe eslint

Then add following contents to your .eslintrc file

{
  "extends": "elemefe"
}

eslint-config-elemefe/legacy

For some legacy project using es5.

First, install this package

npm install --save-dev eslint-config-elemefe eslint

Then add following contents to your .eslintrc file

{
  "extends": "elemefe/legacy"
}

eslint-config-elemefe/react

First, install this package and necessary plugins

npm install --save-dev eslint-config-elemefe eslint babel-eslint eslint-plugin-react eslint-plugin-import eslint-plugin-jsx-a11y

Then add following contents to your .eslintrc file

{
  "extends": "elemefe/react"
}

License

MIT

Install

npm i eslint-config-elemefe

DownloadsWeekly Downloads

534

Version

0.3.0

License

MIT

Last publish

Collaborators

  • avatar