Git Product home page Git Product logo

eslint-plugin-markdownlint's People

Contributors

bodolsog avatar dependabot[bot] avatar morevm avatar paweldrozd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

eslint-plugin-markdownlint's Issues

Doesn't seem to be fully compatible with ESlint 8

Hi there,
I'm currently getting the following error with MD013:

Error: Fixable rules must set the `meta.fixable` property to "code" or "whitespace".
Occurred while linting <project-path>\Something.md:1
Rule: "markdownlint/md013"
    at Object.report (<project-path>\node_modules\eslint\lib\linter\linter.js:1050:35)
    at <project-path>\node_modules\eslint-plugin-markdownlint\lib\ruleChecker.js:117:35
    at Array.forEach (<anonymous>)
    at reportErrors (<project-path>\node_modules\eslint-plugin-markdownlint\lib\ruleChecker.js:117:10)
    at Program (<project-path>\node_modules\eslint-plugin-markdownlint\lib\ruleChecker.js:128:9)
    at ruleErrorHandler (<project-path>\node_modules\eslint\lib\linter\linter.js:1076:28)
    at <project-path>\node_modules\eslint\lib\linter\safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (<project-path>\node_modules\eslint\lib\linter\safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (<project-path>\node_modules\eslint\lib\linter\node-event-generator.js:297:26)

The migration guide states that 'only rules written as an object are allowed to provide fixes and must have a meta.fixable property set to either "code" or "whitespace"'. Source: https://eslint.org/docs/latest/use/migrate-to-8.0.0#-rules-require-metafixable-to-provide-fixes

Using alongside the vscode markdownlint plugin

In order to configure the vscode plugin you have to create a config file named .markdownlint.json and specify your rules there.

This plugin reads rules from eslintrc.

What I'm asking for is a way to not have to duplicate the rules in both files.

Maybe the plugin could also provide an eslint formatter so the extension is not needed?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.