Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 9, 2021. It is now read-only.

BedrockStreaming/eslint-tools-m6web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED

Eslint-tools-m6web

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 .eslintrc file and here.

Setup

npm install --dev eslint-tools-m6web

or

yarn add --dev eslint-tools-m6web

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

{
  "extends": "./node_modules/eslint-tools-m6web/.eslintrc"
}

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'

About

Brings prettier and eslint with airbnb guiding style in only one dependency

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors