@theholocron/lint-staged-config 7.0.0 → 7.1.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.
package/README.md CHANGED
@@ -21,25 +21,22 @@ 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
+ | `package.json` | `sort-package-json` |
package/dist/index.d.ts CHANGED
@@ -7,7 +7,6 @@ declare const config: {
7
7
  "*.{js,jsx}": string[];
8
8
  "*.md": string[];
9
9
  "*.mdx": string[];
10
- "*.{png,jpeg,jpg,gif,svg}": string;
11
10
  "*.scss": string;
12
11
  "*.{ts,tsx}": string[];
13
12
  "package.json": string;
package/dist/index.js CHANGED
@@ -7,7 +7,6 @@ const config = {
7
7
  "*.{js,jsx}": ["prettier --write", "eslint"],
8
8
  "*.md": ["prettier --write"],
9
9
  "*.mdx": ["prettier --write"],
10
- "*.{png,jpeg,jpg,gif,svg}": "imagemin-lint-staged",
11
10
  "*.scss": "stylelint --syntax=scss --fix",
12
11
  "*.{ts,tsx}": ["prettier --write", "eslint"],
13
12
  "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.1",
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/vitest-config": "7.1.1",
29
+ "@theholocron/tsconfig": "7.1.1"
20
30
  },
21
31
  "exports": {
22
32
  ".": {
@@ -31,24 +41,25 @@
31
41
  ],
32
42
  "peerDependencies": {
33
43
  "husky": "^9",
34
- "imagemin-lint-staged": "^0.5",
35
44
  "lint-staged": "^16",
36
45
  "sort-package-json": "^4"
37
46
  },
38
47
  "peerDependenciesMeta": {
39
- "imagemin-lint-staged": {
40
- "optional": true
41
- },
42
48
  "sort-package-json": {
43
49
  "optional": true
44
50
  }
45
51
  },
52
+ "engines": {
53
+ "node": ">=22.0.0"
54
+ },
46
55
  "publishConfig": {
47
56
  "access": "public"
48
57
  },
49
58
  "releases": "https://github.com/theholocron/configs/releases",
50
59
  "wiki": "https://github.com/theholocron/configs/wiki",
51
60
  "scripts": {
52
- "build": "tsdown"
61
+ "build": "tsdown",
62
+ "typecheck": "tsc --noEmit",
63
+ "test": "vitest run"
53
64
  }
54
65
  }