xfiveco / generator-chisel

Chisel is a development framework for creating easy to maintain and fast WordPress websites.
https://www.getchisel.co
MIT License
270 stars 37 forks source link

How can I edit eslint rules? #527

Open WebCraftersStudio opened 1 year ago

WebCraftersStudio commented 1 year ago

Hello,

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

I need set:

max-nesting-depth: 4

Thanks.

luboskmetko commented 1 year ago

@jakub300 can you please advise on this?

jakub300 commented 1 year ago

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