Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Put explanations next to suggestions #265

Draft
wants to merge 19 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Update snapshots
jablko committed Jan 31, 2021
commit 47f96e8321acc8ded20a3f6ffcbcdf765121aab1
6 changes: 3 additions & 3 deletions src/_tests/fixtures/49841/derived.json
Original file line number Diff line number Diff line change
@@ -28,9 +28,9 @@
"kind": "package-meta",
"suspect": "not [the expected form](https://github.com/DefinitelyTyped/DefinitelyTyped#user-content-tsconfigjson)",
"suggestion": {
"startLine": 2,
"endLine": 46,
"body": " \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"lib\": [\n \"es6\"\n ],\n \"noImplicitAny\": true,\n \"noImplicitThis\": true,\n \"strictNullChecks\": true,\n \"strictFunctionTypes\": true,\n \"baseUrl\": \"../\",\n \"typeRoots\": [\n \"../\"\n ],\n \"types\": [],\n \"noEmit\": true,\n \"forceConsistentCasingInFileNames\": true\n },\n \"files\": [\n \"index.d.ts\",\n \"react-native-sha1-test.ts\"\n ]\n"
"startLine": 17,
"endLine": 17,
"body": ""
}
},
{
5 changes: 2 additions & 3 deletions src/_tests/fixtures/49841/mutations.json
Original file line number Diff line number Diff line change
@@ -65,9 +65,8 @@
"input": {
"pullRequestId": "MDExOlB1bGxSZXF1ZXN0NTI4OTE2Mjg5",
"path": "types/react-native-sha1/tsconfig.json",
"startLine": 2,
"line": 46,
"body": "```suggestion\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"lib\": [\n \"es6\"\n ],\n \"noImplicitAny\": true,\n \"noImplicitThis\": true,\n \"strictNullChecks\": true,\n \"strictFunctionTypes\": true,\n \"baseUrl\": \"../\",\n \"typeRoots\": [\n \"../\"\n ],\n \"types\": [],\n \"noEmit\": true,\n \"forceConsistentCasingInFileNames\": true\n },\n \"files\": [\n \"index.d.ts\",\n \"react-native-sha1-test.ts\"\n ]\n"
"line": 17,
"body": "```suggestion\n"
}
}
},
6 changes: 3 additions & 3 deletions src/_tests/fixtures/49841/result.json
Original file line number Diff line number Diff line change
@@ -22,9 +22,9 @@
"suggestions": [
{
"path": "types/react-native-sha1/tsconfig.json",
"startLine": 2,
"endLine": 46,
"body": " \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"lib\": [\n \"es6\"\n ],\n \"noImplicitAny\": true,\n \"noImplicitThis\": true,\n \"strictNullChecks\": true,\n \"strictFunctionTypes\": true,\n \"baseUrl\": \"../\",\n \"typeRoots\": [\n \"../\"\n ],\n \"types\": [],\n \"noEmit\": true,\n \"forceConsistentCasingInFileNames\": true\n },\n \"files\": [\n \"index.d.ts\",\n \"react-native-sha1-test.ts\"\n ]\n"
"startLine": 17,
"endLine": 17,
"body": ""
}
],
"shouldClose": false,