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

Rewriting read method #31

Open
eddiemonge opened this issue Jan 27, 2017 · 0 comments
Open

Rewriting read method #31

eddiemonge opened this issue Jan 27, 2017 · 0 comments

Comments

@eddiemonge
Copy link

Why does this make a custom read function? It removes some things like looking for stylintignore.

How about something like that?

		rules.cache = Object.assign({
			filesLen: 1,
			fileNo: 1,
			file: file.path,
			files: [file.path],
		}, rules.cache || {});
		rules.state = Object.assign({
			quiet: true
		}, rules.state || {});

		if (reporter) {
			rules.reporter = reporter;
			rules.config.reporterOptions = reporterOptions;
		}
		stylint(file.path, rules)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant