@theholocron/lint-staged-config 7.0.0 → 7.1.0

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.
Files changed (2) hide show
  1. package/README.md +13 -15
  2. package/package.json +18 -3
package/README.md CHANGED
@@ -21,25 +21,23 @@ npx husky init
21
21
  Replace the contents of `.husky/pre-commit` with:
22
22
 
23
23
  ```bash
24
- pnpm exec lint-staged --config node_modules/@theholocron/lint-staged-config/lint-staged.config.js
24
+ pnpm exec lint-staged
25
25
  ```
26
26
 
27
- Or add it to `package.json`:
27
+ Then create a `lint-staged.config.js` at your project root:
28
28
 
29
- ```json
30
- {
31
- "lint-staged": "node_modules/@theholocron/lint-staged-config/lint-staged.config.js"
32
- }
29
+ ```js
30
+ export { default } from "@theholocron/lint-staged-config";
33
31
  ```
34
32
 
35
33
  ## What runs on staged files
36
34
 
37
- | File pattern | Commands |
38
- | -------------------------- | -------------------------------------------------- |
39
- | `*.{js,jsx}` | `prettier --write`, `eslint` |
40
- | `*.{ts,tsx}` | `prettier --write`, `eslint`, `tsc-files --noEmit` |
41
- | `*.css` | `stylelint --fix` |
42
- | `*.scss` | `stylelint --syntax=scss --fix` |
43
- | `*.{md,mdx}` | `prettier --write` |
44
- | `*.{png,jpeg,jpg,gif,svg}` | `imagemin-lint-staged` |
45
- | `package.json` | `sort-package-json` |
35
+ | File pattern | Commands |
36
+ | -------------------------- | ------------------------------- |
37
+ | `*.{js,jsx}` | `prettier --write`, `eslint` |
38
+ | `*.{ts,tsx}` | `prettier --write`, `eslint` |
39
+ | `*.css` | `stylelint --fix` |
40
+ | `*.scss` | `stylelint --syntax=scss --fix` |
41
+ | `*.{md,mdx}` | `prettier --write` |
42
+ | `*.{png,jpeg,jpg,gif,svg}` | `imagemin-lint-staged` |
43
+ | `package.json` | `sort-package-json` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/lint-staged-config",
3
- "version": "7.0.0",
3
+ "version": "7.1.0",
4
4
  "description": "A Lint Staged configuration for linting code that has been staged in Git within the Galaxy.",
5
5
  "homepage": "https://github.com/theholocron/configs/tree/main/packages/lint-staged-config#readme",
6
6
  "bugs": "https://github.com/theholocron/configs/issues",
@@ -10,13 +10,23 @@
10
10
  },
11
11
  "license": "GPL-3.0",
12
12
  "author": "Newton Koumantzelis",
13
+ "keywords": [
14
+ "lint-staged",
15
+ "husky",
16
+ "git-hooks",
17
+ "pre-commit",
18
+ "config",
19
+ "theholocron"
20
+ ],
13
21
  "type": "module",
14
22
  "main": "dist/index.js",
15
23
  "devDependencies": {
16
24
  "husky": "^9.1.7",
17
25
  "tsdown": "^0.22.8",
18
26
  "typescript": "^5.9.3",
19
- "@theholocron/tsconfig": "7.0.0"
27
+ "vitest": "^4.0.0",
28
+ "@theholocron/tsconfig": "7.1.0",
29
+ "@theholocron/vitest-config": "7.1.0"
20
30
  },
21
31
  "exports": {
22
32
  ".": {
@@ -43,12 +53,17 @@
43
53
  "optional": true
44
54
  }
45
55
  },
56
+ "engines": {
57
+ "node": ">=22.0.0"
58
+ },
46
59
  "publishConfig": {
47
60
  "access": "public"
48
61
  },
49
62
  "releases": "https://github.com/theholocron/configs/releases",
50
63
  "wiki": "https://github.com/theholocron/configs/wiki",
51
64
  "scripts": {
52
- "build": "tsdown"
65
+ "build": "tsdown",
66
+ "typecheck": "tsc --noEmit",
67
+ "test": "vitest run"
53
68
  }
54
69
  }