[wp-trac] [WordPress Trac] #31823: Add JSCS integration

WordPress Trac noreply at wordpress.org
Tue Mar 31 22:22:30 UTC 2015


#31823: Add JSCS integration
------------------------------+------------------------------
 Reporter:  westonruter       |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  lowest            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:  javascript
------------------------------+------------------------------
Description changed by westonruter:

Old description:

> The [http://jscs.info/ JSCS] project has [https://github.com/jscs-dev
> /node-jscs/issues/1099 added] a [https://github.com/jscs-dev/node-
> jscs/blob/master/presets/wordpress.json wordpress] preset. This could be
> useful to be included in Core. All it needs is a `.jscsrc` file located
> in the root which contains:
>
> {{{#!js
> {
>         "preset": "wordpress"
> }
> }}}
>
> Related:
> #30153 (PHP_CodeSniffer)
> #25187 (JSHnt)
> #28543 (Allow stricter JSHint checks for core files)

New description:

 The [http://jscs.info/ JSCS] project has [https://github.com/jscs-dev
 /node-jscs/issues/1099 added] a [https://github.com/jscs-dev/node-
 jscs/blob/master/presets/wordpress.json wordpress] preset. This could be
 useful to be included in Core. All it needs is a `.jscsrc` file located in
 the root which contains:

 {{{#!js
 {
         "preset": "wordpress",
         "excludeFiles": [
                 "**/vendor/**",
                 "**.min.js",
                 "**/node_modules/**"
         ]
 }
 }}}

 Related:
 #30153 (PHP_CodeSniffer)
 #25187 (JSHnt)
 #28543 (Allow stricter JSHint checks for core files)

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31823#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list