[wp-trac] [WordPress Trac] #31823: Add ESLint integration (was: Add JSCS integration)
WordPress Trac
noreply at wordpress.org
Sat Jun 4 19:07:21 UTC 2016
#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
------------------------------+------------------------------
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",
> "excludeFiles": [
> "**/vendor/**",
> "**.min.js",
> "**/node_modules/**"
> ]
> }
> }}}
>
> Related:
> #30153 (PHP_CodeSniffer)
> #25187 (JSHnt)
> #28543 (Allow stricter JSHint checks for core files)
New description:
'''Update:''' The JSCS project has merged into ESLint. So now an ESLint
config is needed to be developed for core as opposed to a JSCS one.
----
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:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list