@m6web/eslint-plugin-react
Plugin for eslint and prettier used in m6web projects
Last updated 5 months ago by oltodo .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @m6web/eslint-plugin-react 
SYNC missed versions from official npm registry.

@m6web/eslint-plugin

The purpose of this package is simple, simplify the configuration of eslint and prettier in our projects.

It provides:

With that come some little changes from the default config of eslint-config-airbnb and prettier that you can find in index.js file and [here].

Setup

npm install --dev @m6web/eslint-plugin

or

yarn add --dev @m6web/eslint-plugin

Then you need to add the plugin in the .eslintrc file of your project. For that create a .eslintrc and add the following lines:

{
  "extends": "plugin:@m6web/default",
}

And that's all.

If you want to customize some rules, follow the eslint documentation.

Jest / Jasmine Support

If you want, you can add the jest support with the following lines:

{
  "env": {
    "browser": true,
    "jasmine": true
  }
}

Usage

Lint your code:

yarn eslint src/

Rewrite your code, the right way :smiling_imp::

yarn prettier-eslint -- --write 'src/**/*.js'

here

Current Tags

  • 4.0.0-alpha.0                                ...           alpha (9 months ago)
  • 3.1.0-alpha.c8ed00dc                                ...           canary (2 years ago)
  • 3.5.0                                ...           latest (5 months ago)

18 Versions

  • 3.5.0                                ...           5 months ago
  • 4.0.0-alpha.0                                ...           9 months ago
  • 3.4.0                                ...           a year ago
  • 3.3.0                                ...           a year ago
  • 3.2.0                                ...           a year ago
  • 3.1.0                                ...           2 years ago
  • 3.1.0-alpha.2                                ...           2 years ago
  • 3.1.0-alpha.1                                ...           2 years ago
  • 3.1.0-alpha.0                                ...           2 years ago
  • 3.0.1                                ...           2 years ago
  • 3.1.0-alpha.c8ed00dc                                ...           2 years ago
  • 3.1.0-alpha.4f298d09                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 3.0.0-alpha.759557ec                                ...           2 years ago
  • 3.0.0-alpha.45985559                                ...           2 years ago
  • 3.0.0-alpha.3b83a455                                ...           2 years ago
  • 3.0.0-alpha.f985f33c                                ...           2 years ago
  • 3.0.0-alpha.63ac77d6                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 9
Last Day 0
Last Week 3
Last Month 4
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |