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

.stylelintrc.js awareness #3

Open
timkelty opened this issue Nov 16, 2017 · 1 comment
Open

.stylelintrc.js awareness #3

timkelty opened this issue Nov 16, 2017 · 1 comment

Comments

@timkelty
Copy link

You provide a method for setting your stylelint config as a neutrino option, and then referencing that via .stylelintrc.js: https://github.com/barraponto/neutrino-middleware-stylelint#stylelintconfigjs

I actually want to go the other way - set my config in .stylelintrc.js.

Currently I'm achieving this like so:

  neutrino.use('neutrino-middleware-stylelint', {
    config: require(path.join(neutrino.options.root, '.stylelintrc.js')),
  });

But it would be nice if the default options.config were undefined, so by default it would use its config finding rules: https://stylelint.io/user-guide/configuration/#loading-the-configuration-object

With neutrino-middleware-eslint, I can do this:

  neutrino.use('neutrino-middleware-eslint', {
    eslint: {
      useEslintrc: true,
    },
  });
@timkelty
Copy link
Author

Although…there seem to be some compelling reasons not to do this: neutrinojs/neutrino#382 (comment)

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