Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: skip processing code blocks on specific languages like stylelint-prettier #415

Merged
merged 10 commits into from
Jun 27, 2022
Prev Previous commit
Next Next commit
fix: patch eslint-mdx v1 issue
JounQin committed Jun 26, 2022

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit abf7ddfcd4ea4a6893c2b896616ff7766533c8f6
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -17,7 +17,8 @@
"lint": "eslint .",
"test": "npm run lint && mocha",
"format": "yarn run prettier '**/*.{js,json,md,yml}' --write && yarn run lint --fix",
"generate-release": "node-release-script"
"generate-release": "node-release-script",
"prepare": "patch-package || exit 0"
},
"repository": {
"type": "git",
@@ -49,6 +50,7 @@
"eslint-plugin-self": "^1.2.1",
"graphql": "^16.5.0",
"mocha": "^9.2.2",
"patch-package": "^6.4.7",
"prettier": "^2.7.1",
"vue-eslint-parser": "^8.3.0"
},
13 changes: 13 additions & 0 deletions patches/eslint-mdx+1.17.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/eslint-mdx/lib/parser.js b/node_modules/eslint-mdx/lib/parser.js
index f7a955b..f151256 100644
--- a/node_modules/eslint-mdx/lib/parser.js
+++ b/node_modules/eslint-mdx/lib/parser.js
@@ -18,7 +18,7 @@ exports.DEFAULT_PARSER_OPTIONS = {
ecmaFeatures: {
jsx: true,
},
- ecmaVersion: new Date().getUTCFullYear(),
+ ecmaVersion: 2021,
sourceType: 'module',
tokens: true,
filePath: exports.PLACEHOLDER_FILE_PATH,
Loading