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>
86 lines
2.6 KiB
JSON
86 lines
2.6 KiB
JSON
{
|
|
"name": "comment-parser",
|
|
"version": "1.3.1",
|
|
"description": "Generic JSDoc-like comment parser",
|
|
"type": "module",
|
|
"main": "lib/index.cjs",
|
|
"exports": {
|
|
".": {
|
|
"import": "./es6/index.js",
|
|
"require": "./lib/index.cjs"
|
|
},
|
|
"./primitives": {
|
|
"import": "./es6/primitives.js",
|
|
"require": "./lib/primitives.cjs"
|
|
},
|
|
"./util": {
|
|
"import": "./es6/util.js",
|
|
"require": "./lib/util.cjs"
|
|
},
|
|
"./parser/*": {
|
|
"import": "./es6/parser/*.js",
|
|
"require": "./lib/parser/*.cjs"
|
|
},
|
|
"./stringifier/*": {
|
|
"import": "./es6/stringifier/*.js",
|
|
"require": "./lib/stringifier/*.cjs"
|
|
},
|
|
"./transforms/*": {
|
|
"import": "./es6/transforms/*.js",
|
|
"require": "./lib/transforms/*.cjs"
|
|
}
|
|
},
|
|
"types": "lib/index.d.ts",
|
|
"directories": {
|
|
"test": "tests"
|
|
},
|
|
"devDependencies": {
|
|
"@types/jest": "^26.0.23",
|
|
"convert-extension": "^0.3.0",
|
|
"jest": "^27.0.5",
|
|
"prettier": "2.3.1",
|
|
"replace": "^1.2.1",
|
|
"rimraf": "^3.0.2",
|
|
"rollup": "^2.52.2",
|
|
"ts-jest": "^27.0.3",
|
|
"typescript": "^4.3.4"
|
|
},
|
|
"engines": {
|
|
"node": ">= 12.0.0"
|
|
},
|
|
"scripts": {
|
|
"build": "rimraf lib es6 browser; tsc -p tsconfig.json && tsc -p tsconfig.node.json && rollup -o browser/index.js -f iife --context window -n CommentParser es6/index.js && convert-extension cjs lib/ && cd es6 && replace \"from '(\\.[^']*)'\" \"from '\\$1.js'\" * -r --include=\"*.js\"",
|
|
"format": "prettier --write src tests",
|
|
"pretest": "rimraf coverage; npm run build",
|
|
"test": "prettier --check src tests && jest --verbose",
|
|
"preversion": "npm run build"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git@github.com:yavorskiy/comment-parser.git"
|
|
},
|
|
"keywords": [
|
|
"jsdoc",
|
|
"comments",
|
|
"parser"
|
|
],
|
|
"author": "Sergiy Yavorsky <sergiy@yavorsky.me> (https://github.com/syavorsky)",
|
|
"contributors": [
|
|
"Alex Grozav (https://github.com/alexgrozav)",
|
|
"Alexej Yaroshevich (https://github.com/zxqfox)",
|
|
"Andre Wachsmuth (https://github.com/blutorange)",
|
|
"Brett Zamir (https://github.com/brettz9)",
|
|
"Dieter Oberkofler (https://github.com/doberkofler)",
|
|
"Evgeny Reznichenko (https://github.com/zxcabs)",
|
|
"Javier \"Ciberma\" Mora (https://github.com/jhm-ciberman)",
|
|
"Jayden Seric (https://github.com/jaydenseric)",
|
|
"Jordan Harband (https://github.com/ljharb)",
|
|
"tengattack (https://github.com/tengattack)"
|
|
],
|
|
"license": "MIT",
|
|
"bugs": {
|
|
"url": "https://github.com/syavorsky/comment-parser/issues"
|
|
},
|
|
"homepage": "https://github.com/syavorsky/comment-parser"
|
|
}
|