Skip to content

Commit

Permalink
minor changes in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-tyukin-sonarsource committed Aug 25, 2020
1 parent 3e69472 commit 1d02cff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion eslint-bridge/src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ export function parseTypeScriptSourceFile(
}

checkTypeScriptVersionCompatibility(typescriptRuntimeVersion);
// we load the typescript parser dynamically, so we don't need typescript dependency when analyzing pure JS project
const result = tsParser.parseForESLint(fileContent, {
...PARSER_CONFIG_MODULE,
filePath,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ private DefaultInputFile inputFile(String file) {
return inputFile(file, "foo();");
}

/** A very rough approximation of the file-ending -> language key mapping. */
/** Attempts to infer the language key from the file ending. */
private static String language(String filename) {
String[] parts = filename.split("\\.");
String ending = parts[parts.length - 1];
Expand Down

0 comments on commit 1d02cff

Please sign in to comment.