-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve all ESLint issues caused by upgrading package
- Loading branch information
Showing
38 changed files
with
147 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
pnpm commitlint --edit --config=commitlint.config.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"name": "@rightcapital/phpdoc-parser", | ||
"version": "0.4.72", | ||
"description": "TypeScript version of PHPDoc parser with support for intersection types and generics", | ||
"keywords": [ | ||
"PHP", | ||
"PHPDoc", | ||
|
@@ -11,22 +12,34 @@ | |
"AST", | ||
"Lexer" | ||
], | ||
"description": "TypeScript version of PHPDoc parser with support for intersection types and generics", | ||
"main": "dist/index.js", | ||
"repository": "https://github.com/RightCapitalHQ/phpdoc-parser", | ||
"author": "RightCapital Ecosystem team <[email protected]>", | ||
"license": "MIT", | ||
"packageManager": "[email protected]", | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org" | ||
}, | ||
"engines": { | ||
"node": ">=16.x", | ||
"pnpm": ">=8.x" | ||
}, | ||
"author": "RightCapital Ecosystem team <[email protected]>", | ||
"main": "dist/index.js", | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "pnpm run clean && tsc --project ./tsconfig.build.json", | ||
"change": "beachball change --no-commit", | ||
"check": "beachball check", | ||
"clean": "tsc --build --clean ./tsconfig.build.json", | ||
"commit": "cz", | ||
"eslint": "eslint --report-unused-disable-directives 'src/**/*.ts*'", | ||
"eslint:fix": "eslint --report-unused-disable-directives --fix 'src/**/*.ts*'", | ||
"preinstall": "npx only-allow pnpm", | ||
"test": "vitest" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "@commitlint/cz-commitlint" | ||
} | ||
}, | ||
"dependencies": { | ||
"@types/node": "20.16.11", | ||
"lodash": "4.17.21", | ||
"typescript": "5.6.3" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.25.8", | ||
"@babel/preset-env": "7.25.8", | ||
|
@@ -46,26 +59,12 @@ | |
"prettier": "3.3.3", | ||
"vitest": "2.1.2" | ||
}, | ||
"dependencies": { | ||
"@types/node": "20.16.11", | ||
"lodash": "4.17.21", | ||
"typescript": "5.6.3" | ||
}, | ||
"scripts": { | ||
"commit": "cz", | ||
"clean": "tsc --build --clean ./tsconfig.build.json", | ||
"change": "beachball change --no-commit", | ||
"check": "beachball check", | ||
"build": "pnpm run clean && tsc --project ./tsconfig.build.json", | ||
"preinstall": "npx only-allow pnpm", | ||
"prepare": "husky install", | ||
"eslint": "eslint --report-unused-disable-directives 'src/**/*.ts*'", | ||
"eslint:fix": "eslint --report-unused-disable-directives --fix 'src/**/*.ts*'", | ||
"test": "vitest" | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": ">=16.x", | ||
"pnpm": ">=8.x" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "@commitlint/cz-commitlint" | ||
} | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,76 @@ | ||
export { Lexer } from './phpdoc-parser/lexer/lexer'; | ||
export { ConstExprParser } from './phpdoc-parser/parser/const-expr-parser'; | ||
export { StringUnescaper } from './phpdoc-parser/parser/string-unescaper'; | ||
export { ParserException } from './phpdoc-parser/parser/parser-exception'; | ||
export { TokenIterator } from './phpdoc-parser/parser/token-iterator'; | ||
export { PhpDocParser } from './phpdoc-parser/parser/php-doc-parser'; | ||
export { TypeParser } from './phpdoc-parser/parser/type-parser'; | ||
export { BaseNode } from './phpdoc-parser/ast/base-node'; | ||
export type { Node } from './phpdoc-parser/ast/node'; | ||
export { NodeTraverser } from './phpdoc-parser/ast/node-traverser'; | ||
export { CloningVisitor } from './phpdoc-parser/ast/node-visitor/cloning-visitor'; | ||
export type { NodeVisitor } from './phpdoc-parser/ast/node-visitor'; | ||
export { NodeTraverserState, Attribute } from './phpdoc-parser/ast/types'; | ||
export { IdentifierTypeNode } from './phpdoc-parser/ast/type/identifier-type-node'; | ||
export { CallableTypeParameterNode } from './phpdoc-parser/ast/type/callable-type-parameter-node'; | ||
export { OffsetAccessTypeNode } from './phpdoc-parser/ast/type/offset-access-type-node'; | ||
export { ArrayShapeItemNode } from './phpdoc-parser/ast/type/array-shape-item-node'; | ||
export { ConditionalTypeNode } from './phpdoc-parser/ast/type/conditional-type-node'; | ||
export { ConditionalTypeForParameterNode } from './phpdoc-parser/ast/type/conditional-type-for-parameter-node'; | ||
export { ThisTypeNode } from './phpdoc-parser/ast/type/this-type-node'; | ||
export { IntersectionTypeNode } from './phpdoc-parser/ast/type/intersection-type-node'; | ||
export { ObjectShapeItemNode } from './phpdoc-parser/ast/type/object-shape-item-node'; | ||
export { UnionTypeNode } from './phpdoc-parser/ast/type/union-type-node'; | ||
export { TypeNode } from './phpdoc-parser/ast/type/type-node'; | ||
export { GenericTypeNode } from './phpdoc-parser/ast/type/generic-type-node'; | ||
export { CallableTypeNode } from './phpdoc-parser/ast/type/callable-type-node'; | ||
export { ArrayTypeNode } from './phpdoc-parser/ast/type/array-type-node'; | ||
export { ArrayShapeNode } from './phpdoc-parser/ast/type/array-shape-node'; | ||
export { InvalidTypeNode } from './phpdoc-parser/ast/type/invalid-type-node'; | ||
export { ConstTypeNode } from './phpdoc-parser/ast/type/const-type-node'; | ||
export { ObjectShapeNode } from './phpdoc-parser/ast/type/object-shape-node'; | ||
export { NullableTypeNode } from './phpdoc-parser/ast/type/nullable-type-node'; | ||
export { AbstractNodeVisitor } from './phpdoc-parser/ast/abstract-node-visitor'; | ||
export { ConstExprFloatNode } from './phpdoc-parser/ast/const-expr/const-expr-float-node'; | ||
export { BaseNode } from './phpdoc-parser/ast/base-node'; | ||
export { ConstExprArrayItemNode } from './phpdoc-parser/ast/const-expr/const-expr-array-item-node'; | ||
export { ConstExprArrayNode } from './phpdoc-parser/ast/const-expr/const-expr-array-node'; | ||
export { ConstExprFalseNode } from './phpdoc-parser/ast/const-expr/const-expr-false-node'; | ||
export { QuoteAwareConstExprStringNode } from './phpdoc-parser/ast/const-expr/quote-aware-const-expr-string-node'; | ||
export { ConstExprNullNode } from './phpdoc-parser/ast/const-expr/const-expr-null-node'; | ||
export { ConstExprFloatNode } from './phpdoc-parser/ast/const-expr/const-expr-float-node'; | ||
export { ConstExprIntegerNode } from './phpdoc-parser/ast/const-expr/const-expr-integer-node'; | ||
export { ConstExprNode } from './phpdoc-parser/ast/const-expr/const-expr-node'; | ||
export { ConstExprArrayNode } from './phpdoc-parser/ast/const-expr/const-expr-array-node'; | ||
export { ConstExprNullNode } from './phpdoc-parser/ast/const-expr/const-expr-null-node'; | ||
export { ConstExprStringNode } from './phpdoc-parser/ast/const-expr/const-expr-string-node'; | ||
export { ConstExprTrueNode } from './phpdoc-parser/ast/const-expr/const-expr-true-node'; | ||
export { ConstFetchNode } from './phpdoc-parser/ast/const-expr/const-fetch-node'; | ||
export { ParamOutTagValueNode } from './phpdoc-parser/ast/php-doc/param-out-tag-value-node'; | ||
export { PhpDocNode } from './phpdoc-parser/ast/php-doc/php-doc-node'; | ||
export { QuoteAwareConstExprStringNode } from './phpdoc-parser/ast/const-expr/quote-aware-const-expr-string-node'; | ||
export type { Node } from './phpdoc-parser/ast/node'; | ||
export { NodeTraverser } from './phpdoc-parser/ast/node-traverser'; | ||
export type { NodeVisitor } from './phpdoc-parser/ast/node-visitor'; | ||
export { CloningVisitor } from './phpdoc-parser/ast/node-visitor/cloning-visitor'; | ||
export { AssertTagMethodValueNode } from './phpdoc-parser/ast/php-doc/assert-tag-method-value-node'; | ||
export { AssertTagPropertyValueNode } from './phpdoc-parser/ast/php-doc/assert-tag-property-value-node'; | ||
export { AssertTagValueNode } from './phpdoc-parser/ast/php-doc/assert-tag-value-node'; | ||
export { UsesTagValueNode } from './phpdoc-parser/ast/php-doc/uses-tag-value-node'; | ||
export { InvalidTagValueNode } from './phpdoc-parser/ast/php-doc/invalid-tag-value-node'; | ||
export { MethodTagValueNode } from './phpdoc-parser/ast/php-doc/method-tag-value-node'; | ||
export { DeprecatedTagValueNode } from './phpdoc-parser/ast/php-doc/deprecated-tag-value-node'; | ||
export { ExtendsTagValueNode } from './phpdoc-parser/ast/php-doc/extends-tag-value-node'; | ||
export { ParamTagValueNode } from './phpdoc-parser/ast/php-doc/param-tag-value-node'; | ||
export { GenericTagValueNode } from './phpdoc-parser/ast/php-doc/generic-tag-value-node'; | ||
export { TypeAliasTagValueNode } from './phpdoc-parser/ast/php-doc/type-alias-tag-value-node'; | ||
export { AssertTagPropertyValueNode } from './phpdoc-parser/ast/php-doc/assert-tag-property-value-node'; | ||
export { TypelessParamTagValueNode } from './phpdoc-parser/ast/php-doc/typeless-param-tag-value-node'; | ||
export { VarTagValueNode } from './phpdoc-parser/ast/php-doc/var-tag-value-node'; | ||
export { PhpDocTextNode } from './phpdoc-parser/ast/php-doc/php-doc-text-node'; | ||
export { MethodTagValueParameterNode } from './phpdoc-parser/ast/php-doc/method-tag-value-parameter-node'; | ||
export { AssertTagMethodValueNode } from './phpdoc-parser/ast/php-doc/assert-tag-method-value-node'; | ||
export { TemplateTagValueNode } from './phpdoc-parser/ast/php-doc/template-tag-value-node'; | ||
export * from './phpdoc-parser/ast/php-doc/helpers'; | ||
export { ImplementsTagValueNode } from './phpdoc-parser/ast/php-doc/implements-tag-value-node'; | ||
export { ThrowsTagValueNode } from './phpdoc-parser/ast/php-doc/throws-tag-value-node'; | ||
export { SelfOutTagValueNode } from './phpdoc-parser/ast/php-doc/self-out-tag-value-node'; | ||
export { PropertyTagValueNode } from './phpdoc-parser/ast/php-doc/property-tag-value-node'; | ||
export { TypeAliasImportTagValueNode } from './phpdoc-parser/ast/php-doc/type-alias-import-tag-value-node'; | ||
export { PhpDocChildNode } from './phpdoc-parser/ast/php-doc/php-doc-child-node'; | ||
export { InvalidTagValueNode } from './phpdoc-parser/ast/php-doc/invalid-tag-value-node'; | ||
export { MethodTagValueNode } from './phpdoc-parser/ast/php-doc/method-tag-value-node'; | ||
export { MethodTagValueParameterNode } from './phpdoc-parser/ast/php-doc/method-tag-value-parameter-node'; | ||
export { MixinTagValueNode } from './phpdoc-parser/ast/php-doc/mixin-tag-value-node'; | ||
export { ParamOutTagValueNode } from './phpdoc-parser/ast/php-doc/param-out-tag-value-node'; | ||
export { ParamTagValueNode } from './phpdoc-parser/ast/php-doc/param-tag-value-node'; | ||
export { PhpDocChildNode } from './phpdoc-parser/ast/php-doc/php-doc-child-node'; | ||
export { PhpDocNode } from './phpdoc-parser/ast/php-doc/php-doc-node'; | ||
export { PhpDocTagNode } from './phpdoc-parser/ast/php-doc/php-doc-tag-node'; | ||
export { PhpDocTagValueNode } from './phpdoc-parser/ast/php-doc/php-doc-tag-value-node'; | ||
export { PhpDocTextNode } from './phpdoc-parser/ast/php-doc/php-doc-text-node'; | ||
export { PropertyTagValueNode } from './phpdoc-parser/ast/php-doc/property-tag-value-node'; | ||
export { ReturnTagValueNode } from './phpdoc-parser/ast/php-doc/return-tag-value-node'; | ||
export { SelfOutTagValueNode } from './phpdoc-parser/ast/php-doc/self-out-tag-value-node'; | ||
export { TemplateTagValueNode } from './phpdoc-parser/ast/php-doc/template-tag-value-node'; | ||
export { ThrowsTagValueNode } from './phpdoc-parser/ast/php-doc/throws-tag-value-node'; | ||
export { TypeAliasImportTagValueNode } from './phpdoc-parser/ast/php-doc/type-alias-import-tag-value-node'; | ||
export { TypeAliasTagValueNode } from './phpdoc-parser/ast/php-doc/type-alias-tag-value-node'; | ||
export { TypelessParamTagValueNode } from './phpdoc-parser/ast/php-doc/typeless-param-tag-value-node'; | ||
export { UsesTagValueNode } from './phpdoc-parser/ast/php-doc/uses-tag-value-node'; | ||
export { VarTagValueNode } from './phpdoc-parser/ast/php-doc/var-tag-value-node'; | ||
export { ArrayShapeItemNode } from './phpdoc-parser/ast/type/array-shape-item-node'; | ||
export { ArrayShapeNode } from './phpdoc-parser/ast/type/array-shape-node'; | ||
export { ArrayTypeNode } from './phpdoc-parser/ast/type/array-type-node'; | ||
export { CallableTypeNode } from './phpdoc-parser/ast/type/callable-type-node'; | ||
export { CallableTypeParameterNode } from './phpdoc-parser/ast/type/callable-type-parameter-node'; | ||
export { ConditionalTypeForParameterNode } from './phpdoc-parser/ast/type/conditional-type-for-parameter-node'; | ||
export { ConditionalTypeNode } from './phpdoc-parser/ast/type/conditional-type-node'; | ||
export { ConstTypeNode } from './phpdoc-parser/ast/type/const-type-node'; | ||
export { GenericTypeNode } from './phpdoc-parser/ast/type/generic-type-node'; | ||
export { IdentifierTypeNode } from './phpdoc-parser/ast/type/identifier-type-node'; | ||
export { IntersectionTypeNode } from './phpdoc-parser/ast/type/intersection-type-node'; | ||
export { InvalidTypeNode } from './phpdoc-parser/ast/type/invalid-type-node'; | ||
export { NullableTypeNode } from './phpdoc-parser/ast/type/nullable-type-node'; | ||
export { ObjectShapeItemNode } from './phpdoc-parser/ast/type/object-shape-item-node'; | ||
export { ObjectShapeNode } from './phpdoc-parser/ast/type/object-shape-node'; | ||
export { OffsetAccessTypeNode } from './phpdoc-parser/ast/type/offset-access-type-node'; | ||
export { ThisTypeNode } from './phpdoc-parser/ast/type/this-type-node'; | ||
export { TypeNode } from './phpdoc-parser/ast/type/type-node'; | ||
export { UnionTypeNode } from './phpdoc-parser/ast/type/union-type-node'; | ||
export { Attribute, NodeTraverserState } from './phpdoc-parser/ast/types'; | ||
export { Lexer } from './phpdoc-parser/lexer/lexer'; | ||
export { ConstExprParser } from './phpdoc-parser/parser/const-expr-parser'; | ||
export { ParserException } from './phpdoc-parser/parser/parser-exception'; | ||
export { PhpDocParser } from './phpdoc-parser/parser/php-doc-parser'; | ||
export { StringUnescaper } from './phpdoc-parser/parser/string-unescaper'; | ||
export { TokenIterator } from './phpdoc-parser/parser/token-iterator'; | ||
export { TypeParser } from './phpdoc-parser/parser/type-parser'; | ||
export { Printer } from './phpdoc-parser/printer/printer'; | ||
export * from './phpdoc-parser/transpiler/php-doc-to-typescript-type-transpiler'; | ||
export * from './phpdoc-parser/ast/php-doc/helpers'; | ||
export * from './phpdoc-parser/transpiler/helpers'; | ||
export * from './phpdoc-parser/transpiler/php-doc-to-typescript-type-transpiler'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/phpdoc-parser/ast/php-doc/assert-tag-property-value-node.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/phpdoc-parser/ast/php-doc/method-tag-value-parameter-node.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.