@systemfsoftware/oxlint-plugin-test-discipline 3.5.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.
@@ -0,0 +1,42 @@
1
+ import { Rule } from '@oxlint/plugins';
2
+
3
+ declare const _default: {
4
+ meta: {
5
+ name: string;
6
+ };
7
+ rules: {
8
+ 'damp-test-naming': Rule;
9
+ 'no-behaviourless-assertion': Rule;
10
+ 'pbt-naming': Rule;
11
+ 'no-silent-return': Rule;
12
+ 'no-assert-in-property': Rule;
13
+ 'property-file-purity': Rule;
14
+ 'no-nested-quantification': Rule;
15
+ 'prop-generated-law-duplicate': Rule;
16
+ 'prop-arbitrary-schema-origin': Rule;
17
+ 'prop-fixture-schema-origin': Rule;
18
+ 'in-source-test-prop-only': Rule;
19
+ 'in-source-test-targets-private': Rule;
20
+ 'no-test-file-in-src': Rule;
21
+ 'src-property-test-cell': Rule;
22
+ 'test-file-outside-tests-dir': Rule;
23
+ 'test-suffix-outside-src': Rule;
24
+ 'behaviour-test-requires-gherkin': Rule;
25
+ 'behaviour-exercises-use-case': Rule;
26
+ 'behaviour-one-feature-per-file': Rule;
27
+ 'no-pseudo-gherkin-unit-tests': Rule;
28
+ 'tests-dir-helpers-in-fixtures': Rule;
29
+ 'no-io-module-in-source-test': Rule;
30
+ 'tests-import-public-api': Rule;
31
+ };
32
+ configs: {
33
+ recommended: {
34
+ rules: {
35
+ readonly [x: string]: "error";
36
+ };
37
+ };
38
+ };
39
+ };
40
+ export default _default;
41
+
42
+ export { }
@@ -0,0 +1,42 @@
1
+ import { Rule } from '@oxlint/plugins';
2
+
3
+ declare const _default: {
4
+ meta: {
5
+ name: string;
6
+ };
7
+ rules: {
8
+ 'damp-test-naming': Rule;
9
+ 'no-behaviourless-assertion': Rule;
10
+ 'pbt-naming': Rule;
11
+ 'no-silent-return': Rule;
12
+ 'no-assert-in-property': Rule;
13
+ 'property-file-purity': Rule;
14
+ 'no-nested-quantification': Rule;
15
+ 'prop-generated-law-duplicate': Rule;
16
+ 'prop-arbitrary-schema-origin': Rule;
17
+ 'prop-fixture-schema-origin': Rule;
18
+ 'in-source-test-prop-only': Rule;
19
+ 'in-source-test-targets-private': Rule;
20
+ 'no-test-file-in-src': Rule;
21
+ 'src-property-test-cell': Rule;
22
+ 'test-file-outside-tests-dir': Rule;
23
+ 'test-suffix-outside-src': Rule;
24
+ 'behaviour-test-requires-gherkin': Rule;
25
+ 'behaviour-exercises-use-case': Rule;
26
+ 'behaviour-one-feature-per-file': Rule;
27
+ 'no-pseudo-gherkin-unit-tests': Rule;
28
+ 'tests-dir-helpers-in-fixtures': Rule;
29
+ 'no-io-module-in-source-test': Rule;
30
+ 'tests-import-public-api': Rule;
31
+ };
32
+ configs: {
33
+ recommended: {
34
+ rules: {
35
+ readonly [x: string]: "error";
36
+ };
37
+ };
38
+ };
39
+ };
40
+ export default _default;
41
+
42
+ export { }
@@ -0,0 +1,32 @@
1
+ import { Rule } from '@oxlint/plugins';
2
+
3
+ declare const _default: {
4
+ meta: {
5
+ name: string;
6
+ };
7
+ rules: {
8
+ 'in-source-test-prop-only': Rule;
9
+ 'in-source-test-targets-private': Rule;
10
+ 'no-test-file-in-src': Rule;
11
+ 'src-property-test-cell': Rule;
12
+ 'test-file-outside-tests-dir': Rule;
13
+ 'test-suffix-outside-src': Rule;
14
+ 'behaviour-test-requires-gherkin': Rule;
15
+ 'behaviour-exercises-use-case': Rule;
16
+ 'behaviour-one-feature-per-file': Rule;
17
+ 'no-pseudo-gherkin-unit-tests': Rule;
18
+ 'tests-dir-helpers-in-fixtures': Rule;
19
+ 'no-io-module-in-source-test': Rule;
20
+ 'tests-import-public-api': Rule;
21
+ };
22
+ configs: {
23
+ recommended: {
24
+ rules: {
25
+ readonly [x: string]: "error";
26
+ };
27
+ };
28
+ };
29
+ };
30
+ export default _default;
31
+
32
+ export { }
@@ -0,0 +1,32 @@
1
+ import { Rule } from '@oxlint/plugins';
2
+
3
+ declare const _default: {
4
+ meta: {
5
+ name: string;
6
+ };
7
+ rules: {
8
+ 'in-source-test-prop-only': Rule;
9
+ 'in-source-test-targets-private': Rule;
10
+ 'no-test-file-in-src': Rule;
11
+ 'src-property-test-cell': Rule;
12
+ 'test-file-outside-tests-dir': Rule;
13
+ 'test-suffix-outside-src': Rule;
14
+ 'behaviour-test-requires-gherkin': Rule;
15
+ 'behaviour-exercises-use-case': Rule;
16
+ 'behaviour-one-feature-per-file': Rule;
17
+ 'no-pseudo-gherkin-unit-tests': Rule;
18
+ 'tests-dir-helpers-in-fixtures': Rule;
19
+ 'no-io-module-in-source-test': Rule;
20
+ 'tests-import-public-api': Rule;
21
+ };
22
+ configs: {
23
+ recommended: {
24
+ rules: {
25
+ readonly [x: string]: "error";
26
+ };
27
+ };
28
+ };
29
+ };
30
+ export default _default;
31
+
32
+ export { }
package/package.json ADDED
@@ -0,0 +1,86 @@
1
+ {
2
+ "name": "@systemfsoftware/oxlint-plugin-test-discipline",
3
+ "license": "Apache-2.0",
4
+ "version": "3.5.1",
5
+ "author": "Ryan Lee <drdgvhbh@gmail.com>",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/systemfsoftware/systemfsoftware.git",
9
+ "directory": "packages/oxlint-plugin/oxlint-plugin-test-discipline"
10
+ },
11
+ "homepage": "https://github.com/systemfsoftware/systemfsoftware/tree/main/packages/oxlint-plugin/oxlint-plugin-test-discipline#readme",
12
+ "bugs": "https://github.com/systemfsoftware/systemfsoftware/issues",
13
+ "description": "Oxlint rules enforcing property-based test laws, test placement, and test naming hygiene.",
14
+ "keywords": [
15
+ "oxlint",
16
+ "oxlint-plugin",
17
+ "oxc",
18
+ "lint",
19
+ "linter",
20
+ "lint-rules",
21
+ "test-placement",
22
+ "testing-trophy",
23
+ "property-testing",
24
+ "integration-testing",
25
+ "gherkin",
26
+ "bdd",
27
+ "typescript"
28
+ ],
29
+ "type": "module",
30
+ "files": [
31
+ "dist"
32
+ ],
33
+ "exports": {
34
+ ".": {
35
+ "types": "./dist/oxlint-plugin-test-discipline.d.ts",
36
+ "default": "./dist/index.mjs"
37
+ },
38
+ "./package.json": "./package.json"
39
+ },
40
+ "dependencies": {
41
+ "@oxc-project/types": "^0.150.0",
42
+ "@oxlint/plugins": "~1.82.0"
43
+ },
44
+ "devDependencies": {
45
+ "@microsoft/api-extractor": "^7.59.1",
46
+ "@systemfsoftware/arethetypeswrong-cli": "^4.2.0",
47
+ "@systemfsoftware/stryker-ignorer-effect-schema-declarations": "^0.1.0",
48
+ "@systemfsoftware/stryker-ignorer-in-source-vitest-block": "^0.1.0",
49
+ "@systemfsoftware/stryker-js": "^10.0.1",
50
+ "@systemfsoftware/stryker-js-typescript-checker": "^7.0.4",
51
+ "@systemfsoftware/stryker-js-vitest-runner": "^7.0.1",
52
+ "@systemfsoftware/stryker-test-contribution": "^3.0.3",
53
+ "@types/node": "^26",
54
+ "@vitest/coverage-v8": "^5",
55
+ "effect": "4.0.0-rc.116",
56
+ "fast-check": "^4",
57
+ "oxlint": "~1.82.0",
58
+ "rimraf": "^6.1.3",
59
+ "tsdown": "^0.23.0",
60
+ "typescript": "^7",
61
+ "vitest": "^5",
62
+ "@systemfsoftware/stryker-config": "^0.1.0",
63
+ "@systemfsoftware/tsdown-config": "^0.1.0",
64
+ "@systemfsoftware/vitest-config": "^0.1.0",
65
+ "@systemfsoftware/tsconfig": "^1.3.6"
66
+ },
67
+ "peerDependencies": {
68
+ "effect": "4.0.0-rc.116",
69
+ "typescript": ">=5.0.0"
70
+ },
71
+ "publishConfig": {
72
+ "provenance": true
73
+ },
74
+ "scripts": {
75
+ "build": "tsdown -l warn && pnpm api:check",
76
+ "clean": "rimraf dist",
77
+ "typecheck": "tsc --noEmit --incremental",
78
+ "test": "vitest run",
79
+ "mutation": "stryker run",
80
+ "mutation:full": "stryker run --force",
81
+ "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --format=${f:-default}",
82
+ "attw": "attw --pack .",
83
+ "api:check": "api-extractor-quiet run",
84
+ "api:update": "api-extractor run --local"
85
+ }
86
+ }