@rlly/pedantic 0.1.1 → 0.1.2
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 +19 -0
- package/oxlint/core.json +0 -3
- package/oxlint/type-aware.json +0 -1
- package/oxlint/vitest.json +45 -2
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1 +1,20 @@
|
|
|
1
1
|
# @rlly/pedantic
|
|
2
|
+
|
|
3
|
+
```bash
|
|
4
|
+
pnpm add -D -w @rlly/pedantic oxlint
|
|
5
|
+
# optionally install
|
|
6
|
+
pnpm add -D -w oxlint-tsgolint @e18e/eslint-plugin
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```json
|
|
10
|
+
{
|
|
11
|
+
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
12
|
+
"extends": [
|
|
13
|
+
"./node_modules/@rlly/pedantic/oxlint/core.json", // <-- always recommended
|
|
14
|
+
"./node_modules/@rlly/pedantic/oxlint/e18e.json",
|
|
15
|
+
"./node_modules/@rlly/pedantic/oxlint/type-aware.json",
|
|
16
|
+
"./node_modules/@rlly/pedantic/oxlint/vitest.json",
|
|
17
|
+
"./node_modules/@rlly/pedantic/oxlint/library.json"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
```
|
package/oxlint/core.json
CHANGED
|
@@ -120,7 +120,6 @@
|
|
|
120
120
|
"promise/catch-or-return": "error",
|
|
121
121
|
"promise/avoid-new": "warn",
|
|
122
122
|
"promise/always-return": ["warn", { "ignoreLastCallback": true }],
|
|
123
|
-
// non type aware
|
|
124
123
|
"typescript/prefer-ts-expect-error": "error",
|
|
125
124
|
"typescript/prefer-function-type": "warn",
|
|
126
125
|
"typescript/prefer-for-of": "warn",
|
|
@@ -138,8 +137,6 @@
|
|
|
138
137
|
"typescript/no-empty-interface": "warn",
|
|
139
138
|
"typescript/no-dynamic-delete": "error",
|
|
140
139
|
"typescript/no-confusing-non-null-assertion": "warn",
|
|
141
|
-
// "typescript/explicit-module-boundary-types": "warn",
|
|
142
|
-
// "typescript/explicit-function-return-type": "warn",
|
|
143
140
|
"typescript/consistent-type-imports": "warn",
|
|
144
141
|
"typescript/consistent-type-definitions": ["warn", "interface"],
|
|
145
142
|
"typescript/consistent-generic-constructors": [
|
package/oxlint/type-aware.json
CHANGED
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
"typescript/prefer-includes": "error",
|
|
19
19
|
"typescript/only-throw-error": "error",
|
|
20
20
|
"typescript/non-nullable-type-assertion-style": "warn",
|
|
21
|
-
// "typescript/no-unsafe-type-assertion": "warn",
|
|
22
21
|
"typescript/no-unsafe-return": "warn",
|
|
23
22
|
"typescript/no-unsafe-member-access": "warn",
|
|
24
23
|
"typescript/no-unsafe-enum-comparison": "warn",
|
package/oxlint/vitest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../node_modules/oxlint/configuration_schema.json",
|
|
3
|
-
"plugins": ["vitest"],
|
|
3
|
+
"plugins": ["vitest", "jest"],
|
|
4
4
|
"rules": {
|
|
5
5
|
"vitest/require-local-test-context-for-concurrent-snapshots": "error",
|
|
6
6
|
"vitest/prefer-to-be-truthy": "warn",
|
|
@@ -12,6 +12,49 @@
|
|
|
12
12
|
"vitest/hoisted-apis-on-top": "warn",
|
|
13
13
|
"vitest/consistent-vitest-vi": "warn",
|
|
14
14
|
"jest/require-to-throw-message": "off",
|
|
15
|
-
"jest/valid-title": "off"
|
|
15
|
+
"jest/valid-title": "off",
|
|
16
|
+
"jest/valid-describe-callback": "warn",
|
|
17
|
+
"jest/consistent-test-it": ["warn", { "fn": "it" }],
|
|
18
|
+
"jest/expect-expect": "warn",
|
|
19
|
+
"jest/max-expects": "warn",
|
|
20
|
+
"jest/max-nested-describe": "warn",
|
|
21
|
+
"jest/no-alias-methods": "error",
|
|
22
|
+
"jest/no-commented-out-tests": "warn",
|
|
23
|
+
"jest/no-conditional-expect": "warn",
|
|
24
|
+
"jest/no-conditional-in-test": "warn",
|
|
25
|
+
"jest/no-confusing-set-timeout": "off",
|
|
26
|
+
"jest/no-disabled-tests": "warn",
|
|
27
|
+
"jest/no-done-callback": "off",
|
|
28
|
+
"jest/no-duplicate-hooks": "error",
|
|
29
|
+
"jest/no-export": "warn",
|
|
30
|
+
"jest/no-focused-tests": "error",
|
|
31
|
+
"jest/no-hooks": "off",
|
|
32
|
+
"jest/no-identical-title": "warn",
|
|
33
|
+
"jest/no-interpolation-in-snapshots": "warn",
|
|
34
|
+
"jest/no-jasmine-globals": "error",
|
|
35
|
+
"jest/no-mocks-import": "error",
|
|
36
|
+
"jest/no-standalone-expect": "warn",
|
|
37
|
+
"jest/no-test-prefixes": "error",
|
|
38
|
+
"jest/no-test-return-statement": "error",
|
|
39
|
+
"jest/no-unneeded-async-expect-function": "warn",
|
|
40
|
+
"jest/no-untyped-mock-factory": "off",
|
|
41
|
+
"jest/padding-around-test-blocks": "warn",
|
|
42
|
+
"jest/prefer-comparison-matcher": "warn",
|
|
43
|
+
"jest/prefer-each": "warn",
|
|
44
|
+
"jest/prefer-equality-matcher": "warn",
|
|
45
|
+
"jest/prefer-expect-resolves": "warn",
|
|
46
|
+
"jest/prefer-hooks-in-order": "warn",
|
|
47
|
+
"jest/prefer-hooks-on-top": "warn",
|
|
48
|
+
"jest/prefer-jest-mocked": "off",
|
|
49
|
+
"jest/prefer-lowercase-title": "warn",
|
|
50
|
+
"jest/prefer-mock-promise-shorthand": "warn",
|
|
51
|
+
"jest/prefer-spy-on": "warn",
|
|
52
|
+
"jest/prefer-strict-equal": "warn",
|
|
53
|
+
"jest/prefer-to-be": "warn",
|
|
54
|
+
"jest/prefer-to-contain": "warn",
|
|
55
|
+
"jest/prefer-to-have-length": "warn",
|
|
56
|
+
"jest/prefer-todo": "warn",
|
|
57
|
+
"jest/require-top-level-describe": "warn",
|
|
58
|
+
"jest/valid-expect": "warn"
|
|
16
59
|
}
|
|
17
60
|
}
|