markdown-maker 1.10.1 → 1.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,68 @@
1
+ import util from "./_test-util";
2
+ import { MDMError } from "../src/errors";
3
+
4
+ describe("Basic features", () => {
5
+ it("should join two files with include", () => {
6
+ util.put("hello\n#mdinclude<sample2.md>", "sample1.md");
7
+ util.put("there", "sample2.md");
8
+
9
+ const parser = new util.Parser("tests/test-files/sample1.md");
10
+ const output = parser.get();
11
+
12
+ util.expect(output).toEqual("hello\nthere\n\n");
13
+ });
14
+ it("should make a table of contents", () => {
15
+ const output = new util.Parser(
16
+ "# yo\n## bruh nugget\n#mdmaketoc"
17
+ ).get();
18
+
19
+ util.expect(output).toBe(
20
+ "# yo\n## bruh nugget\n* [yo](#yo)\n * [bruh nugget](#bruh-nugget)\n\n"
21
+ );
22
+ });
23
+ it("should allow quotation marks in titles for toc", () => {
24
+ const parser = new util.Parser("# mac's farm\n#mdmaketoc");
25
+ const markdown = parser.get();
26
+
27
+ util.expect(markdown).toBe(
28
+ "# mac's farm\n* [mac's farm](#macs-farm)\n\n"
29
+ );
30
+ });
31
+ it("should allow variables in toc", () => {
32
+ const output = new util.Parser(
33
+ "#mddef<name=Foobar>\n# mr. #mdvar<name>\n#mdmaketoc<>"
34
+ ).get();
35
+
36
+ util.expect(output).toBe(
37
+ "\n# mr. Foobar\n* [mr. Foobar](#mr-foobar)\n\n"
38
+ );
39
+ });
40
+ it("should not exceed max include depth", () => {
41
+ util.put("#mdinclude<sample2.md>", "sample1.md");
42
+ util.put("yo.md>", "sample2.md");
43
+
44
+ function get() {
45
+ const parser = new util.Parser("tests/test-files/sample1.md", {
46
+ max_depth: 0,
47
+ });
48
+ parser.get();
49
+ }
50
+
51
+ util.expect(get).toThrow(MDMError);
52
+ });
53
+ it("should be able to reference toc elements, even if they are below toc-level", () => {
54
+ const parser = new util.Parser(`### Title\n#mdref<Title>`);
55
+
56
+ util.expect(parser.get()).toBe("### Title\n[Title](#title)\n\n");
57
+ });
58
+ it("should include file with same name as folder when including a folder", () => {
59
+ util.put("#mdinclude<sample_fld>", "sample1.md");
60
+ util.putDir("sample_fld");
61
+ util.put("hello", util.path.join("sample_fld", "sample_fld.md"));
62
+
63
+ const parser = new util.Parser("tests/test-files/sample1.md");
64
+ const output = parser.get();
65
+
66
+ util.expect(output).toBe("hello\n\n");
67
+ });
68
+ });
@@ -0,0 +1,50 @@
1
+ import util from "./_test-util";
2
+
3
+ describe("Command Line Arguments", () => {
4
+ it("--use-underscore should replace '-' with '_' in toc", () => {
5
+ const output = new util.Parser("# foo bar\n#mdmaketoc", {
6
+ use_underscore: true,
7
+ }).get();
8
+
9
+ util.expect(output).toBe("# foo bar\n* [foo bar](#foo_bar)\n\n");
10
+ });
11
+ it("--toc-level should exclude subsection with lower level", () => {
12
+ const output = new util.Parser("# foo bar\n### baz\n#mdmaketoc", {
13
+ toc_level: 2,
14
+ }).get();
15
+
16
+ util.expect(output).toBe(
17
+ "# foo bar\n### baz\n* [foo bar](#foo-bar)\n\n"
18
+ );
19
+ });
20
+ it("--allow-undef should not throw when variable is not defined", () => {
21
+ const output = new util.Parser("#mdvar<zum>", {
22
+ allow_undefined: true,
23
+ }).get();
24
+
25
+ util.expect(output).toBe("<zum>\n\n");
26
+ });
27
+ });
28
+ describe("Conditional imports", () => {
29
+ it("should be able to conditionally import documents", () => {
30
+ util.put("hello\n#mdinclude<sample2.md, YES>", "sample1.md");
31
+ util.put("there", "sample2.md");
32
+
33
+ const parser = new util.Parser("tests/test-files/sample1.md");
34
+ parser.opts.args.push("YES");
35
+
36
+ const output = parser.get();
37
+
38
+ util.expect(output).toBe("hello\nthere\n\n");
39
+ });
40
+ it("shouldn't include a document when flag is unset", () => {
41
+ util.put("hello\n#mdinclude<sample2.md,YES>", "sample1.md");
42
+ util.put("there", "sample2.md");
43
+
44
+ const parser = new util.Parser("tests/test-files/sample1.md");
45
+
46
+ const output = parser.get();
47
+
48
+ util.expect(output).toBe("hello\n\n");
49
+ });
50
+ });
@@ -0,0 +1,64 @@
1
+ import { MDMError, MDMNonParserError } from "../src/errors";
2
+ import util from "./_test-util";
3
+
4
+ describe("Error handling", () => {
5
+ it("should dissallow undefined templates", () => {
6
+ util.put("#mdtemplate<UNDEF>", "sample1.md");
7
+
8
+ const parser = new util.Parser("tests/test-files/sample1.md");
9
+
10
+ let answer =
11
+ 'Template "UNDEF" not found!' +
12
+ "\n...on line 1 in tests/test-files/sample1.md".grey(15);
13
+
14
+ util.expect(() => parser.get()).toThrow(MDMError);
15
+ });
16
+ it("should dissallow loading a folder without an entry file", () => {
17
+ util.put("#mdinclude<sample_fld>", "sample1.md");
18
+ util.putDir("sample_fld");
19
+
20
+ function get() {
21
+ const parser = new util.Parser("tests/test-files/sample1.md");
22
+ parser.get();
23
+ }
24
+
25
+ let answer =
26
+ 'No entry file found in folder "sample_fld". Looking for "tests/test-files/sample_fld/sample_fld.md"' +
27
+ "\n...on line 1 in tests/test-files/sample1.md".grey(15);
28
+
29
+ util.expect(get).toThrow(MDMError);
30
+ util.expect(get).toThrow(answer);
31
+ });
32
+ it("should dissallow adding more than one hook with the same name", () => {
33
+ const parser = new util.Parser("tests/test-files/sample1.md");
34
+
35
+ parser.add_hook("test", () => {});
36
+ util.expect(() => parser.add_hook("test", () => {})).toThrow(
37
+ MDMNonParserError
38
+ );
39
+ });
40
+ describe("Duplicate key errors", () => {
41
+ it("should dissallow adding more than one template with the same name", () => {
42
+ /* */
43
+ util.put(
44
+ `module.exports = {main: (new_template, new_command) =>
45
+ {
46
+ new_template('test', 'hello');
47
+ new_template('test', 'hello');
48
+ }
49
+ };`,
50
+ "extensions.js"
51
+ );
52
+
53
+ util.put("", "sample1.md");
54
+
55
+ function get() {
56
+ const parser = new util.Parser("tests/test-files/sample1.md");
57
+ parser.get();
58
+ }
59
+
60
+ util.expect(get).toThrow(MDMNonParserError);
61
+ util.expect(get).toThrow('Template "test" already exists');
62
+ });
63
+ });
64
+ });
@@ -0,0 +1,23 @@
1
+ import util from "./_test-util";
2
+
3
+ describe("HTML Emitting", () => {
4
+ it("should generate valid html", () => {
5
+ const parser = new util.Parser("# cool title\nwith a cool paragraph");
6
+ parser.opts.html = true;
7
+
8
+ const output = parser.html();
9
+
10
+ util.expect(output).toBe(
11
+ '<h1 id="cool-title">cool title</h1><p>with a cool paragraph</p>\n'
12
+ );
13
+ });
14
+ it("should be able to include html documents, and not parse", () => {
15
+ util.put("#mdinclude<sample2.html>", "sample1.md");
16
+ util.put("#mdvar<lul>", "sample2.html");
17
+
18
+ const parser = new util.Parser("tests/test-files/sample1.md");
19
+ const output = parser.get();
20
+
21
+ util.expect(output).toBe("#mdvar<lul>\n\n");
22
+ });
23
+ });
@@ -0,0 +1,21 @@
1
+ import util from "./_test-util";
2
+
3
+ describe("Managing blank lines", () => {
4
+ it("should always end with 2 blank lines, even with no input", () => {
5
+ const output = new util.Parser("").get();
6
+ util.expect(output).toBe("\n\n");
7
+ });
8
+
9
+ it("should reduce blank lines to 2", () => {
10
+ const output1 = new util.Parser("\n\n\n\n").get();
11
+ util.expect(output1).toBe("\n\n");
12
+
13
+ const output2 = new util.Parser("\n\n\n\nHello!").get();
14
+ util.expect(output2).toBe("\n\nHello!\n\n");
15
+ });
16
+
17
+ it("should allow words when removing blank lines", () => {
18
+ const output = new util.Parser("hii\n\n\n").get();
19
+ util.expect(output).toBe("hii\n\n");
20
+ });
21
+ });
@@ -0,0 +1,40 @@
1
+ import util from "./_test-util";
2
+
3
+ describe("Marked extentions", () => {
4
+ it("should add a single class to blockquotes", () => {
5
+ const parser = new util.Parser("> hello {.one}", {
6
+ use_underscore: true,
7
+ html: true,
8
+ });
9
+
10
+ const output = parser.html();
11
+
12
+ util.expect(output).toBe(
13
+ '<blockquote class="one" >\n<p>hello </p></blockquote>'
14
+ );
15
+ });
16
+ it("should add multiple class to blockquotes", () => {
17
+ const parser = new util.Parser("> hello {.one .two}", {
18
+ use_underscore: true,
19
+ html: true,
20
+ });
21
+
22
+ const output = parser.html();
23
+
24
+ util.expect(output).toBe(
25
+ '<blockquote class="one two" >\n<p>hello </p></blockquote>'
26
+ );
27
+ });
28
+ it("should add a single class and id to blockquotes", () => {
29
+ const parser = new util.Parser("> hello {.one #myid}", {
30
+ use_underscore: true,
31
+ html: true,
32
+ });
33
+
34
+ const output = parser.html();
35
+
36
+ util.expect(output).toBe(
37
+ '<blockquote class="one" id="myid">\n<p>hello </p></blockquote>'
38
+ );
39
+ });
40
+ });
@@ -0,0 +1,41 @@
1
+ import util from "./_test-util";
2
+
3
+ describe("Target specific functionality", () => {
4
+ describe("HTML", () => {
5
+ it("Should include `#mdlabel` command, when compiling HTML", () => {
6
+ const parser = new util.Parser("#mdlabel<0,Cool!>");
7
+ const html = parser.get(util.TargetType.HTML);
8
+
9
+ util.expect(html).toBe('<span id="cool"></span>\n\n');
10
+ });
11
+
12
+ it("Should link to sections with #mdref", () => {
13
+ const parser = new util.Parser(
14
+ "#mdlabel<0,Cool!>\n#mdlabel<1,coolzz>\n#mdref<Cool!>"
15
+ );
16
+ const html = parser.get(util.TargetType.HTML);
17
+
18
+ util.expect(html).toBe(
19
+ '<span id="cool"></span>\n<span id="coolzz"></span>\n<a href="#cool">Cool!</a>\n\n'
20
+ );
21
+ });
22
+ });
23
+
24
+ describe("Markdown", () => {
25
+ it("Should not include `#mdlabel` command, when compiling Markdown", () => {
26
+ const parser = new util.Parser("#mdlabel<0,Cool!>");
27
+
28
+ const md = parser.get(util.TargetType.MARKDOWN);
29
+ util.expect(md).toBe("\n\n");
30
+ });
31
+ it("Should include #mdref to title elements in markdown", () => {
32
+ const output = new util.Parser(
33
+ "# Some Title!\n#mdref<Some Title!>"
34
+ ).get();
35
+
36
+ util.expect(output).toBe(
37
+ "# Some Title!\n[Some Title!](#some-title)\n\n"
38
+ );
39
+ });
40
+ });
41
+ });
@@ -0,0 +1,45 @@
1
+ import { MDMError } from "../src/errors";
2
+ import util from "./_test-util";
3
+
4
+ describe("Use variables", () => {
5
+ it("should replace var with the value", () => {
6
+ const output = new util.Parser("#mddef<hi=yo>\n#mdvar<hi>").get();
7
+
8
+ util.expect(output).toBe("\nyo\n\n");
9
+ });
10
+ it("should use variable shorthand", () => {
11
+ const output = new util.Parser("#mddef<hi=yo>\n!<hi>").get();
12
+
13
+ util.expect(output).toBe("\nyo\n\n");
14
+ });
15
+ it("should use variables across files", () => {
16
+ util.put("#mddef<hi=yo>\n#mdinclude<sample2.md>", "sample1.md");
17
+ util.put("!<hi>", "sample2.md");
18
+
19
+ const output = new util.Parser("tests/test-files/sample1.md").get();
20
+
21
+ util.expect(output).toBe("\nyo\n\n");
22
+ });
23
+ it("should throw if undefined variable", () => {
24
+ const parser = new util.Parser("!<yo>");
25
+
26
+ /* should throw an error */
27
+ function get() {
28
+ parser.get();
29
+ }
30
+ util.expect(get).toThrow();
31
+ });
32
+
33
+ it("should preserve whatever comes after", () => {
34
+ const output = new util.Parser("#mddef<hi=yo>\n!<hi>,").get();
35
+ util.expect(output).toBe("\nyo,\n\n");
36
+ });
37
+
38
+ it("should replace underscore with space", () => {
39
+ const output = new util.Parser(
40
+ "#mddef<name=Mr_Sir>\n#mdvar<name>"
41
+ ).get();
42
+
43
+ util.expect(output).toBe("\nMr Sir\n\n");
44
+ });
45
+ });
package/tsconfig.json CHANGED
@@ -1,74 +1,76 @@
1
1
  {
2
- "include": ["./src/*"],
2
+ "include": ["./src/**/*"],
3
3
 
4
- "compilerOptions": {
5
- /* Visit https://aka.ms/tsconfig.json to read more about this file */
4
+ "compilerOptions": {
5
+ /* Visit https://aka.ms/tsconfig.json to read more about this file */
6
6
 
7
- /* Bas1c Options */
8
- // "incremental": true, /* Enable incremental compilation */
9
- "target": "es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', 'ES2021', or 'ESNEXT'. */,
10
- "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
11
- // "lib": [], /* Specify library files to be included in the compilation. */
12
- "allowJs": true /* Allow javascript files to be compiled. */,
13
- // "checkJs": true, /* Report errors in .js files. */
14
- // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */
15
- "declaration": true /* Generates corresponding '.d.ts' file. */,
16
- // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
17
- "sourceMap": true, /* Generates corresponding '.map' file. */
18
- // "outFile": "./", /* Concatenate and emit output to single file. */
19
- "outDir": "./build" /* Redirect output structure to the directory. */,
20
- // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
21
- // "composite": true, /* Enable project compilation */
22
- // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
23
- // "removeComments": true, /* Do not emit comments to output. */
24
- // "noEmit": true, /* Do not emit outputs. */
25
- // "importHelpers": true, /* Import emit helpers from 'tslib'. */
26
- // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
27
- // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
7
+ /* Bas1c Options */
8
+ // "incremental": true, /* Enable incremental compilation */
9
+ "target": "es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', 'ES2021', or 'ESNEXT'. */,
10
+ "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
11
+ "lib": [
12
+ "ES2022"
13
+ ] /* Specify library files to be included in the compilation. */,
14
+ "allowJs": true /* Allow javascript files to be compiled. */,
15
+ "checkJs": true /* Report errors in .js files. */,
16
+ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */
17
+ "declaration": true /* Generates corresponding '.d.ts' file. */,
18
+ // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
19
+ "sourceMap": true /* Generates corresponding '.map' file. */,
20
+ // "outFile": "./", /* Concatenate and emit output to single file. */
21
+ "outDir": "./bundle" /* Redirect output structure to the directory. */,
22
+ "rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
23
+ // "composite": true, /* Enable project compilation */
24
+ // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
25
+ // "removeComments": true, /* Do not emit comments to output. */
26
+ // "noEmit": true, /* Do not emit outputs. */
27
+ // "importHelpers": true, /* Import emit helpers from 'tslib'. */
28
+ "downlevelIteration": true /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */,
29
+ // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
28
30
 
29
- /* Strict Type-Checking Options */
30
- // "strict": true, /* Enable all strict type-checking options. */
31
- // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
32
- // "strictNullChecks": true, /* Enable strict null checks. */
33
- // "strictFunctionTypes": true, /* Enable strict checking of function types. */
34
- // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
35
- // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
36
- // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
37
- // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
31
+ /* Strict Type-Checking Options */
32
+ // "strict": true /* Enable all strict type-checking options. */,
33
+ // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
34
+ // "strictNullChecks": true, /* Enable strict null checks. */
35
+ // "strictFunctionTypes": true, /* Enable strict checking of function types. */
36
+ // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
37
+ // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
38
+ // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
39
+ // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
38
40
 
39
- /* Additional Checks */
40
- // "noUnusedLocals": true, /* Report errors on unused locals. */
41
- // "noUnusedParameters": true, /* Report errors on unused parameters. */
42
- // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
43
- // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
44
- // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
45
- // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an 'override' modifier. */
46
- // "noPropertyAccessFromIndexSignature": true, /* Require undeclared properties from index signatures to use element accesses. */
41
+ /* Additional Checks */
42
+ // "noUnusedLocals": true, /* Report errors on unused locals. */
43
+ // "noUnusedParameters": true, /* Report errors on unused parameters. */
44
+ // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
45
+ // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
46
+ // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
47
+ // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an 'override' modifier. */
48
+ // "noPropertyAccessFromIndexSignature": true, /* Require undeclared properties from index signatures to use element accesses. */
47
49
 
48
- /* Module Resolution Options */
49
- "moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
50
- // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
51
- // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
52
- // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
53
- // "typeRoots": [], /* List of folders to include type definitions from. */
54
- // "types": [], /* Type declaration files to be included in compilation. */
55
- // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
56
- "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
57
- // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
58
- // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
50
+ /* Module Resolution Options */
51
+ "moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
52
+ // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
53
+ // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
54
+ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
55
+ // "typeRoots": [], /* List of folders to include type definitions from. */
56
+ // "types": [], /* Type declaration files to be included in compilation. */
57
+ // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
58
+ "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
59
+ // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
60
+ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
59
61
 
60
- /* Source Map Options */
61
- // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
62
- // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
63
- // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
64
- // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
62
+ /* Source Map Options */
63
+ // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
64
+ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
65
+ // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
66
+ // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
65
67
 
66
- /* Experimental Options */
67
- // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
68
- // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
68
+ /* Experimental Options */
69
+ // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
70
+ // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
69
71
 
70
- /* Advanced Options */
71
- "skipLibCheck": true /* Skip type checking of declaration files. */,
72
- "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
73
- }
72
+ /* Advanced Options */
73
+ "skipLibCheck": true /* Skip type checking of declaration files. */,
74
+ "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
75
+ }
74
76
  }
package/prettierrc.yaml DELETED
@@ -1,4 +0,0 @@
1
- trailingComma: all
2
- tabWidth: 4
3
- singleQuote: true
4
- arrowParens: always