@slango.configs/lint-staged 1.0.8 → 1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @slango.configs/lint-staged
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5bed772: Fixed issue with vitest and paths with spaces
8
+
3
9
  ## 1.0.8
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slango.configs/lint-staged",
3
- "version": "1.0.8",
3
+ "version": "1.1.0",
4
4
  "private": false,
5
5
  "description": "Slango lint-staged configs",
6
6
  "type": "module",
@@ -11,11 +11,11 @@
11
11
  "deepmerge": "4.3.1"
12
12
  },
13
13
  "peerDependencies": {
14
- "lint-staged": "^16.1.2"
14
+ "lint-staged": "^16.1.4"
15
15
  },
16
16
  "devDependencies": {
17
- "eslint": "9.31.0",
18
- "@slango.configs/eslint": "1.0.22"
17
+ "eslint": "9.32.0",
18
+ "@slango.configs/eslint": "1.0.26"
19
19
  },
20
20
  "scripts": {
21
21
  "lint": "eslint . --max-warnings 0",
package/src/commands.js CHANGED
@@ -6,6 +6,6 @@ export const eslintFix =
6
6
  // This is a function because tsc --noEmit cannot be used with files (which is the default behavior of lint-staged)
7
7
  export const typescriptBuildCheck = () => 'tsc --noEmit';
8
8
 
9
- export const vitest = 'vitest related --run';
9
+ export const vitest = (files) => ['vitest', 'related', '--run', ...files];
10
10
 
11
11
  export const fail = 'exit 1';