Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match yeoman generator structure #8

Merged

Conversation

alexlafroscia
Copy link
Contributor

Closes #5

Hope you don't mind I added myself to the contributors list.

At some point, someone should go through the files in docs/rules/* and update them to be closer to the syntax of official docs files. My pass here just copies the contents from the one big file and breaks it up into individual ones.

@alexlafroscia
Copy link
Contributor Author

Unrelated, but just wanted to say 👍 for removing the Gulp pre-processing; the coverage report was nice, but removing it makes it much easier to write new tests because you can just run the one test alone through Mocha.

Copy link
Member

@michalsnik michalsnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job @alexlafroscia ! Everything looks perfect 👍 One more approval and we're good to 🚀
cc @kevinkucharczyk @jbandura

@@ -8,8 +8,8 @@
"test": "test"
},
"scripts": {
"test": "mocha test/* --reporter nyan",
"start": "mocha test/* --reporter nyan --watch"
"test": "mocha tests --recursive --reporter nyan",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grabbed it from the plugin config that would be generated, if you used Yeoman to create the initial plugin:

https://github.com/eslint/generator-eslint/blob/43e6fe26cca2f19628bb94e34e4430710bad9918/plugin/templates/_package.json#L13

var rules = {};
var ruleDir = resolve(__dirname, 'rules');

fs.readdirSync(ruleDir).forEach(function(name) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great that we can finally get rid of this 👍

Copy link
Contributor

@kevinkucharczyk kevinkucharczyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@michalsnik michalsnik merged commit 74b2642 into ember-cli:master Jan 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compatibility with yeoman generator for eslint
4 participants