@naturalcycles/dev-lib 20.11.1 → 20.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.
@@ -129,7 +129,7 @@ export default {
129
129
  ],
130
130
  '@typescript-eslint/no-misused-new': 2,
131
131
  '@typescript-eslint/no-misused-spread': 0, // ox
132
- '@typescript-eslint/no-non-null-asserted-optional-chain': 2,
132
+ '@typescript-eslint/no-non-null-asserted-optional-chain': 0, // ox
133
133
  '@typescript-eslint/no-unused-expressions': 0, // oxlint
134
134
  '@typescript-eslint/prefer-as-const': 2,
135
135
  '@typescript-eslint/prefer-for-of': 0, // oxlint
@@ -2,15 +2,15 @@ export default {
2
2
  rules: {
3
3
  'vitest/consistent-test-filename': 2,
4
4
  'vitest/consistent-test-it': [
5
- 2,
5
+ 0, // ox
6
6
  {
7
7
  fn: 'test',
8
8
  withinDescribe: 'test',
9
9
  },
10
10
  ],
11
11
  'vitest/expect-expect': 0,
12
- 'vitest/max-nested-describe': [2, { max: 3 }],
13
- 'vitest/no-alias-methods': 2,
12
+ 'vitest/max-nested-describe': [0, { max: 3 }], // ox
13
+ 'vitest/no-alias-methods': 0, // ox
14
14
  'vitest/no-commented-out-tests': 0,
15
15
  'vitest/no-duplicate-hooks': 2,
16
16
  'vitest/no-test-return-statement': 2,
@@ -97,7 +97,7 @@ function getEslintConfigForDir() {
97
97
  ].filter(Boolean)
98
98
  }
99
99
 
100
- function getConfig(tsconfigPath) {
100
+ function getConfig(_tsconfigPath) {
101
101
  return {
102
102
  plugins: {
103
103
  '@typescript-eslint': tseslint.plugin,
@@ -116,7 +116,8 @@ function getConfig(tsconfigPath) {
116
116
  NodeJS: 'readonly',
117
117
  },
118
118
  parserOptions: {
119
- project: tsconfigPath,
119
+ // project: tsconfigPath,
120
+ projectService: true,
120
121
  // tsconfigRootDir: cwd,
121
122
  parser: tseslint.parser,
122
123
  extraFileExtensions: ['.vue', '.html'],
@@ -171,6 +171,15 @@
171
171
  ],
172
172
  "unicorn/no-accessor-recursion": 2,
173
173
  "vitest/no-import-node-test": 2,
174
+ "jest/consistent-test-it": [
175
+ 2,
176
+ {
177
+ "fn": "test",
178
+ "withinDescribe": "test"
179
+ }
180
+ ],
181
+ "jest/max-nested-describe": [0, { "max": 4 }], // not good
182
+ "jest/no-alias-methods": 2,
174
183
  "vue/no-multiple-slot-args": 2
175
184
  },
176
185
  "settings": {
@@ -6,8 +6,9 @@
6
6
  {
7
7
  "extends": "./tsconfig.src.json",
8
8
  "compilerOptions": {
9
- "paths": {
10
- "@src/*": ["${configDir}/src/*"]
11
- }
9
+ // copy-paste the paths if needed
10
+ // "paths": {
11
+ // "@src/*": ["./src/*"]
12
+ // },
12
13
  }
13
14
  }
@@ -7,9 +7,10 @@
7
7
  "rootDir": "${configDir}/..",
8
8
  // "baseUrl": "${configDir}/..",
9
9
  "outDir": "${configDir}/../dist/e2e",
10
- "paths": {
11
- "@src/*": ["${configDir}/../src/*"]
12
- },
10
+ // copy-paste the paths if needed
11
+ // "paths": {
12
+ // "@src/*": ["../src/*"]
13
+ // },
13
14
  "tsBuildInfoFile": "${configDir}/../node_modules/.cache/e2e.tsbuildinfo",
14
15
  "module": "esnext",
15
16
  "moduleResolution": "bundler",
@@ -9,9 +9,10 @@
9
9
  "target": "es2023", // es2023+ browsers, adjust to your requirements!
10
10
  "lib": ["esnext", "dom", "dom.iterable"],
11
11
  "module": "esnext",
12
- "moduleResolution": "bundler",
13
- "paths": {
14
- "@src/*": ["${configDir}/src/*"]
15
- }
12
+ "moduleResolution": "bundler"
13
+ // copy-paste the paths if needed
14
+ // "paths": {
15
+ // "@src/*": ["./src/*"]
16
+ // },
16
17
  }
17
18
  }
@@ -7,9 +7,10 @@
7
7
  "rootDir": "${configDir}/..",
8
8
  // "baseUrl": "${configDir}/..",
9
9
  "outDir": "${configDir}/../dist/scripts",
10
- "paths": {
11
- "@src/*": ["${configDir}/../src/*"]
12
- },
10
+ // copy-paste the paths if needed
11
+ // "paths": {
12
+ // "@src/*": ["../src/*"]
13
+ // },
13
14
  "tsBuildInfoFile": "${configDir}/../node_modules/.cache/scripts.tsbuildinfo"
14
15
  },
15
16
  "include": ["${configDir}"]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "20.11.1",
4
+ "version": "20.12.0",
5
5
  "dependencies": {
6
6
  "@biomejs/biome": "^2",
7
7
  "@commitlint/cli": "^20",