@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/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
- 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
+ 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.4",
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
- "engines": {
7
- "node": ">=22.18.0"
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
- "dependencies": {
35
- "@biomejs/biome": "2.4.15",
36
- "@manypkg/cli": "^0.25.1",
37
- "eslint": "10.4.1",
38
- "eslint-import-resolver-typescript": "4.4.4",
39
- "eslint-plugin-boundaries": "6.0.2",
40
- "oxc-parser": "0.133.0",
41
- "oxfmt": "0.51.0",
42
- "oxlint": "1.66.0",
43
- "oxlint-plugin-react-doctor": "0.4.0",
44
- "oxlint-tsgolint": "0.23.0",
45
- "ultracite": "7.8.1"
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
- "main": "index.js",
78
- "repository": {
79
- "type": "git",
80
- "url": "git+https://github.com/howells/lint.git"
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
- "keywords": [],
83
- "author": "",
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
  }