leo-buneev / eslint-plugin-md

Allows you to lint markdown code in your *.md files.
16 stars 5 forks source link

Disabling rules #12

Closed amokrunner closed 3 years ago

amokrunner commented 3 years ago

I'm strugging with disabling rules using the .eslintrc.js file. All of the output is tagged as "md/remark", so if I disable that rule everything get's disabled. 14:59 error Missing new line after list item (list-item-spacing) md/remark

How can I disable the "list-item-spacing" rule?

Thanks!

amokrunner commented 3 years ago

Solved; for anybody else trying to do the same or similar, add this to rules:

    'md/remark': [
      'error',
      {
        plugins: [
          'preset-lint-markdown-style-guide',
          ['lint-list-item-spacing', false]
        ]
      }
    ]