@howells/lint 0.2.4 → 0.2.6
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/README.md +7 -9
- package/bin/env.mjs +3 -0
- package/bin/howells-format.mjs +1 -4
- package/bin/howells-lint-strict.mjs +28 -29
- package/bin/howells-lint.mjs +33 -25
- package/bin/howells-ox-check.mjs +14 -13
- package/bin/howells-ox-fix.mjs +17 -16
- package/bin/howells-workspace-check.mjs +6 -6
- package/bin/run-manypkg-command.mjs +31 -31
- package/bin/run-package-bin.mjs +60 -70
- package/bin/workspace-preflight.mjs +120 -128
- package/biome/core.json +40 -40
- package/biome/next.json +36 -36
- package/biome/react.json +36 -36
- package/oxlint/boundaries.mjs +44 -46
- package/oxlint/core.mjs +78 -39
- package/package.json +39 -39
package/oxlint/core.mjs
CHANGED
|
@@ -2,43 +2,82 @@ import { defineConfig } from "oxlint";
|
|
|
2
2
|
import ultraciteCore from "ultracite/oxlint/core";
|
|
3
3
|
|
|
4
4
|
export default defineConfig({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
5
|
+
extends: [ultraciteCore],
|
|
6
|
+
overrides: [
|
|
7
|
+
{
|
|
8
|
+
files: ["**/*.test.{js,jsx,ts,tsx}", "**/*.spec.{js,jsx,ts,tsx}"],
|
|
9
|
+
rules: {
|
|
10
|
+
complexity: "off",
|
|
11
|
+
"max-lines-per-function": "off",
|
|
12
|
+
"max-statements": "off",
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
plugins: [...new Set([...(ultraciteCore.plugins ?? []), "vitest"])],
|
|
17
|
+
rules: {
|
|
18
|
+
complexity: [
|
|
19
|
+
"error",
|
|
20
|
+
{
|
|
21
|
+
max: 15,
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
"max-lines": [
|
|
25
|
+
"error",
|
|
26
|
+
{
|
|
27
|
+
max: 600,
|
|
28
|
+
skipBlankLines: true,
|
|
29
|
+
skipComments: true,
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
"max-lines-per-function": [
|
|
33
|
+
"error",
|
|
34
|
+
{
|
|
35
|
+
IIFEs: true,
|
|
36
|
+
max: 120,
|
|
37
|
+
skipBlankLines: true,
|
|
38
|
+
skipComments: true,
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
"max-statements": [
|
|
42
|
+
"error",
|
|
43
|
+
{
|
|
44
|
+
max: 45,
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
"no-restricted-properties": [
|
|
48
|
+
"error",
|
|
49
|
+
{
|
|
50
|
+
message:
|
|
51
|
+
"Use the project env schema instead of reading process.env directly. Env schema files may override this rule locally.",
|
|
52
|
+
object: "process",
|
|
53
|
+
property: "env",
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
"oxc/no-barrel-file": [
|
|
57
|
+
"error",
|
|
58
|
+
{
|
|
59
|
+
threshold: 0,
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
"unicorn/filename-case": [
|
|
63
|
+
"error",
|
|
64
|
+
{
|
|
65
|
+
cases: {
|
|
66
|
+
kebabCase: true,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
"vitest/hoisted-apis-on-top": "error",
|
|
71
|
+
"vitest/no-commented-out-tests": "error",
|
|
72
|
+
"vitest/no-conditional-tests": "error",
|
|
73
|
+
"vitest/no-disabled-tests": "error",
|
|
74
|
+
"vitest/no-focused-tests": "error",
|
|
75
|
+
"vitest/no-identical-title": "error",
|
|
76
|
+
"vitest/no-import-node-test": "error",
|
|
77
|
+
"vitest/no-mocks-import": "error",
|
|
78
|
+
"vitest/no-standalone-expect": "error",
|
|
79
|
+
"vitest/valid-describe-callback": "error",
|
|
80
|
+
"vitest/valid-expect": "error",
|
|
81
|
+
"vitest/valid-expect-in-promise": "error",
|
|
82
|
+
},
|
|
44
83
|
});
|
package/package.json
CHANGED
|
@@ -1,28 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@howells/lint",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "Pinned Biome, Oxlint/Oxfmt, Ultracite, and React Doctor presets for Howells projects.",
|
|
5
|
+
"keywords": [],
|
|
6
|
+
"homepage": "https://github.com/howells/lint#readme",
|
|
7
|
+
"bugs": {
|
|
8
|
+
"url": "https://github.com/howells/lint/issues"
|
|
9
|
+
},
|
|
5
10
|
"license": "MIT",
|
|
6
|
-
"
|
|
7
|
-
|
|
11
|
+
"author": "",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/howells/lint.git"
|
|
8
15
|
},
|
|
9
|
-
"files": [
|
|
10
|
-
"biome/*.json",
|
|
11
|
-
"oxfmt/*.d.mts",
|
|
12
|
-
"oxfmt/*.mjs",
|
|
13
|
-
"oxlint/*.d.mts",
|
|
14
|
-
"oxlint/*.mjs",
|
|
15
|
-
"bin/*.mjs",
|
|
16
|
-
"docs/**/*.md",
|
|
17
|
-
"CONTEXT.md",
|
|
18
|
-
"README.md",
|
|
19
|
-
"MIGRATIONS.md"
|
|
20
|
-
],
|
|
21
16
|
"bin": {
|
|
22
17
|
"howells-biome": "bin/howells-biome.mjs",
|
|
18
|
+
"howells-format": "bin/howells-format.mjs",
|
|
23
19
|
"howells-lint": "bin/howells-lint.mjs",
|
|
24
20
|
"howells-lint-strict": "bin/howells-lint-strict.mjs",
|
|
25
|
-
"howells-format": "bin/howells-format.mjs",
|
|
26
21
|
"howells-ox-check": "bin/howells-ox-check.mjs",
|
|
27
22
|
"howells-ox-fix": "bin/howells-ox-fix.mjs",
|
|
28
23
|
"howells-oxfmt": "bin/howells-oxfmt.mjs",
|
|
@@ -31,19 +26,20 @@
|
|
|
31
26
|
"howells-workspace-check": "bin/howells-workspace-check.mjs",
|
|
32
27
|
"howells-workspace-fix": "bin/howells-workspace-fix.mjs"
|
|
33
28
|
},
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
29
|
+
"files": [
|
|
30
|
+
"biome/*.json",
|
|
31
|
+
"oxfmt/*.d.mts",
|
|
32
|
+
"oxfmt/*.mjs",
|
|
33
|
+
"oxlint/*.d.mts",
|
|
34
|
+
"oxlint/*.mjs",
|
|
35
|
+
"bin/*.mjs",
|
|
36
|
+
"docs/**/*.md",
|
|
37
|
+
"CONTEXT.md",
|
|
38
|
+
"README.md",
|
|
39
|
+
"MIGRATIONS.md"
|
|
40
|
+
],
|
|
41
|
+
"type": "commonjs",
|
|
42
|
+
"main": "index.js",
|
|
47
43
|
"exports": {
|
|
48
44
|
"./package.json": "./package.json",
|
|
49
45
|
"./biome/core": "./biome/core.json",
|
|
@@ -74,18 +70,22 @@
|
|
|
74
70
|
"default": "./oxlint/react-doctor-rules.mjs"
|
|
75
71
|
}
|
|
76
72
|
},
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
"
|
|
80
|
-
"
|
|
73
|
+
"dependencies": {
|
|
74
|
+
"@biomejs/biome": "2.4.16",
|
|
75
|
+
"@manypkg/cli": "^0.25.1",
|
|
76
|
+
"eslint": "10.4.1",
|
|
77
|
+
"eslint-import-resolver-typescript": "4.4.5",
|
|
78
|
+
"eslint-plugin-boundaries": "6.0.2",
|
|
79
|
+
"oxc-parser": "0.134.0",
|
|
80
|
+
"oxfmt": "0.53.0",
|
|
81
|
+
"oxlint": "1.68.0",
|
|
82
|
+
"oxlint-plugin-react-doctor": "0.4.0",
|
|
83
|
+
"oxlint-tsgolint": "0.23.0",
|
|
84
|
+
"ultracite": "7.8.1"
|
|
81
85
|
},
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
"type": "commonjs",
|
|
85
|
-
"bugs": {
|
|
86
|
-
"url": "https://github.com/howells/lint/issues"
|
|
86
|
+
"engines": {
|
|
87
|
+
"node": ">=22.18.0"
|
|
87
88
|
},
|
|
88
|
-
"homepage": "https://github.com/howells/lint#readme",
|
|
89
89
|
"scripts": {
|
|
90
90
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
91
91
|
}
|