6.1.0 • Published 4 years ago

eslint-config-wpcalypso v6.1.0

Weekly downloads
4,171
License
GPL-2.0-or-later
Repository
github
Last release
4 years ago

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.

6.1.0

4 years ago

6.0.0

4 years ago

5.0.0

5 years ago

4.0.1

6 years ago

4.0.0

6 years ago

3.0.0

6 years ago

2.0.0

6 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.8.0

7 years ago

0.7.1

7 years ago

0.7.0

7 years ago

0.6.0

8 years ago

0.5.0

8 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago