Plugin for eslint and prettier used in m6web projects


873.5.02 years ago4 years agoMinified + gzip package size for @m6web/eslint-plugin-react in KB



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].


npm install --dev @m6web/eslint-plugin


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


Lint your code:

yarn eslint src/

Rewrite your code, the right way :smiling_imp::

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


If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.