@naturalcycles/dev-lib 20.12.12 → 20.13.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.
@@ -118,7 +118,7 @@ export default {
118
118
  modifiers: ['requiresQuotes'],
119
119
  },
120
120
  ],
121
- '@typescript-eslint/no-array-constructor': 2,
121
+ '@typescript-eslint/no-array-constructor': 0, // ox
122
122
  '@typescript-eslint/no-extra-non-null-assertion': 2,
123
123
  '@typescript-eslint/no-floating-promises': 0, // oxlint
124
124
  '@typescript-eslint/no-inferrable-types': [
@@ -136,7 +136,7 @@ export default {
136
136
  '@typescript-eslint/prefer-function-type': 0, // ox
137
137
  '@typescript-eslint/prefer-namespace-keyword': 0, // ox
138
138
  '@typescript-eslint/promise-function-async': [
139
- 2,
139
+ 0, // ox
140
140
  {
141
141
  checkArrowFunctions: false,
142
142
  checkFunctionDeclarations: true,
@@ -328,6 +328,7 @@ export default {
328
328
  '@typescript-eslint/prefer-promise-reject-errors': 0, // ox
329
329
  'unicorn/prefer-import-meta-properties': 2,
330
330
  'unicorn/prefer-response-static-json': 0, // ox
331
+ 'unicorn/prefer-includes': 0, // ox
331
332
  'unicorn/no-array-callback-reference': 0, // false positives
332
333
  'unicorn/no-process-exit': 0,
333
334
  'unicorn/prefer-single-call': 0,
@@ -68,6 +68,7 @@ if (oxlintConfigPath) {
68
68
  oxlintCmd = [
69
69
  'oxlint',
70
70
  '--type-aware',
71
+ '--type-check',
71
72
  '--fix',
72
73
  '--fix-suggestions',
73
74
  '--fix-dangerously',
@@ -37,6 +37,8 @@
37
37
  "prefer-array-find": 2,
38
38
  "prefer-array-flat-map": 2,
39
39
  "prefer-set-has": 2,
40
+ "no-array-constructor": 2,
41
+ "no-useless-return": 2,
40
42
  "no-bitwise": 2,
41
43
  "no-empty": [2, { "allowEmptyCatch": true }],
42
44
  "no-regex-spaces": 2,
@@ -87,7 +89,7 @@
87
89
  "typescript/non-nullable-type-assertion-style": 2,
88
90
  "typescript/prefer-literal-enum-member": 2,
89
91
  "typescript/promise-function-async": [
90
- 0, // todo, options don't work yet
92
+ 2,
91
93
  {
92
94
  "checkArrowFunctions": false,
93
95
  "checkFunctionDeclarations": true,
package/dist/lint.util.js CHANGED
@@ -143,6 +143,7 @@ export function runOxlint(fix = true) {
143
143
  // '--report-unused-disable-directives',
144
144
  '--max-warnings=0',
145
145
  '--type-aware',
146
+ '--type-check',
146
147
  fix && '--fix',
147
148
  fix && '--fix-suggestions',
148
149
  fix && '--fix-dangerously',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "20.12.12",
4
+ "version": "20.13.1",
5
5
  "dependencies": {
6
6
  "@biomejs/biome": "^2",
7
7
  "@commitlint/cli": "^20",
package/readme.md CHANGED
@@ -14,6 +14,7 @@
14
14
  ## Tools that dev-lib enables
15
15
 
16
16
  - Prettier
17
+ - oxlint
17
18
  - ESLint
18
19
  - Biome
19
20
  - Stylelint