Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support long running "watch" lint sessions (#973)
- Loading branch information
1 parent
fec73b0
commit 854620e
Showing
33 changed files
with
506 additions
and
119 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"outDir": "./dist" | ||
"outDir": "./dist", | ||
"rootDir": "./src", | ||
"resolveJsonModule": true | ||
}, | ||
"include": ["src"] | ||
"include": ["src"], | ||
"references": [ | ||
{ "path": "../experimental-utils/tsconfig.build.json" }, | ||
{ "path": "../parser/tsconfig.build.json" }, | ||
{ "path": "../typescript-estree/tsconfig.build.json" } | ||
] | ||
} |
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,5 +1,9 @@ | ||
{ | ||
"extends": "./tsconfig.build.json", | ||
"compilerOptions": { | ||
"rootDir": ".", | ||
"noEmit": true | ||
}, | ||
"include": ["src", "tests"], | ||
"exclude": ["tests/test-project", "tests/test-tslint-rules-directory"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
{ | ||
"extends": "./tsconfig.build.json", | ||
"compilerOptions": { | ||
"rootDir": ".", | ||
"noEmit": true | ||
}, | ||
"include": ["src", "typings", "tests", "tools"] | ||
} |
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
19 changes: 10 additions & 9 deletions
19
packages/experimental-utils/src/ts-eslint/ParserOptions.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
export interface ParserOptions { | ||
loc?: boolean; | ||
comment?: boolean; | ||
range?: boolean; | ||
tokens?: boolean; | ||
sourceType?: 'script' | 'module'; | ||
ecmaVersion?: 3 | 5 | 6 | 7 | 8 | 9 | 10 | 2015 | 2016 | 2017 | 2018 | 2019; | ||
ecmaFeatures?: { | ||
globalReturn?: boolean; | ||
jsx?: boolean; | ||
}; | ||
ecmaVersion?: 3 | 5 | 6 | 7 | 8 | 9 | 10 | 2015 | 2016 | 2017 | 2018 | 2019; | ||
errorOnTypeScriptSyntacticAndSemanticIssues?: boolean; | ||
errorOnUnknownASTType?: boolean; | ||
extraFileExtensions?: string[]; | ||
// ts-estree specific | ||
filePath?: string; | ||
loc?: boolean; | ||
noWatch?: boolean; | ||
project?: string | string[]; | ||
useJSXTextNode?: boolean; | ||
errorOnUnknownASTType?: boolean; | ||
errorOnTypeScriptSyntacticAndSemanticIssues?: boolean; | ||
range?: boolean; | ||
sourceType?: 'script' | 'module'; | ||
tokens?: boolean; | ||
tsconfigRootDir?: string; | ||
extraFileExtensions?: string[]; | ||
useJSXTextNode?: boolean; | ||
warnOnUnsupportedTypeScriptVersion?: boolean; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"composite": true, | ||
"outDir": "./dist", | ||
"rootDir": "./src", | ||
"resolveJsonModule": true | ||
}, | ||
"include": ["src", "typings"] | ||
"include": ["src", "typings"], | ||
"references": [{ "path": "../typescript-estree/tsconfig.build.json" }] | ||
} |
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,8 +1,8 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"extends": "./tsconfig.build.json", | ||
"compilerOptions": { | ||
"outDir": "./dist", | ||
"resolveJsonModule": true | ||
"rootDir": ".", | ||
"noEmit": true | ||
}, | ||
"include": ["src", "typings", "tests", "tools"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"declaration": true, | ||
"outDir": "./dist" | ||
"composite": true, | ||
"outDir": "./dist", | ||
"rootDir": "./src", | ||
"resolveJsonModule": true | ||
}, | ||
"include": ["src"] | ||
"include": ["src"], | ||
"references": [ | ||
{ "path": "../experimental-utils/tsconfig.build.json" }, | ||
{ "path": "../typescript-estree/tsconfig.build.json" } | ||
] | ||
} |
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,5 +1,9 @@ | ||
{ | ||
"extends": "./tsconfig.build.json", | ||
"compilerOptions": { | ||
"rootDir": ".", | ||
"noEmit": true | ||
}, | ||
"include": ["src", "tests", "tools"], | ||
"exclude": ["tests/fixtures"] | ||
} |
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.