Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove @types/eslint dependency as eslint is optional
✅ Closes: #379
- Loading branch information
1 parent
3c3b894
commit a9db0d0
Showing
10 changed files
with
59 additions
and
40 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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// copy eslint types as installation of eslint package is optional | ||
export interface LintMessage { | ||
column: number; | ||
line: number; | ||
endColumn?: number; | ||
endLine?: number; | ||
ruleId: string | null; | ||
message: string; | ||
nodeType: string; | ||
fatal?: true; | ||
severity: 0 | 1 | 2; | ||
fix?: { | ||
range: [number, number]; | ||
text: string; | ||
}; | ||
source: string | null; | ||
} | ||
|
||
export interface LintResult { | ||
filePath: string; | ||
messages: LintMessage[]; | ||
errorCount: number; | ||
warningCount: number; | ||
fixableErrorCount: number; | ||
fixableWarningCount: number; | ||
output?: string; | ||
source?: string; | ||
} | ||
|
||
export interface LintReport { | ||
results: LintResult[]; | ||
errorCount: number; | ||
warningCount: number; | ||
fixableErrorCount: number; | ||
fixableWarningCount: number; | ||
} |
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