eslint-plugin-mdx
Advanced tools
Comparing version 1.16.0 to 1.17.0
@@ -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 @@ |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
91360
1092
0
Updatedeslint-mdx@^1.17.0