@howells/lint 0.2.3 → 0.2.5

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