Socket
Socket
Sign inDemoInstall

eslint-plugin-mdx

Package Overview
Dependencies
Maintainers
4
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-mdx - npm Package Compare versions

Comparing version 1.16.0 to 1.17.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [1.17.0](https://github.com/mdx-js/eslint-mdx/compare/v1.16.0...v1.17.0) (2022-03-21)
### Features
* allow to ignore remark config ([#374](https://github.com/mdx-js/eslint-mdx/issues/374)) ([1c9e3fd](https://github.com/mdx-js/eslint-mdx/commit/1c9e3fdccbd7571cec4ea2758412ace1dfe19222))
# [1.16.0](https://github.com/mdx-js/eslint-mdx/compare/v1.15.1...v1.16.0) (2021-10-20)

@@ -8,0 +19,0 @@

7

lib/rules/remark.js

@@ -47,5 +47,6 @@ "use strict";

}
const ignoreRemarkConfig = Boolean(options.ignoreRemarkConfig);
const physicalFilename = (0, eslint_mdx_1.getPhysicalFilename)(filename);
const sourceText = sourceCode.getText(node);
const remarkProcessor = (0, eslint_mdx_1.getRemarkProcessor)(physicalFilename, isMdx);
const remarkProcessor = (0, eslint_mdx_1.getRemarkProcessor)(physicalFilename, isMdx, ignoreRemarkConfig);
const fileOptions = {

@@ -59,3 +60,3 @@ path: physicalFilename,

if (broken) {
const { messages, content } = lazyRemark.processSync(fileOptions, physicalFilename, isMdx);
const { messages, content } = lazyRemark.processSync(fileOptions, physicalFilename, isMdx, ignoreRemarkConfig);
file.messages = messages;

@@ -73,3 +74,3 @@ fixedText = content;

brokenCache.set(remarkProcessor, (broken = true));
const { messages, content } = lazyRemark.processSync(fileOptions, physicalFilename, isMdx);
const { messages, content } = lazyRemark.processSync(fileOptions, physicalFilename, isMdx, ignoreRemarkConfig);
file.messages = messages;

@@ -76,0 +77,0 @@ fixedText = content;

@@ -7,4 +7,4 @@ "use strict";

const vfile_1 = (0, tslib_1.__importDefault)(require("vfile"));
(0, synckit_1.runAsWorker)((fileOptions, physicalFilename, isMdx) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
const remarkProcessor = (0, eslint_mdx_1.getRemarkProcessor)(physicalFilename, isMdx);
(0, synckit_1.runAsWorker)((fileOptions, physicalFilename, isMdx, ignoreRemarkConfig) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
const remarkProcessor = (0, eslint_mdx_1.getRemarkProcessor)(physicalFilename, isMdx, ignoreRemarkConfig);
const file = (0, vfile_1.default)(fileOptions);

@@ -11,0 +11,0 @@ try {

{
"name": "eslint-plugin-mdx",
"version": "1.16.0",
"version": "1.17.0",
"description": "ESLint Plugin for MDX",

@@ -34,3 +34,3 @@ "repository": "git+https://github.com/mdx-js/eslint-mdx.git",

"dependencies": {
"eslint-mdx": "^1.16.0",
"eslint-mdx": "^1.17.0",
"eslint-plugin-markdown": "^2.2.1",

@@ -41,3 +41,3 @@ "synckit": "^0.4.1",

},
"gitHead": "062aad5440be6546d8f2fcf78bfd540b2b2b26e4"
"gitHead": "16c5934530b2f55059dcb7695707f721a693a0d6"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc