@averay/codeformat 0.2.22 → 0.2.23

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.
package/.editorconfig ADDED
@@ -0,0 +1,15 @@
1
+ # http://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ end_of_line = lf
7
+ indent_size = 2
8
+ indent_style = space
9
+ insert_final_newline = true
10
+ max_line_length = 120
11
+ trim_trailing_whitespace = true
12
+
13
+ [*.md]
14
+ max_line_length = 999999999
15
+ trim_trailing_whitespace = false
package/README.md CHANGED
@@ -9,7 +9,7 @@ A very opinionated collection of configurations for a number of code formatting
9
9
  2. Symlink the static configuration files to the project root:
10
10
 
11
11
  ```sh
12
- ln -s node_modules/@averay/codeformat/.editorconfig node_modules/@averay/codeformat/.prettierrc.json ./
12
+ ln -s node_modules/@averay/codeformat/.editorconfig ./
13
13
  ```
14
14
 
15
15
  3. Import and call the relevant configuration builders for specific tools
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@averay/codeformat",
3
- "version": "0.2.22",
3
+ "version": "0.2.23",
4
4
  "author": "Adam Averay (https://adamaveray.com.au/)",
5
5
  "homepage": "https://github.com/adamaveray/codeformat",
6
6
  "repository": {
@@ -19,8 +19,10 @@
19
19
  "main": "dist/src/index.js",
20
20
  "types": "dist/src/index.d.ts",
21
21
  "files": [
22
+ "/.editorconfig",
22
23
  "/dist",
23
- "/README.md"
24
+ "/README.md",
25
+ "/tsconfig.base.json"
24
26
  ],
25
27
  "scripts": {
26
28
  "build": "rm -rf dist && bun run build:tsc && bun run build:php && chmod +x dist/bin/*.js",
@@ -0,0 +1,28 @@
1
+ {
2
+ "compilerOptions": {
3
+ // Output
4
+ "noEmit": true,
5
+ // Module resolution
6
+ "allowImportingTsExtensions": true,
7
+ "esModuleInterop": true,
8
+ "forceConsistentCasingInFileNames": true,
9
+ "isolatedModules": true,
10
+ "module": "ESNext",
11
+ "moduleResolution": "Bundler",
12
+ "resolveJsonModule": true,
13
+ // Type checking
14
+ "allowJs": true,
15
+ "allowUnreachableCode": false,
16
+ "allowUnusedLabels": false,
17
+ "checkJs": true,
18
+ "exactOptionalPropertyTypes": false,
19
+ "noImplicitOverride": true,
20
+ "noImplicitReturns": true,
21
+ "noPropertyAccessFromIndexSignature": true,
22
+ "noUncheckedIndexedAccess": true,
23
+ "noUnusedLocals": true,
24
+ "noUnusedParameters": true,
25
+ "skipLibCheck": true,
26
+ "strict": true
27
+ }
28
+ }