@naturalcycles/dev-lib 15.11.0 → 15.12.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/cfg/biome.jsonc CHANGED
@@ -12,7 +12,7 @@
12
12
  "lineWidth": 100,
13
13
  "attributePosition": "auto"
14
14
  },
15
- "organizeImports": { "enabled": true },
15
+ "organizeImports": { "enabled": false },
16
16
  "linter": {
17
17
  "enabled": true,
18
18
  "rules": {
@@ -44,7 +44,7 @@ const stylelintCmd = stylelintExists ? `stylelint --fix --config ${stylelintConf
44
44
 
45
45
  // const biomeInstalled = fs.existsSync('node_modules/@biomejs/biome')
46
46
  const biomeConfigPath = ['biome.jsonc'].find(p => fs.existsSync(p))
47
- const biomeCmd = biomeConfigPath && `biome lint --write --unsafe --`
47
+ const biomeCmd = biomeConfigPath && `biome lint --write --unsafe --no-errors-on-unmatched`
48
48
 
49
49
  if (!eslintConfigPathRoot) {
50
50
  console.log('eslint is skipped, because ./eslint.config.js is not present')
@@ -94,7 +94,8 @@ const linters = {
94
94
  [`./{${prettierDirs}}/**/*.{${stylelintExtensions}}`]: match => {
95
95
  const filesList = getFilesList(match)
96
96
  if (!filesList) return []
97
- return [biomeCmd, stylelintCmd, prettierCmd].filter(Boolean).map(s => `${s} ${filesList}`)
97
+ // Biome's css/scss support is still in nursery, so Biome is disabled for now
98
+ return [stylelintCmd, prettierCmd].filter(Boolean).map(s => `${s} ${filesList}`)
98
99
  },
99
100
 
100
101
  // Files in root dir: prettier
package/dist/lint.util.js CHANGED
@@ -241,7 +241,7 @@ function runBiome(fix = true) {
241
241
  return;
242
242
  }
243
243
  const dirs = [`src`, `scripts`, `e2e`, `playwright`].filter(d => node_fs_1.default.existsSync(d));
244
- (0, nodejs_lib_1.execVoidCommandSync)(`biome`, [`lint`, fix && '--write', fix && '--unsafe', ...dirs].filter(js_lib_1._isTruthy));
244
+ (0, nodejs_lib_1.execVoidCommandSync)(`biome`, [`lint`, fix && '--write', fix && '--unsafe', '--no-errors-on-unmatched', ...dirs].filter(js_lib_1._isTruthy));
245
245
  }
246
246
  function canRunBinary(name) {
247
247
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "15.11.0",
3
+ "version": "15.12.0",
4
4
  "scripts": {
5
5
  "prepare": "husky",
6
6
  "tsn-debug": "tsn testScript.ts",
@@ -29,13 +29,13 @@
29
29
  "@types/node": "^22.0.0",
30
30
  "@types/yargs": "^16.0.0",
31
31
  "eslint": "^9.0.0",
32
- "eslint-plugin-import-x": "^3.1.0",
32
+ "eslint-plugin-import-x": "^4.0.0",
33
33
  "eslint-plugin-jest": "^28.0.0",
34
34
  "eslint-plugin-jsdoc": "^50.0.0",
35
35
  "eslint-plugin-simple-import-sort": "^12.1.1",
36
36
  "eslint-plugin-unicorn": "^55.0.0",
37
37
  "eslint-plugin-vue": "^9.0.0",
38
- "expect-type": "^0.19.0",
38
+ "expect-type": "^0.20.0",
39
39
  "globals": "^15.8.0",
40
40
  "husky": "^9.0.2",
41
41
  "jest-junit": "^16.0.0",