jscs-dev / babel-jscs

(deprecated) JSCS has merged with ESLint, so check out babel-eslint!
https://github.com/babel/babel-eslint
MIT License
27 stars 6 forks source link

Add JSCS tests #2

Closed hzoo closed 9 years ago

hzoo commented 9 years ago

Can probably do something similar to https://github.com/babel/babel-eslint/pull/116

Will will need to modify jscs as well to support this? ESLint has a tester repo and had to be modified to allow the parser to be changed globally (since we want to run all tests with the babel-jscs parser).

mrjoelkemp commented 9 years ago

Can't rewire esprima to be babel-jscs? It's a bit of a hack, but wouldn't require changing the core.

hzoo commented 9 years ago

Ok yeah I guess similar to all the module hacks for estraverse. We also could probably replace the estraverse module with just the babel visitor instead for jscs in tree-iterator

hzoo commented 9 years ago

Added as a submodule already* in https://github.com/hzoo/babel-jscs/commit/cafdea63e0187d17c4cc0c77d6d359667784d373