@naturalcycles/dev-lib 20.31.2 → 20.32.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/eslint-rules.js +1 -1
- package/cfg/eslint.config.js +1 -2
- package/cfg/oxlint.config.json +8 -0
- package/dist/bin/dev-lib.js +6 -6
- package/package.json +1 -1
package/cfg/eslint-rules.js
CHANGED
|
@@ -33,7 +33,7 @@ export default {
|
|
|
33
33
|
},
|
|
34
34
|
],
|
|
35
35
|
'@typescript-eslint/consistent-type-imports': 0, // ox
|
|
36
|
-
'@typescript-eslint/consistent-type-exports':
|
|
36
|
+
'@typescript-eslint/consistent-type-exports': 0, // ox
|
|
37
37
|
'@typescript-eslint/consistent-type-assertions': 2,
|
|
38
38
|
'@typescript-eslint/consistent-type-definitions': [0, 'interface'], // ox
|
|
39
39
|
'@typescript-eslint/consistent-generic-constructors': [0, 'constructor'], // ox
|
package/cfg/eslint.config.js
CHANGED
|
@@ -8,7 +8,6 @@ import eslint from '@eslint/js'
|
|
|
8
8
|
import eslintPluginOxlint from 'eslint-plugin-oxlint'
|
|
9
9
|
import globals from 'globals'
|
|
10
10
|
import tseslint from 'typescript-eslint'
|
|
11
|
-
import eslintBiomeRules from './eslint-biome-rules.js'
|
|
12
11
|
import eslintPrettierRules from './eslint-prettier-rules.js'
|
|
13
12
|
import eslintRules from './eslint-rules.js'
|
|
14
13
|
|
|
@@ -122,7 +121,7 @@ function getConfig(_tsconfigPath) {
|
|
|
122
121
|
...eslintRules.rules,
|
|
123
122
|
// ...eslintVueRules.rules,
|
|
124
123
|
...eslintPrettierRules.rules, // disable eslint rules already covered by prettier
|
|
125
|
-
...eslintBiomeRules.rules, // disable eslint rules already covered by biome
|
|
124
|
+
// ...eslintBiomeRules.rules, // disable eslint rules already covered by biome
|
|
126
125
|
...eslintPluginOxlint.configs['flat/all'][0].rules, // disable eslint rules already covered by oxlint
|
|
127
126
|
// rules that are disabled, but shouldn't yet be disabled
|
|
128
127
|
'@typescript-eslint/return-await': [2, 'always'],
|
package/cfg/oxlint.config.json
CHANGED
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
],
|
|
14
14
|
"jsPlugins": ["./oxlint-plugin-stylistic.mjs"],
|
|
15
15
|
"rules": {
|
|
16
|
+
"no-unused-vars": [
|
|
17
|
+
"error",
|
|
18
|
+
{
|
|
19
|
+
"varsIgnorePattern": "^(_$|__)",
|
|
20
|
+
"argsIgnorePattern": "^_",
|
|
21
|
+
"destructuredArrayIgnorePattern": "^_"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
16
24
|
"@stylistic/padding-line-between-statements": [
|
|
17
25
|
2,
|
|
18
26
|
{ "blankLine": "always", "prev": "function", "next": "*" },
|
package/dist/bin/dev-lib.js
CHANGED
|
@@ -3,7 +3,7 @@ import { _by } from '@naturalcycles/js-lib/array/array.util.js';
|
|
|
3
3
|
import { _assert } from '@naturalcycles/js-lib/error/assert.js';
|
|
4
4
|
import { fs2 } from '@naturalcycles/nodejs-lib/fs2';
|
|
5
5
|
import { runScript } from '@naturalcycles/nodejs-lib/runScript';
|
|
6
|
-
import { buildCopy, buildProd, eslintAll, lintStagedCommand,
|
|
6
|
+
import { buildCopy, buildProd, eslintAll, lintStagedCommand, runBiome, runCheck, runOxfmt, runOxlint, runTest, stylelintAll, typecheckWithTS, typecheckWithTSC, typecheckWithTSGO, } from '../check.util.js';
|
|
7
7
|
import { runCommitlint } from '../commitlint.js';
|
|
8
8
|
const commands = [
|
|
9
9
|
{ name: 'check', fn: runCheck, desc: '"Run all possible checks": lint, typecheck, then test.' },
|
|
@@ -175,11 +175,11 @@ async function bt() {
|
|
|
175
175
|
await typecheckWithTS();
|
|
176
176
|
runTest();
|
|
177
177
|
}
|
|
178
|
-
async function _typecheckWithOxlint() {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
178
|
+
// async function _typecheckWithOxlint(): Promise<void> {
|
|
179
|
+
// requireOxlintConfig()
|
|
180
|
+
// const fix = !CI
|
|
181
|
+
// runOxlint(fix)
|
|
182
|
+
// }
|
|
183
183
|
async function cleanBuild() {
|
|
184
184
|
cleanDist();
|
|
185
185
|
buildProd();
|