@naturalcycles/dev-lib 19.2.5 → 19.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/cfg/biome.jsonc CHANGED
@@ -1,7 +1,18 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/1.9.3/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.0.0/schema.json",
3
3
  "files": {
4
- "ignore": ["**/*.html", "**/tsconfig.json", "**/tsconfig.*.json", "**/__exclude", "**/try.ts", "*.compact.json", "*.mock.json"]
4
+ "includes": [
5
+ "*",
6
+ "src/**",
7
+ "scripts/**",
8
+ "!**/*.html",
9
+ "!**/tsconfig.json",
10
+ "!**/tsconfig.*.json",
11
+ "!**/__exclude",
12
+ "!**/try.ts",
13
+ "!**/*.compact.json",
14
+ "!**/*.mock.json"
15
+ ]
5
16
  },
6
17
  "formatter": {
7
18
  "enabled": true,
@@ -12,7 +23,7 @@
12
23
  "lineWidth": 100,
13
24
  "attributePosition": "auto"
14
25
  },
15
- "organizeImports": { "enabled": false },
26
+ "assist": { "actions": { "source": { "organizeImports": "off" } } },
16
27
  "linter": {
17
28
  "enabled": true,
18
29
  "rules": {
@@ -28,9 +39,9 @@
28
39
  "noUnusedImports": "error",
29
40
  "noUnusedVariables": {
30
41
  "fix": "none",
31
- "level": "error"
32
- },
33
- "useArrayLiterals": "error"
42
+ "level": "error",
43
+ "options": {}
44
+ }
34
45
  },
35
46
  "style": {
36
47
  // "useDefaultSwitchClause": "error", // consider`
@@ -42,16 +53,22 @@
42
53
  "useShorthandAssign": "error",
43
54
  "useForOf": "error",
44
55
  "useConsistentArrayType": "error",
45
- "useShorthandArrayType": "error",
46
56
  "noDefaultExport": "error",
47
- "noCommaOperator": "error",
48
- "noArguments": "error",
49
57
  "noNonNullAssertion": "off",
50
58
  "useImportType": "error",
51
59
  "noParameterAssign": "off",
52
60
  "useTemplate": "off",
53
61
  "useNumberNamespace": "off",
54
- "noUnusedTemplateLiteral": "off"
62
+ "noUnusedTemplateLiteral": "off",
63
+ "useAsConstAssertion": "error",
64
+ "useDefaultParameterLast": "error",
65
+ "useEnumInitializers": "error",
66
+ "useSelfClosingElements": "error",
67
+ "useSingleVarDeclarator": "error",
68
+ "noInferrableTypes": "error",
69
+ "noUselessElse": "error",
70
+ "useArrayLiterals": "error",
71
+ "noCommonJs": "error"
55
72
  },
56
73
  "suspicious": {
57
74
  "useNumberToFixedDigitsArgument": "error",
@@ -72,11 +89,11 @@
72
89
  "noForEach": "off",
73
90
  "noUselessThisAlias": "off",
74
91
  "useLiteralKeys": "off",
75
- "noBannedTypes": "off"
92
+ "noBannedTypes": "off",
93
+ "noCommaOperator": "error",
94
+ "noArguments": "error"
76
95
  },
77
- "nursery": {
78
- "noCommonJs": "error"
79
- }
96
+ "nursery": {}
80
97
  }
81
98
  },
82
99
  "javascript": {
@@ -94,7 +111,7 @@
94
111
  },
95
112
  "overrides": [
96
113
  {
97
- "include": ["*.vue"],
114
+ "includes": ["**/*.vue"],
98
115
  "linter": {
99
116
  "rules": {
100
117
  "correctness": {
@@ -1,4 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/1.9.3/schema.json",
2
+ "root": true,
3
+ "$schema": "https://biomejs.dev/schemas/2.0.0/schema.json",
3
4
  "extends": ["node_modules/@naturalcycles/dev-lib/cfg/biome.jsonc"]
4
5
  }
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "19.2.5",
4
+ "version": "19.3.1",
5
5
  "dependencies": {
6
+ "@biomejs/biome": "^2",
6
7
  "@commitlint/cli": "^19",
7
8
  "@commitlint/config-conventional": "^19",
8
9
  "@eslint/js": "^9",
@@ -12,6 +13,7 @@
12
13
  "@stylistic/eslint-plugin": "^4",
13
14
  "@vitest/coverage-v8": "^3",
14
15
  "@vitest/eslint-plugin": "^1",
16
+ "eslint": "^9",
15
17
  "eslint-plugin-import-x": "^4",
16
18
  "eslint-plugin-jsdoc": "^51",
17
19
  "eslint-plugin-simple-import-sort": "^12",
@@ -21,12 +23,13 @@
21
23
  "lint-staged": "^16",
22
24
  "micromatch": "^4",
23
25
  "mitm": "^1",
26
+ "prettier": "^3",
24
27
  "timekeeper": "^2",
25
28
  "typescript-eslint": "^8",
26
29
  "vue-eslint-parser": "^10"
27
30
  },
28
31
  "peerDependencies": {
29
- "@biomejs/biome": "^1",
32
+ "@biomejs/biome": "^2",
30
33
  "eslint": "^9",
31
34
  "husky": "^9",
32
35
  "prettier": "^3",