Skip to content

Commit

Permalink
Adds the quicking for all identifiers in the code
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Dec 12, 2019
1 parent 82e8b02 commit c1dad7a
Show file tree
Hide file tree
Showing 16 changed files with 612 additions and 219 deletions.
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"semi": false,
"singleQuote": false,
"printWidth": 120
}
6 changes: 0 additions & 6 deletions packages/ts-twoslasher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@
"pre-commit": "tsdx lint"
}
},
"prettier": {
"printWidth": 80,
"semi": true,
"singleQuote": true,
"trailingComma": "es5"
},
"devDependencies": {
"@types/jest": "^24.0.23",
"@types/lz-string": "^1.3.33",
Expand Down
6 changes: 3 additions & 3 deletions packages/ts-twoslasher/scripts/inline-results.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = {

readdirSync(fixturesFolder).forEach(fixtureName => {
const fixture = join(fixturesFolder, fixtureName);
if (lstatSync(fixture).isDirectory()) { return; }
if (lstatSync(fixture).isDirectory()) { return; }

const resultName = parse(fixtureName).name + '.json';
const result = join(resultsFolder, resultName);
Expand All @@ -63,14 +63,14 @@ module.exports = {
const output = JSON.parse(readFileSync(result, 'utf8'));

mds.push(`#### \`${fixtureName}\``);
mds.push(wrapCode(input, parse(fixtureName).ext));
mds.push(wrapCode(input, parse(fixtureName).ext.replace(".", "")));
mds.push('Turns to:');

mds.push(wrapCodeAsQuote(output.code, output.extension));

mds.push('> With:');

const codeless = { ...output, code: "See above" }
const codeless = { ...output, code: "See above", staticQuickInfos: "[...]" }
mds.push(wrapCodeAsQuote(JSON.stringify(codeless, null, " ") + "\n", "json"));
});

Expand Down
Loading

0 comments on commit c1dad7a

Please sign in to comment.