@teo-garcia/prettier-config-shared 0.2.8 → 0.2.9

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,33 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ check:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout code
14
+ uses: actions/checkout@v4
15
+
16
+ - name: Setup pnpm
17
+ uses: pnpm/action-setup@v4
18
+
19
+ - name: Setup Node.js
20
+ uses: actions/setup-node@v4
21
+ with:
22
+ node-version: '24'
23
+ cache: 'pnpm'
24
+
25
+ - name: Install dependencies
26
+ run: pnpm install --frozen-lockfile
27
+
28
+ - name: Security audit
29
+ run: pnpm audit --audit-level=high
30
+ continue-on-error: true
31
+
32
+ - name: Check
33
+ run: pnpm check
@@ -13,17 +13,15 @@ jobs:
13
13
  id-token: write
14
14
  steps:
15
15
  - name: Checkout code
16
- uses: actions/checkout@v4
16
+ uses: actions/checkout@v6
17
17
 
18
18
  - name: Setup pnpm
19
19
  uses: pnpm/action-setup@v4
20
- with:
21
- version: 9
22
20
 
23
21
  - name: Setup Node.js
24
- uses: actions/setup-node@v4
22
+ uses: actions/setup-node@v6
25
23
  with:
26
- node-version: '22'
24
+ node-version: '24'
27
25
  registry-url: 'https://registry.npmjs.org'
28
26
 
29
27
  - name: Setup npm for Trusted Publishing
@@ -32,6 +30,10 @@ jobs:
32
30
  - name: Install dependencies
33
31
  run: pnpm install --no-frozen-lockfile
34
32
 
33
+ - name: Security audit
34
+ run: pnpm audit --audit-level=high
35
+ continue-on-error: true
36
+
35
37
  - name: Publish to npm via OIDC
36
38
  run: npm publish --provenance --access public
37
39
 
package/README.md CHANGED
@@ -16,16 +16,17 @@ Part of the [@teo-garcia/templates](https://github.com/teo-garcia/templates) eco
16
16
 
17
17
  ## Features
18
18
 
19
- | Setting | Value |
20
- |---------|-------|
21
- | **Semicolons** | No |
22
- | **Quotes** | Single |
23
- | **Tab Width** | 2 spaces |
24
- | **Trailing Commas** | ES5 |
25
- | **JSX Quotes** | Single |
26
- | **Print Width** | 80 |
19
+ | Setting | Value |
20
+ | ------------------- | -------- |
21
+ | **Semicolons** | No |
22
+ | **Quotes** | Single |
23
+ | **Tab Width** | 2 spaces |
24
+ | **Trailing Commas** | ES5 |
25
+ | **JSX Quotes** | Single |
26
+ | **Print Width** | 80 |
27
27
 
28
28
  **File-specific rules:**
29
+
29
30
  - Markdown: Always wrap prose
30
31
  - Prisma: Proper `.prisma` file formatting
31
32
  - YAML: No single quotes, 2-space indent
@@ -77,11 +78,11 @@ export default {
77
78
 
78
79
  ## Related Packages
79
80
 
80
- | Package | Description |
81
- |---------|-------------|
82
- | [@teo-garcia/eslint-config-shared](https://github.com/teo-garcia/eslint-config-shared) | ESLint rules |
83
- | [@teo-garcia/tsconfig-shared](https://github.com/teo-garcia/tsconfig-shared) | TypeScript settings |
84
- | [@teo-garcia/vitest-config-shared](https://github.com/teo-garcia/vitest-config-shared) | Test configuration |
81
+ | Package | Description |
82
+ | -------------------------------------------------------------------------------------- | ------------------- |
83
+ | [@teo-garcia/eslint-config-shared](https://github.com/teo-garcia/eslint-config-shared) | ESLint rules |
84
+ | [@teo-garcia/tsconfig-shared](https://github.com/teo-garcia/tsconfig-shared) | TypeScript settings |
85
+ | [@teo-garcia/vitest-config-shared](https://github.com/teo-garcia/vitest-config-shared) | Test configuration |
85
86
 
86
87
  ## License
87
88
 
package/index.js CHANGED
@@ -3,7 +3,7 @@ const config = {
3
3
  semi: false,
4
4
  singleQuote: true,
5
5
  tabWidth: 2,
6
- trailingComma: "es5",
6
+ trailingComma: 'es5',
7
7
  printWidth: 80,
8
8
  useTabs: false,
9
9
 
@@ -15,27 +15,27 @@ const config = {
15
15
  // Other languages
16
16
  overrides: [
17
17
  {
18
- files: "*.md",
18
+ files: '*.md',
19
19
  options: {
20
- proseWrap: "always",
20
+ proseWrap: 'always',
21
21
  printWidth: 80,
22
22
  },
23
23
  },
24
24
  {
25
- files: "*.{yml,yaml}",
25
+ files: '*.{yml,yaml}',
26
26
  options: {
27
27
  tabWidth: 2,
28
28
  singleQuote: false,
29
29
  },
30
30
  },
31
31
  {
32
- files: "*.json",
32
+ files: '*.json',
33
33
  options: {
34
34
  tabWidth: 2,
35
- trailingComma: "none",
35
+ trailingComma: 'none',
36
36
  },
37
37
  },
38
38
  ],
39
- };
39
+ }
40
40
 
41
- export default config;
41
+ export default config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teo-garcia/prettier-config-shared",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "Shared Prettier configuration for fullstack web templates",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -22,14 +22,19 @@
22
22
  "type": "git",
23
23
  "url": "git+https://github.com/teo-garcia/prettier-config-shared.git"
24
24
  },
25
+ "packageManager": "pnpm@10.2.0",
25
26
  "engines": {
26
- "node": ">=20.11"
27
+ "node": ">=24"
27
28
  },
28
29
  "peerDependencies": {
29
30
  "prettier": "^3.0.0"
30
31
  },
31
32
  "scripts": {
33
+ "check": "pnpm format:check",
32
34
  "format": "prettier --write .",
33
35
  "format:check": "prettier --check ."
36
+ },
37
+ "devDependencies": {
38
+ "prettier": "^3.8.1"
34
39
  }
35
40
  }