paweldrozd / eslint-plugin-markdownlint Goto Github PK
View Code? Open in Web Editor NEWEslint plugin which runs markdownlint. This is github mirror repository of https://gitlab.com/pawelbbdrozd/eslint-plugin-markdownlint
License: MIT License
Eslint plugin which runs markdownlint. This is github mirror repository of https://gitlab.com/pawelbbdrozd/eslint-plugin-markdownlint
License: MIT License
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
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.