purus 0.9.1 → 0.10.1

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,50 @@
1
+ "use strict";
2
+
3
+ const CONFIG_PURUS = `-- Purus Configuration
4
+ const entry be ///src///
5
+ const output be ///dist///
6
+ const type be ///module///
7
+ const header be true
8
+
9
+ -- Linter settings
10
+ const lint.no-var be ///warn///
11
+ const lint.no-nil be ///warn///
12
+ const lint.bare-assignment be ///error///
13
+ const lint.no-function be ///warn///
14
+ const lint.no-protected be ///warn///
15
+ const lint.no-else-if be ///warn///
16
+ const lint.no-js-chars be ///error///
17
+ const lint.no-js-operators be ///error///
18
+ const lint.no-for-range be ///warn///
19
+ const lint.bracket-match be ///error///
20
+ const lint.const-reassign be ///error///
21
+ const lint.duplicate-use be ///warn///
22
+ const lint.indent-size be 2
23
+ const lint.max-line-length be ///off///
24
+ const lint.no-trailing-whitespace be ///warn///
25
+ const lint.no-unused-import be ///warn///
26
+ const lint.consistent-naming be ///warn///
27
+ `;
28
+
29
+ const PRETTIERRC =
30
+ JSON.stringify(
31
+ {
32
+ tabWidth: 2,
33
+ semi: false,
34
+ plugins: ["@puruslang/prettier-plugin-purus"],
35
+ },
36
+ null,
37
+ 2,
38
+ ) + "\n";
39
+
40
+ const MAIN_PURUS = `-- main.purus
41
+
42
+ const message be ///Hello, World///
43
+ console.log[message]
44
+ `;
45
+
46
+ const GITIGNORE = `dist/
47
+ node_modules/
48
+ `;
49
+
50
+ module.exports = { CONFIG_PURUS, PRETTIERRC, MAIN_PURUS, GITIGNORE };