Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
chore(website): rewrite WebLinter to typescript and fix support for ts 4.7#5034
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
652376f
f7d33b4
298347d
dc6f23b
df7e947
863b054
7a90148
a46048a
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -76,7 +76,7 @@ declare class LinterBase { | ||
/** | ||
* Performs multiple autofix passes over the text until as many fixes as possible have been applied. | ||
* @paramcode The source text to apply fixes to. | ||
* @param config The ESLint config object to use. | ||
* @param options The ESLint options object to use. | ||
* @returns The result of the fix operation as returned from the SourceCodeFixer. | ||
@@ -316,7 +316,7 @@ namespace Linter { | ||
export interface ESLintParseResult { | ||
ast: TSESTree.Program; | ||
services?: ParserServices; | ||
armano2 marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
scopeManager?: Scope.ScopeManager; | ||
visitorKeys?: SourceCode.VisitorKeys; | ||
} | ||
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,16 @@ | ||
import 'vs/language/typescript/tsWorker'; | ||
import { Linter } from 'eslint'; | ||
import rules from '@typescript-eslint/eslint-plugin/dist/rules'; | ||
export function createLinter() { | ||
const linter = new Linter(); | ||
for (const name in rules) { | ||
linter.defineRule(`@typescript-eslint/${name}`, rules[name]); | ||
} | ||
return linter; | ||
} | ||
export { analyze } from '@typescript-eslint/scope-manager/dist/analyze'; | ||
armano2 marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
export { visitorKeys } from '@typescript-eslint/visitor-keys/dist/visitor-keys'; | ||
armano2 marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
export { astConverter } from '@typescript-eslint/typescript-estree/dist/ast-converter'; | ||
armano2 marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
export { getScriptKind } from '@typescript-eslint/typescript-estree/dist/create-program/getScriptKind'; |
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,13 @@ | ||
import type { TSESLint } from '@typescript-eslint/utils'; | ||
import { analyze } from '@typescript-eslint/scope-manager/dist/analyze'; | ||
import { astConverter } from '@typescript-eslint/typescript-estree/dist/ast-converter'; | ||
import { getScriptKind } from '@typescript-eslint/typescript-estree/dist/create-program/getScriptKind'; | ||
export interface LintUtils { | ||
createLinter: () => TSESLint.Linter; | ||
analyze: typeof analyze; | ||
visitorKeys: TSESLint.SourceCode.VisitorKeys; | ||
astConverter: typeof astConverter; | ||
getScriptKind: typeof getScriptKind; | ||
} | ||
Uh oh!
There was an error while loading.Please reload this page.