Bump `eslint` (#6201)
parent
4e8f911a29
commit
24f161db56
|
@ -23,6 +23,7 @@ rules:
|
|||
- never
|
||||
prefer-arrow-callback: error
|
||||
prefer-const: error
|
||||
react/display-name: off
|
||||
react/no-deprecated: off
|
||||
react/prop-types: off
|
||||
strict: error
|
||||
|
|
14
package.json
14
package.json
|
@ -82,12 +82,12 @@
|
|||
"builtin-modules": "2.0.0",
|
||||
"codecov": "codecov/codecov-node#e427d900309adb50746a39a50aa7d80071a5ddd0",
|
||||
"cross-env": "5.0.5",
|
||||
"eslint": "4.18.2",
|
||||
"eslint-config-prettier": "2.9.0",
|
||||
"eslint-friendly-formatter": "3.0.0",
|
||||
"eslint-plugin-import": "2.9.0",
|
||||
"eslint-plugin-prettier": "2.6.0",
|
||||
"eslint-plugin-react": "7.7.0",
|
||||
"eslint": "5.16.0",
|
||||
"eslint-config-prettier": "4.3.0",
|
||||
"eslint-formatter-friendly": "6.0.0",
|
||||
"eslint-plugin-import": "2.17.3",
|
||||
"eslint-plugin-prettier": "3.1.0",
|
||||
"eslint-plugin-react": "7.13.0",
|
||||
"execa": "0.10.0",
|
||||
"jest": "23.3.0",
|
||||
"jest-junit": "5.0.0",
|
||||
|
@ -123,7 +123,7 @@
|
|||
"perf-repeat": "yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",
|
||||
"perf-repeat-inspect": "yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",
|
||||
"perf-benchmark": "yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",
|
||||
"lint": "cross-env EFF_NO_LINK_RULES=true eslint . --format node_modules/eslint-friendly-formatter",
|
||||
"lint": "cross-env EFF_NO_LINK_RULES=true eslint . --format friendly",
|
||||
"lint-docs": "prettylint {.,docs,website,website/blog}/*.md",
|
||||
"lint-dist": "eslint --no-eslintrc --no-ignore --env=browser \"dist/!(bin-prettier|index|third-party).js\"",
|
||||
"build": "node --max-old-space-size=2048 ./scripts/build/build.js",
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
const { getOrderedListItemInfo, mapAst, splitText } = require("./utils");
|
||||
|
||||
// 0x0 ~ 0x10ffff
|
||||
// eslint-disable-next-line no-control-regex
|
||||
const isSingleCharRegex = /^([\u0000-\uffff]|[\ud800-\udbff][\udc00-\udfff])$/;
|
||||
|
||||
function preprocess(ast, options) {
|
||||
|
|
|
@ -17,7 +17,7 @@ export default function({ version }) {
|
|||
<a
|
||||
href={`https://github.com/prettier/prettier/${href}`}
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
rel="noreferrer noopener"
|
||||
>
|
||||
{match ? `PR #${match[1]}` : `v${version}`}
|
||||
</a>,
|
||||
|
|
Loading…
Reference in New Issue