This package has been deprecated

Author message:

Use @bedrockstreaming/eslint-config instead

@m6web/eslint-plugin

2.0.0 • Public • Published

@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 😈:

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

here

Dependencies (7)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @m6web/eslint-plugin

    Weekly Downloads

    7

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    2.5 kB

    Total Files

    3

    Last publish

    Collaborators

    • doubleyo
    • tetsu9901
    • jsulpis
    • agory
    • valotvince
    • fdubost
    • flepretre
    • the-smaug
    • clement-berard