eslint-config-wpcalypso

6.1.0 • Public • Published

Eslint config wpcalypso

An ESLint configuration following WordPress.com's "Calypso" JavaScript Coding Guidelines.

Usage

You should install this configuration and peer dependencies as devDependencies in your project:

yarn add --dev eslint-config-wpcalypso eslint eslint-plugin-wpcalypso

If you're planning to use the React superset of rules, you should also install eslint-plugin-react:

yarn add --dev eslint-plugin-react

Next, simply extend the configuration from your project's .eslintrc file:

"extends": "wpcalypso"

Or, if your project uses React and you want to opt in to additional React-specific rules, extend the React superset:

"extends": "wpcalypso/react"

Refer to the ESLint documentation on Shareable Configs for more information.

Suggesting Changes

Want to suggest a change to our style guide? Edit the JavaScript Coding Guidelines on the Automattic/wp-calypso repository and submit a pull request.

Want to revise the ESLint rules used here? Edit the index.js file and submit a pull request.

License

GNU General Public License v2.0 or later.

/eslint-config-wpcalypso/

    Package Sidebar

    Install

    npm i eslint-config-wpcalypso

    Weekly Downloads

    1,232

    Version

    6.1.0

    License

    GPL-2.0-or-later

    Unpacked Size

    27 kB

    Total Files

    6

    Last publish

    Collaborators

    • macbre
    • yuliyan
    • mjangda
    • matticbot
    • a8c
    • blowery
    • ehg_
    • sgomes
    • tyxla
    • saroshaga
    • nejclovrencic
    • sirbrillig
    • chriszarate
    • robersongomes
    • johngodley
    • jeherve
    • daledupreez-a8c
    • t2dw4t
    • luismulinari
    • andrea-sdl
    • elazzabi
    • fmfernandes
    • sirreal
    • wwa
    • chihsuan
    • manzoorwanijk
    • msurdi-a8c
    • newspack
    • dsmartg
    • kthai15
    • bgrgicak
    • robertsreberski_a8c
    • artpi
    • gmjuhasz
    • kat3samsin
    • brunobasto
    • dhenridev
    • micbosia8c
    • mrmurphy
    • wpvip-bot
    • etobiesen
    • alshakero
    • arthur791004
    • dilirity
    • mattwest-a8c
    • mehmoodak
    • natalia.vidal
    • chriskmnds
    • oandregal
    • galatanovidiu
    • kangzj
    • ryelle
    • aduth
    • flootr
    • ockham
    • dmsnell
    • samouri
    • mcsf