@pob/root 12.2.1 → 12.3.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/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [12.3.1](https://github.com/christophehurpeau/pob/compare/@pob/root@12.3.0...@pob/root@12.3.1) (2024-08-04)
7
+
8
+ ### Bug Fixes
9
+
10
+ * fix condition in previous commit ([7726ec9](https://github.com/christophehurpeau/pob/commit/7726ec9de17670f64f70fbdbcef481655c59c0a4))
11
+
12
+ ## [12.3.0](https://github.com/christophehurpeau/pob/compare/@pob/root@12.2.1...@pob/root@12.3.0) (2024-08-04)
13
+
14
+ ### Features
15
+
16
+ * **@pob/root:** add support for flat eslint config ([44f7994](https://github.com/christophehurpeau/pob/commit/44f7994214f177ccb1611a3afb99a667b5268d6c))
17
+
18
+ ### Bug Fixes
19
+
20
+ * **deps:** update dependency lint-staged to v15.2.8 ([#2159](https://github.com/christophehurpeau/pob/issues/2159)) ([e1695b6](https://github.com/christophehurpeau/pob/commit/e1695b6f479ca99674d697bf5116002596055fa6))
21
+
22
+ Version bump for dependency: yarn-version
23
+
24
+
6
25
  ## [12.2.1](https://github.com/christophehurpeau/pob/compare/@pob/root@12.2.0...@pob/root@12.2.1) (2024-07-30)
7
26
 
8
27
  Version bump for dependency: yarn-version
@@ -8,6 +8,7 @@ const whichPmRuns = require("which-pm-runs");
8
8
  const pm =
9
9
  whichPmRuns() ||
10
10
  (fs.existsSync("package-lock.json") ? { name: "npm" } : undefined);
11
+ const isEslintFlatConfig = fs.existsSync("eslint.config.js");
11
12
 
12
13
  const yarnMajorVersion = pm.name === "yarn" && semver.major(pm.version);
13
14
  const { lockfile, installAndDedupe } = (() => {
@@ -95,11 +96,19 @@ module.exports = function createLintStagedConfig() {
95
96
  "./*.{yml,yaml,md}": ["prettier --write"],
96
97
  [`${srcDirectories}/**/*.{js,ts,tsx}`]: [
97
98
  "prettier --write",
98
- "eslint --fix --quiet --report-unused-disable-directives --resolve-plugins-relative-to .",
99
+ `eslint --fix --quiet${
100
+ isEslintFlatConfig
101
+ ? ""
102
+ : " --report-unused-disable-directives --resolve-plugins-relative-to ."
103
+ }`,
99
104
  ],
100
105
  "{scripts,config,.storyboook}/**/*.{js,mjs,cjs}": [
101
106
  "prettier --write",
102
- "eslint --fix --quiet --report-unused-disable-directives --resolve-plugins-relative-to .",
107
+ `eslint --fix --quiet${
108
+ isEslintFlatConfig
109
+ ? ""
110
+ : " --report-unused-disable-directives --resolve-plugins-relative-to ."
111
+ }`,
103
112
  ],
104
113
  [`{.storybook,${srcDirectories}}/**/*.css`]: [
105
114
  "prettier --parser css --write",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/root",
3
- "version": "12.2.1",
3
+ "version": "12.3.1",
4
4
  "description": "root package",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (https://christophe.hurpeau.com)",
@@ -76,12 +76,12 @@
76
76
  "cosmiconfig": "^9.0.0",
77
77
  "husky": "~9.1.0",
78
78
  "json5": "^2.2.2",
79
- "lint-staged": "15.2.7",
80
- "pob-dependencies": "13.3.0",
79
+ "lint-staged": "15.2.8",
80
+ "pob-dependencies": "13.4.0",
81
81
  "prettier": "3.3.3",
82
82
  "repository-check-dirty": "7.0.0",
83
83
  "semver": "^7.3.7",
84
84
  "which-pm-runs": "1.1.0",
85
- "yarn-version": "2.2.1"
85
+ "yarn-version": "2.2.2"
86
86
  }
87
87
  }