-
Notifications
You must be signed in to change notification settings - Fork 39
feat(deps): update deps, support of eslint 8 #38
Changes from 4 commits
98b24c1
6cb798c
0c6da47
65c69a4
481df7d
45756fa
1893daf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules | ||
dist | ||
.idea | ||
.vscode |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.* | ||
/src | ||
/tests | ||
*.config* | ||
tsconfig*.json |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
{ | ||
"name": "eslint-plugin-deprecation", | ||
"version": "0.0.0-development", | ||
"name": "@delagen/eslint-plugin-deprecation", | ||
"version": "1.3.0", | ||
"description": "ESLint rule that reports usage of deprecated code", | ||
"author": "Alex Malkevich <[email protected]>", | ||
"contributors": [ | ||
{ | ||
"name": "Vohmyanin Sergey", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"license": "LGPL-3.0-or-later", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/gund/eslint-plugin-deprecation.git" | ||
"url": "https://github.com/delagen/eslint-plugin-deprecation.git" | ||
}, | ||
"main": "dist/index.js", | ||
"files": [ | ||
|
@@ -24,38 +30,38 @@ | |
"semantic-release": "semantic-release" | ||
}, | ||
"dependencies": { | ||
"@typescript-eslint/experimental-utils": "^2.19.2 || ^3.0.0", | ||
"tslib": "^1.10.0", | ||
"tsutils": "^3.0.0" | ||
"@typescript-eslint/experimental-utils": "^5.0.0", | ||
"tslib": "^2.3.1", | ||
"tsutils": "^3.21.0" | ||
}, | ||
"peerDependencies": { | ||
"eslint": "^6.0.0 || ^7.0.0", | ||
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0", | ||
"typescript": "^3.7.5 || ^4.0.0" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^8.3.5", | ||
"@commitlint/config-conventional": "^8.3.4", | ||
"@semantic-release/changelog": "^5.0.0", | ||
"@semantic-release/commit-analyzer": "^8.0.1", | ||
"@semantic-release/git": "^9.0.0", | ||
"@semantic-release/github": "^7.0.3", | ||
"@semantic-release/npm": "^7.0.3", | ||
"@semantic-release/release-notes-generator": "^9.0.0", | ||
"@types/jest": "^25.0.0", | ||
"@types/node": "^13.7.1", | ||
"@typescript-eslint/eslint-plugin": "^2.34.0", | ||
"@typescript-eslint/parser": "^2.34.0", | ||
"eslint": "^6.8.0", | ||
"commitizen": "^4.0.3", | ||
"cz-conventional-changelog": "^3.1.0", | ||
"husky": "^4.2.3", | ||
"lint-staged": "^10.5.4", | ||
"jest": "^25.0.0", | ||
"prettier": "^1.19.1", | ||
"@commitlint/cli": "^14.1.0", | ||
"@commitlint/config-conventional": "^14.1.0", | ||
"@semantic-release/changelog": "^6.0.1", | ||
"@semantic-release/commit-analyzer": "^9.0.1", | ||
"@semantic-release/git": "^10.0.1", | ||
"@semantic-release/github": "^8.0.2", | ||
"@semantic-release/npm": "^8.0.3", | ||
"@semantic-release/release-notes-generator": "^10.0.2", | ||
"@types/jest": "^27.0.2", | ||
"@types/node": "^16.11.7", | ||
"@typescript-eslint/eslint-plugin": "^5.3.1", | ||
"@typescript-eslint/parser": "^5.3.1", | ||
"eslint": "^8.2.0", | ||
"commitizen": "^4.2.4", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"husky": "^7.0.4", | ||
"lint-staged": "^11.2.6", | ||
"jest": "^27.3.1", | ||
"prettier": "^2.4.1", | ||
"rimraf": "^3.0.2", | ||
"semantic-release": "^17.0.3", | ||
"ts-jest": "^25.0.0", | ||
"typescript": "^3.7.5" | ||
"semantic-release": "^18.0.0", | ||
"ts-jest": "^27.0.7", | ||
"typescript": "^4.4.4" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import * as ts from 'typescript'; | ||
|
||
/** | ||
* Stringifies the text within a JSDocTagInfo AST node with compatibility for | ||
* pre/post TypeScript 4.3 API changes. | ||
*/ | ||
export function stringifyJSDocTagInfoText(tag: ts.JSDocTagInfo): string { | ||
return isJSDocTagInfo4Point3Plus(tag) | ||
? ts.displayPartsToString(tag.text) | ||
: (<any>tag).text ?? ''; | ||
} | ||
|
||
/** | ||
* Copied from TypeScript 4.3. | ||
* | ||
* The `text` field was changed from `string` to `SymbolDisplayPart[]` in 4.3. | ||
*/ | ||
interface JSDocTagInfo4Point3Plus { | ||
name: string; | ||
text?: ts.SymbolDisplayPart[]; | ||
} | ||
|
||
function isJSDocTagInfo4Point3Plus( | ||
tag: ts.JSDocTagInfo | JSDocTagInfo4Point3Plus, | ||
): tag is JSDocTagInfo4Point3Plus { | ||
return Array.isArray(tag.text); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
{ | ||
// tsconfig for editor must include both src and tests | ||
"compilerOptions": { | ||
"noEmit": true, | ||
"rootDir": ".", | ||
"strict": true, | ||
"declaration": true, | ||
"noEmitHelpers": true, | ||
"importHelpers": true, | ||
"sourceMap": true, | ||
"module": "CommonJS", | ||
"target": "ES5", | ||
"lib": ["ES2015"], | ||
"types": ["node", "jest"], | ||
"jsx": "preserve" | ||
}, | ||
"include": ["src", "tests"] | ||
} | ||
{ | ||
// tsconfig for editor must include both src and tests | ||
"compilerOptions": { | ||
"noEmit": true, | ||
"rootDir": ".", | ||
"strict": true, | ||
"declaration": true, | ||
"noEmitHelpers": true, | ||
"importHelpers": true, | ||
"sourceMap": true, | ||
"module": "CommonJS", | ||
"target": "ES2015", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure if relevant but the change from ES5 to ES2015 is a breaking change :) ES5 is not ES2015. ES2015 is ES6. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you see supported versions of node.js by eslint, I think it can be even higher There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You're right. I just saw the target change and figured I'd point it out :) But given that ESLint 8 only supports |
||
"lib": ["ESNext"], | ||
"types": ["node", "jest"], | ||
"jsx": "preserve" | ||
}, | ||
"include": ["src", "tests"] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like some of the changes include in this file might not have been intended for the upstream update?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is because of fork. I updated this project in master branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@timgates42 if you has permission to merge and publish npm, I can rebase this Mr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
truncated into #39