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

How can I edit eslint rules? #527

Open
WebCraftersStudio opened this issue Oct 12, 2022 · 2 comments
Open

How can I edit eslint rules? #527

WebCraftersStudio opened this issue Oct 12, 2022 · 2 comments

Comments

@WebCraftersStudio
Copy link

Hello,

How can I set some additional rules in eslint for our project?

I need set:

max-nesting-depth: 4

Thanks.

@luboskmetko
Copy link
Member

@jakub300 can you please advise on this?

@jakub300
Copy link
Collaborator

jakub300 commented Oct 14, 2022

Hi, looks like you're trying to edit stylelint rules. In generated project there is stylelint.config.js file, you can edit it and add your rule, for example:

module.exports = {
  extends: ['stylelint-config-chisel'],
  rules: {
    'max-nesting-depth': 4,
  },
};

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

3 participants