generator-chisel icon indicating copy to clipboard operation
generator-chisel copied to clipboard

How can I edit eslint rules?

Open WebCraftersStudio opened this issue 3 years ago • 2 comments

Hello,

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

I need set:

max-nesting-depth: 4

Thanks.

WebCraftersStudio avatar Oct 12 '22 08:10 WebCraftersStudio

@jakub300 can you please advise on this?

luboskmetko avatar Oct 13 '22 05:10 luboskmetko

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,
  },
};

jakub300 avatar Oct 14 '22 11:10 jakub300