mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-30 17:27:22 +08:00
This CL adds the eslint-plugin-jsdoc plugin and enables just one rule, `jsdoc/check-alignment`, which ensures that all the lines in a comment are correctly aligned. For example: ``` /** * foo * bar */ ``` Would fail the check and be corrected to: ``` /** * foo * bar */ ``` DISABLE_THIRD_PARTY_CHECK=deliberate install + use of eslint-plugin-jsdoc node_module Bug: none Change-Id: I969983cd550653654a334ede3409b8c850467245 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4110906 Commit-Queue: Andres Olivares <andoli@chromium.org> Reviewed-by: Andres Olivares <andoli@chromium.org> Auto-Submit: Jack Franklin <jacktfranklin@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
87 lines
2.4 KiB
JSON
87 lines
2.4 KiB
JSON
{
|
|
"name": "@es-joy/jsdoccomment",
|
|
"version": "0.36.1",
|
|
"author": "Brett Zamir <brettz9@yahoo.com>",
|
|
"contributors": [],
|
|
"description": "Maintained replacement for ESLint's deprecated SourceCode#getJSDocComment along with other jsdoc utilities",
|
|
"license": "MIT",
|
|
"keywords": [
|
|
"eslint",
|
|
"sourcecode"
|
|
],
|
|
"type": "module",
|
|
"main": "./dist/index.cjs.cjs",
|
|
"exports": {
|
|
"import": "./src/index.js",
|
|
"require": "./dist/index.cjs.cjs"
|
|
},
|
|
"c8": {
|
|
"reporter": [
|
|
"lcov",
|
|
"text"
|
|
],
|
|
"checkCoverage": true,
|
|
"branches": 100,
|
|
"statements": 100,
|
|
"lines": 100,
|
|
"functions": 100
|
|
},
|
|
"browserslist": [
|
|
"cover 100%"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/es-joy/jsdoccomment.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/es-joy/jsdoccomment/issues"
|
|
},
|
|
"homepage": "https://github.com/es-joy/jsdoccomment",
|
|
"engines": {
|
|
"node": "^14 || ^16 || ^17 || ^18 || ^19"
|
|
},
|
|
"dependencies": {
|
|
"comment-parser": "1.3.1",
|
|
"esquery": "^1.4.0",
|
|
"jsdoc-type-pratt-parser": "~3.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.19.6",
|
|
"@babel/plugin-syntax-class-properties": "^7.12.13",
|
|
"@babel/preset-env": "^7.19.4",
|
|
"@brettz9/eslint-plugin": "^1.0.4",
|
|
"@rollup/plugin-babel": "^6.0.2",
|
|
"c8": "^7.12.0",
|
|
"chai": "^4.3.6",
|
|
"eslint": "^8.26.0",
|
|
"eslint-config-ash-nazg": "34.3.0",
|
|
"eslint-config-standard": "^17.0.0",
|
|
"eslint-plugin-array-func": "^3.1.7",
|
|
"eslint-plugin-compat": "^4.0.2",
|
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
"eslint-plugin-html": "^7.1.0",
|
|
"eslint-plugin-import": "^2.26.0",
|
|
"eslint-plugin-jsdoc": "^39.6.0",
|
|
"eslint-plugin-markdown": "^3.0.0",
|
|
"eslint-plugin-n": "^15.4.0",
|
|
"eslint-plugin-no-unsanitized": "^4.0.1",
|
|
"eslint-plugin-no-use-extend-native": "^0.5.0",
|
|
"eslint-plugin-promise": "^6.1.1",
|
|
"eslint-plugin-sonarjs": "^0.16.0",
|
|
"eslint-plugin-unicorn": "^44.0.2",
|
|
"espree": "^9.4.0",
|
|
"estraverse": "^5.3.0",
|
|
"mocha": "^10.1.0",
|
|
"rollup": "^3.2.5"
|
|
},
|
|
"scripts": {
|
|
"open": "open ./coverage/lcov-report/index.html",
|
|
"rollup": "rollup -c",
|
|
"eslint": "eslint --ext=js,cjs,md,html .",
|
|
"lint": "npm run eslint --",
|
|
"mocha": "mocha --require chai/register-expect.js",
|
|
"c8": "c8 npm run mocha",
|
|
"test": "npm run lint && npm run rollup && npm run c8"
|
|
}
|
|
}
|