Open ntwb opened 8 years ago
Version 1.0.0
has just been released:
• https://www.npmjs.com/package/eslint-config-wordpress
• https://github.com/ntwb/eslint-config-wordpress/releases/tag/1.0.0
Reassigning this issue to milestone 2.0.0
Version 1.1.0 has just been released: • https://www.npmjs.com/package/eslint-config-wordpress • https://github.com/ntwb/eslint-config-wordpress/releases/tag/1.1.0
Reassigning this issue to milestone 2.0.0
Version 2.0.0 has just been released: • https://www.npmjs.com/package/eslint-config-wordpress • https://github.com/ntwb/eslint-config-wordpress/releases/tag/2.0.0
Reassigning this issue to milestone 3.0.0
Overview
There are many issues with the current configuration here of
eslint-config-wordpress
as such here's a roadmap for the next 3 versions ofeslint-config-wordpress
.The first milestone release v1 will peel back the vast majority of rules to a minimal viable product which in this case is to match the current WordPress implementation of JSHint.
The second milestone v2 is based on the JSCS
wordpress
"preset, this configuration is widely used and is built on top the JSCSjquery
"preset" and WordPress'.jshintrc
The third milestone v3 builds on the v1 and v2 milestones by implementing the
eslint-plugin-wordpress
"recommended" shared config which implements and iterates on the continually evolving WordPress JavaScript Coding StandardsThe end result of the above will facilitate the use of
eslint-config-wordpress
being able to be used as a "drop in" replacement for JSHint via v1.0.0, for JSCS via 2.0.0, and with v3 being the major branch moving forwards implementing the full suite of WordPress' JavaScript Coding Standards.V1.0.0 https://github.com/ntwb/eslint-config-wordpress/milestones/1.0.0
The v1 release will be based on WordPress' current
.jshintrc
file: • https://core.trac.wordpress.org/browser/trunk/.jshintrcThis is currently a shared config in
eslint-plugin-wordpress
: • https://github.com/ntwb/eslint-plugin-wordpress/blob/master/lib/configs/jshint.js • https://github.com/ntwb/eslint-plugin-wordpress/blob/master/lib/configs/rules/jshint.jsAs this shared config cannot be "shared" with the plugin I'll manually replicate the config here.
V1.1.0 https://github.com/ntwb/eslint-config-wordpress/milestones/1.1.0
The v1.1 release will also be based on WordPress' current
.jshintrc
file: • https://core.trac.wordpress.org/browser/trunk/.jshintrcThis 1.1 milestone adds ESLint rules for the deprecated JSHint
onevar
, andtrailing
rules with their ESLint counterpart rulesone-var
andno-trailing-spaces
respectively, see #WP28236This is currently a shared config in
eslint-plugin-wordpress
: • https://github.com/ntwb/eslint-plugin-wordpress/blob/master/lib/configs/jshint.js • https://github.com/ntwb/eslint-plugin-wordpress/blob/master/lib/configs/rules/jshint.jsAs this shared config cannot be "shared" with the plugin I'll manually replicate the config here.
V2.0.0 https://github.com/ntwb/eslint-config-wordpress/milestones/2.0.0
Next up, v2 release will be based on JSCS' WordPress "preset: • https://github.com/jscs-dev/node-jscs/blob/master/presets/wordpress.json
This is currently a shared config in
eslint-plugin-wordpress
: • https://github.com/ntwb/eslint-plugin-wordpress/blob/master/lib/configs/jscs.js • https://github.com/ntwb/eslint-plugin-wordpress/blob/master/lib/configs/rules/jscs.jsAs this shared config cannot be "shared" with the plugin I'll manually replicate the config here.
V3.0.0 https://github.com/ntwb/eslint-config-wordpress/milestones/3.0.0
Next up, v3 release will be based on
eslint-plugin-wordpress
"recommended" shared config:This is currently a shared config in
eslint-plugin-wordpress
: • https://github.com/ntwb/eslint-plugin-wordpress/blob/master/lib/configs/recommended.js • https://github.com/ntwb/eslint-plugin-wordpress/blob/master/lib/configs/rules/recommended.jsRules for this shared configuration need to be audited and tested against the WordPress JavaScript Coding Standards, all work regarding this should be perfomed via issues and pull requests in the https://github.com/ntwb/eslint-plugin-wordpress repo.