-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb3bf1d
commit 287c04b
Showing
28 changed files
with
427 additions
and
597 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 |
---|---|---|
|
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |
|
||
## [Unreleased] | ||
|
||
- Updated our typescript parsing dependencies | ||
- [email protected] | ||
- [email protected] | ||
- Fixed potential bug when sortContents is enabled, member functions aren't sorted | ||
|
||
## [2.0.2] - 2023-09-30 | ||
|
||
- Fixed files with special characters not being recognized (ex. `./src/[...something].ts`) | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
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
...d/mocks/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.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 +1 @@ | ||
export const createIsolatedProgram = () => {}; | ||
exports.createIsolatedProgram = () => {}; |
2 changes: 1 addition & 1 deletion
2
...nd/mocks/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.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 +1 @@ | ||
export const createProjectProgram = () => {}; | ||
exports.createProjectProgram = () => {}; |
2 changes: 1 addition & 1 deletion
2
...nd/mocks/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.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 +1 @@ | ||
export const createProjectService = () => {}; | ||
exports.createProjectService = () => {}; |
2 changes: 1 addition & 1 deletion
2
...ground/mocks/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.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 +1 @@ | ||
export {}; | ||
exports = {}; |
39 changes: 39 additions & 0 deletions
39
...layground/mocks/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
const ts = require("typescript"); | ||
exports.getScriptKind = function (filePath, jsx) { | ||
const extension = filePath.slice(filePath.lastIndexOf(".")).toLowerCase(); | ||
// note - we only respect the user's jsx setting for unknown extensions | ||
// this is so that we always match TS's internal script kind logic, preventing | ||
// weird errors due to a mismatch. | ||
// https://github.com/microsoft/TypeScript/blob/da00ba67ed1182ad334f7c713b8254fba174aeba/src/compiler/utilities.ts#L6948-L6968 | ||
switch (extension) { | ||
case ts.Extension.Cjs: | ||
case ts.Extension.Js: | ||
case ts.Extension.Mjs: | ||
return ts.ScriptKind.JS; | ||
case ts.Extension.Cts: | ||
case ts.Extension.Mts: | ||
case ts.Extension.Ts: | ||
return ts.ScriptKind.TS; | ||
case ts.Extension.Json: | ||
return ts.ScriptKind.JSON; | ||
case ts.Extension.Jsx: | ||
return ts.ScriptKind.JSX; | ||
case ts.Extension.Tsx: | ||
return ts.ScriptKind.TSX; | ||
default: | ||
// unknown extension, force typescript to ignore the file extension, and respect the user's setting | ||
return jsx ? ts.ScriptKind.TSX : ts.ScriptKind.TS; | ||
} | ||
}; | ||
exports.getLanguageVariant = function (scriptKind) { | ||
// https://github.com/microsoft/TypeScript/blob/d6e483b8dabd8fd37c00954c3f2184bb7f1eb90c/src/compiler/utilities.ts#L6281-L6285 | ||
switch (scriptKind) { | ||
case ts.ScriptKind.JS: | ||
case ts.ScriptKind.JSON: | ||
case ts.ScriptKind.JSX: | ||
case ts.ScriptKind.TSX: | ||
return ts.LanguageVariant.JSX; | ||
default: | ||
return ts.LanguageVariant.Standard; | ||
} | ||
}; |
2 changes: 1 addition & 1 deletion
2
...s/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.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 +1 @@ | ||
export const getWatchProgramsForProjects = () => {}; | ||
exports.getWatchProgramsForProjects = () => {}; |
2 changes: 1 addition & 1 deletion
2
src-playground/mocks/@typescript-eslint/typescript-estree/dist/create-program/shared.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 +1 @@ | ||
export const ensureAbsolutePath = (path) => path; | ||
exports.ensureAbsolutePath = (path) => path; |
4 changes: 2 additions & 2 deletions
4
...und/mocks/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.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,2 +1,2 @@ | ||
export const useProvidedPrograms = () => {}; | ||
export const createProgramFromConfigFile = () => {}; | ||
exports.useProvidedPrograms = () => {}; | ||
exports.createProgramFromConfigFile = () => {}; |
2 changes: 1 addition & 1 deletion
2
src-playground/mocks/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.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 +1 @@ | ||
export const xhtmlEntities = {}; | ||
exports.xhtmlEntities = {}; |
4 changes: 2 additions & 2 deletions
4
...playground/mocks/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.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,2 +1,2 @@ | ||
export const DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = undefined; | ||
export const ExpiringCache = class {}; | ||
exports.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = undefined; | ||
exports.ExpiringCache = class {}; |
3 changes: 2 additions & 1 deletion
3
...ound/mocks/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.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,7 +1,8 @@ | ||
export const createParseSettings = (code, options) => { | ||
exports.createParseSettings = (code, options) => { | ||
return { | ||
...options, | ||
filePath: "/test.js", | ||
code: code, | ||
codeFullText: code, | ||
}; | ||
}; |
2 changes: 1 addition & 1 deletion
2
...nd/mocks/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.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 +1 @@ | ||
export const resolveProjectList = () => []; | ||
exports.resolveProjectList = () => []; |
2 changes: 1 addition & 1 deletion
2
...layground/mocks/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.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 +1 @@ | ||
export const inferSingleRun = () => false; | ||
exports.inferSingleRun = () => false; |
2 changes: 1 addition & 1 deletion
2
...round/mocks/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.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 +1 @@ | ||
export const resolveProjectList = () => []; | ||
exports.resolveProjectList = () => []; |
2 changes: 1 addition & 1 deletion
2
...round/mocks/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.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 +1 @@ | ||
export const warnAboutTSVersion = () => {}; | ||
exports.warnAboutTSVersion = () => {}; |
2 changes: 1 addition & 1 deletion
2
...layground/mocks/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.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 +1 @@ | ||
export const getFirstSemanticOrSyntacticError = () => {}; | ||
exports.getFirstSemanticOrSyntacticError = () => {}; |
2 changes: 1 addition & 1 deletion
2
src-playground/mocks/@typescript-eslint/typescript-estree/dist/simple-traverse.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 +1 @@ | ||
export const simpleTraverse = () => {}; | ||
exports.simpleTraverse = () => {}; |
2 changes: 1 addition & 1 deletion
2
...layground/mocks/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.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 +1 @@ | ||
export const useProgramFromProjectService = () => {}; | ||
exports.useProgramFromProjectService = () => {}; |
2 changes: 1 addition & 1 deletion
2
src-playground/mocks/@typescript-eslint/typescript-estree/dist/version-check.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 +1 @@ | ||
export const typescriptVersionIsAtLeast = new Proxy({}, { get: () => true }); | ||
exports.typescriptVersionIsAtLeast = new Proxy({}, { get: () => true }); |
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,3 +1,3 @@ | ||
export const cosmiconfigSync = () => { | ||
exports.cosmiconfigSync = () => { | ||
return { search: () => null }; | ||
}; |
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 +1 @@ | ||
export default function () {} | ||
module.exports = function () {}; |
Oops, something went wrong.