chore: turn off lint rule no-unescaped-entities for mdx
Also updates eslint-mdx and eslint-plugin-mdx Closes #911 #914
Luke Karrys committed
Jan 8, 2024 at 11:06 UTC
589324f0307d71f70decfd971af588c341a16d02
3 files changed
+46
-17
.eslintrc.js
+2
-1
@@ -43,10 +43,11 @@ module.exports = {
43
},
44
rules: {
45
'no-irregular-whitespace': 'off',
46
+ 'react/no-unescaped-entities': 'off',
47
},
48
},
49
{
49
- files: ['*.mdx', 'shared.js', 'src/**/*.js'],
50
+ files: ['*.mdx', 'src/shared.js', 'src/**/*.js'],
51
rules: {
52
'react/forbid-elements': [
53
'error',
package-lock.json
+42
-14
@@ -56,11 +56,11 @@
56
"eslint": "^8.56.0",
57
"eslint-config-react-app": "^7.0.1",
58
"eslint-import-resolver-webpack": "^0.13.8",
59
- "eslint-mdx": "^3.0.0",
59
+ "eslint-mdx": "^3.1.3",
60
"eslint-plugin-github": "^4.10.1",
61
"eslint-plugin-import": "^2.29.1",
62
"eslint-plugin-jsx-a11y": "^6.8.0",
63
- "eslint-plugin-mdx": "^3.0.0",
63
+ "eslint-plugin-mdx": "^3.1.3",
64
"eslint-plugin-node": "^11.1.0",
65
"eslint-plugin-prettier": "^5.1.2",
66
"eslint-plugin-primer-react": "^4.0.4",
@@ -8147,6 +8147,18 @@
8147
"node": ">=14"
8148
}
8149
},
8150
+ "node_modules/@pkgr/core": {
8151
+ "version": "0.1.0",
8152
+ "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.1.0.tgz",
8153
+ "integrity": "sha512-Zwq5OCzuwJC2jwqmpEQt7Ds1DTi6BWSwoGkbb1n9pO3hzb35BoJELx7c0T23iDkBGkh2e7tvOtjF3tr3OaQHDQ==",
8154
+ "dev": true,
8155
+ "engines": {
8156
+ "node": "^12.20.0 || ^14.18.0 || >=16.0.0"
8157
+ },
8158
+ "funding": {
8159
+ "url": "https://opencollective.com/unts"
8160
+ }
8161
+ },
8162
"node_modules/@pkgr/utils": {
8163
"version": "2.4.2",
8164
"resolved": "https://registry.npmjs.org/@pkgr/utils/-/utils-2.4.2.tgz",
@@ -9882,9 +9894,9 @@
9894
}
9895
},
9896
"node_modules/acorn": {
9885
- "version": "8.11.2",
9886
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz",
9887
- "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==",
9897
+ "version": "8.11.3",
9898
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz",
9899
+ "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==",
9900
"bin": {
9901
"acorn": "bin/acorn"
9902
},
@@ -15056,19 +15068,19 @@
15068
}
15069
},
15070
"node_modules/eslint-mdx": {
15059
- "version": "3.0.0",
15060
- "resolved": "https://registry.npmjs.org/eslint-mdx/-/eslint-mdx-3.0.0.tgz",
15061
- "integrity": "sha512-vhRMspKg40avafPts17WXocCXnFCXERkOmEPi1P8XL2Iq3jjpLQoO/CXeYXdt04TNlGOyYkHdJ7F0M4Bjb+/Lg==",
15071
+ "version": "3.1.3",
15072
+ "resolved": "https://registry.npmjs.org/eslint-mdx/-/eslint-mdx-3.1.3.tgz",
15073
+ "integrity": "sha512-de+3AErxMIxAm16sl/YPraDT9lUK4qJC/MX23i1LnXBocDYwypzBHAZH7EFSDlFHdemeKv1RXn68jKa/CdhmAg==",
15074
"dev": true,
15075
"dependencies": {
15064
- "acorn": "^8.11.2",
15076
+ "acorn": "^8.11.3",
15077
"acorn-jsx": "^5.3.2",
15078
"espree": "^9.6.1",
15079
"estree-util-visit": "^2.0.0",
15080
"remark-mdx": "^3.0.0",
15081
"remark-parse": "^11.0.0",
15082
"remark-stringify": "^11.0.0",
15071
- "synckit": "^0.8.6",
15083
+ "synckit": "^0.9.0",
15084
"tslib": "^2.6.2",
15085
"unified": "^11.0.4",
15086
"unified-engine": "^11.2.0",
@@ -15931,6 +15943,22 @@
15943
"url": "https://opencollective.com/unified"
15944
}
15945
},
15946
+ "node_modules/eslint-mdx/node_modules/synckit": {
15947
+ "version": "0.9.0",
15948
+ "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.9.0.tgz",
15949
+ "integrity": "sha512-7RnqIMq572L8PeEzKeBINYEJDDxpcH8JEgLwUqBd3TkofhFRbkq4QLR0u+36avGAhCRbk2nnmjcW9SE531hPDg==",
15950
+ "dev": true,
15951
+ "dependencies": {
15952
+ "@pkgr/core": "^0.1.0",
15953
+ "tslib": "^2.6.2"
15954
+ },
15955
+ "engines": {
15956
+ "node": "^14.18.0 || >=16.0.0"
15957
+ },
15958
+ "funding": {
15959
+ "url": "https://opencollective.com/unts"
15960
+ }
15961
+ },
15962
"node_modules/eslint-mdx/node_modules/unified": {
15963
"version": "11.0.4",
15964
"resolved": "https://registry.npmjs.org/unified/-/unified-11.0.4.tgz",
@@ -16722,12 +16750,12 @@
16750
}
16751
},
16752
"node_modules/eslint-plugin-mdx": {
16725
- "version": "3.0.0",
16726
- "resolved": "https://registry.npmjs.org/eslint-plugin-mdx/-/eslint-plugin-mdx-3.0.0.tgz",
16727
- "integrity": "sha512-vLSFgcD1UtCCciGiUhaIpUhHlWuYJyjUHdUiV+C1lDFbvuWbZhVr9ZhTbOhPGRUljfDeiCz3pyturTIlpH/fEA==",
16753
+ "version": "3.1.3",
16754
+ "resolved": "https://registry.npmjs.org/eslint-plugin-mdx/-/eslint-plugin-mdx-3.1.3.tgz",
16755
+ "integrity": "sha512-4/zshamx774j7BTOryuWAYcRjg9asjjI37VrQV0EI8PUxuti8oVU2RPvyLD5phxoT52ZEW2648l/Q1RuWuGT5w==",
16756
"dev": true,
16757
"dependencies": {
16730
- "eslint-mdx": "^3.0.0",
16758
+ "eslint-mdx": "^3.1.3",
16759
"eslint-plugin-markdown": "^3.0.1",
16760
"remark-mdx": "^3.0.0",
16761
"remark-parse": "^11.0.0",
package.json
+2
-2
@@ -74,11 +74,11 @@
74
"eslint": "^8.56.0",
75
"eslint-config-react-app": "^7.0.1",
76
"eslint-import-resolver-webpack": "^0.13.8",
77
- "eslint-mdx": "^3.0.0",
77
+ "eslint-mdx": "^3.1.3",
78
"eslint-plugin-github": "^4.10.1",
79
"eslint-plugin-import": "^2.29.1",
80
"eslint-plugin-jsx-a11y": "^6.8.0",
81
- "eslint-plugin-mdx": "^3.0.0",
81
+ "eslint-plugin-mdx": "^3.1.3",
82
"eslint-plugin-node": "^11.1.0",
83
"eslint-plugin-prettier": "^5.1.2",
84
"eslint-plugin-primer-react": "^4.0.4",