Skip to content

whatwedo/eslint-config-whatwedo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable Version

ESLint whatwedo Config

This project is a set of ESLint rules, which we are using at whatwedo. It's heavily based on Airbnb.

Installation

Install our predefined config.

npm install eslint-config-whatwedo --save-dev

This should install all peer dependencies (even ESLint by itself). Our rules are based on the Airbnb config and those have a couple of subpackages as well.

Setup ESLint in your project by adding a .eslintrc.js file with the following content:

module.exports = {
    "extends": "whatwedo",
}

Usage

In a perfect world you would be good to go. But as we all know sometimes we need to adjust project specfic things.

module.exports = {
    "extends": "whatwedo",
    globals: {
        wp: true,
    },
    rules: {},
}

In the rules object for example, you can add your own adjustments. This won't override the settings, but merge it.

Dependencies

License

This bundle is under the MIT license. See the complete license in the bundle: LICENSE

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published