[wp-trac] [WordPress Trac] #31823: Add ESLint integration
WordPress Trac
noreply at wordpress.org
Tue Jun 6 12:51:44 UTC 2017
#31823: Add ESLint integration
------------------------------+------------------------------
Reporter: westonruter | Owner:
Type: enhancement | Status: new
Priority: lowest | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: | Focuses: javascript
------------------------------+------------------------------
Comment (by tfrommen):
I just came across this ticket. Not sure how things are going here, but at
Inpsyde, we are using ESLint for a longer time already.
Quite a while ago, I created a [https://github.com/inpsyde/javascript
Modern JavaScript Style Guide] that is heavily influenced by the
[https://make.wordpress.org/core/handbook/best-practices/coding-
standards/javascript/ WordPress JavaScript Coding Standards] as well as
the [https://github.com/airbnb/javascript Airbnb JavaScript Style Guide],
which also includes ES6-specific content. Based on that style guide, I
then created a complete
[https://github.com/inpsyde/javascript/tree/master/packages/eslint-config-
inpsyde shareable ESLint config], following WordPress coding standards,
and at the same time incorporating modern JavaScript, such as ES6
features. For more background, please refer to an [https://tfrommen.de
/using-eslint-for-wordpress-projects/ ESLint (for WordPress) introduction
post] on my personal blog.
I just wanted to leave this here for consideration and/or discussion. The
config could at least serve as a starting point, if not really the base of
an official WordPress ESLint config.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31823#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list