@pob/eslint-config 67.4.0 → 67.6.0

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,188 @@
1
+ {
2
+ "options": {
3
+ "typeAware": true
4
+ },
5
+ "overrides": [
6
+ {
7
+ "files": ["**/*.{ts,cts,mts,tsx}"],
8
+ "rules": {
9
+ "typescript/adjacent-overload-signatures": "error",
10
+ "typescript/array-type": "error",
11
+ "typescript/await-thenable": "error",
12
+ "typescript/ban-ts-comment": [
13
+ "error",
14
+ {
15
+ "minimumDescriptionLength": 3,
16
+ "ts-check": true,
17
+ "ts-expect-error": "allow-with-description",
18
+ "ts-ignore": true,
19
+ "ts-nocheck": true
20
+ }
21
+ ],
22
+ "typescript/ban-tslint-comment": "error",
23
+ "typescript/class-literal-property-style": "error",
24
+ "typescript/consistent-generic-constructors": "error",
25
+ "typescript/consistent-indexed-object-style": "error",
26
+ "typescript/consistent-type-assertions": [
27
+ "error",
28
+ {
29
+ "arrayLiteralTypeAssertions": "allow",
30
+ "assertionStyle": "as",
31
+ "objectLiteralTypeAssertions": "allow-as-parameter"
32
+ }
33
+ ],
34
+ "typescript/consistent-type-definitions": "error",
35
+ "typescript/consistent-type-exports": "error",
36
+ "typescript/consistent-type-imports": "error",
37
+ "typescript/dot-notation": [
38
+ "error",
39
+ {
40
+ "allowIndexSignaturePropertyAccess": false,
41
+ "allowKeywords": true,
42
+ "allowPattern": "",
43
+ "allowPrivateClassPropertyAccess": false,
44
+ "allowProtectedClassPropertyAccess": false
45
+ }
46
+ ],
47
+ "typescript/explicit-function-return-type": [
48
+ "error",
49
+ {
50
+ "allowConciseArrowFunctionExpressionsStartingWithVoid": false,
51
+ "allowDirectConstAssertionInArrowFunctions": true,
52
+ "allowExpressions": true,
53
+ "allowFunctionsWithoutTypeParameters": false,
54
+ "allowHigherOrderFunctions": true,
55
+ "allowIIFEs": false,
56
+ "allowTypedFunctionExpressions": true,
57
+ "allowedNames": []
58
+ }
59
+ ],
60
+ "typescript/explicit-module-boundary-types": "error",
61
+ "typescript/method-signature-style": "error",
62
+ "typescript/no-array-delete": "error",
63
+ "typescript/no-base-to-string": "error",
64
+ "typescript/no-confusing-non-null-assertion": "error",
65
+ "typescript/no-confusing-void-expression": "warn",
66
+ "typescript/no-deprecated": "error",
67
+ "typescript/no-duplicate-enum-values": "error",
68
+ "typescript/no-duplicate-type-constituents": "error",
69
+ "typescript/no-dynamic-delete": "error",
70
+ "typescript/no-empty-object-type": "error",
71
+ "typescript/no-explicit-any": "warn",
72
+ "typescript/no-extra-non-null-assertion": "error",
73
+ "typescript/no-floating-promises": "error",
74
+ "typescript/no-for-in-array": "error",
75
+ "typescript/no-implied-eval": "error",
76
+ "typescript/no-import-type-side-effects": "error",
77
+ "typescript/no-inferrable-types": "error",
78
+ "typescript/no-invalid-void-type": "error",
79
+ "typescript/no-meaningless-void-operator": "error",
80
+ "typescript/no-misused-new": "error",
81
+ "typescript/no-misused-promises": "error",
82
+ "typescript/no-misused-spread": "error",
83
+ "typescript/no-mixed-enums": "error",
84
+ "typescript/no-namespace": "error",
85
+ "typescript/no-non-null-asserted-nullish-coalescing": "error",
86
+ "typescript/no-non-null-asserted-optional-chain": "error",
87
+ "typescript/no-non-null-assertion": "warn",
88
+ "typescript/no-redundant-type-constituents": "warn",
89
+ "typescript/no-this-alias": "error",
90
+ "typescript/no-unnecessary-boolean-literal-compare": "error",
91
+ "typescript/no-unnecessary-condition": "warn",
92
+ "typescript/no-unnecessary-qualifier": "error",
93
+ "typescript/no-unnecessary-template-expression": "error",
94
+ "typescript/no-unnecessary-type-assertion": "error",
95
+ "typescript/no-unnecessary-type-constraint": "error",
96
+ "typescript/no-unnecessary-type-conversion": "error",
97
+ "typescript/no-unnecessary-type-parameters": "warn",
98
+ "typescript/no-unsafe-argument": "error",
99
+ "typescript/no-unsafe-assignment": "error",
100
+ "typescript/no-unsafe-call": "error",
101
+ "typescript/no-unsafe-declaration-merging": "error",
102
+ "typescript/no-unsafe-enum-comparison": "error",
103
+ "typescript/no-unsafe-function-type": "error",
104
+ "typescript/no-unsafe-member-access": "error",
105
+ "typescript/no-unsafe-return": "error",
106
+ "typescript/no-unsafe-unary-minus": "error",
107
+ "typescript/no-useless-default-assignment": "error",
108
+ "typescript/no-useless-empty-export": "error",
109
+ "typescript/no-wrapper-object-types": "error",
110
+ "typescript/non-nullable-type-assertion-style": "error",
111
+ "typescript/only-throw-error": "error",
112
+ "typescript/parameter-properties": "error",
113
+ "typescript/prefer-as-const": "error",
114
+ "typescript/prefer-enum-initializers": "error",
115
+ "typescript/prefer-find": "error",
116
+ "typescript/prefer-function-type": "error",
117
+ "typescript/prefer-literal-enum-member": "error",
118
+ "typescript/prefer-namespace-keyword": "error",
119
+ "typescript/prefer-optional-chain": "error",
120
+ "typescript/prefer-promise-reject-errors": "error",
121
+ "typescript/prefer-reduce-type-parameter": "error",
122
+ "typescript/prefer-regexp-exec": "error",
123
+ "typescript/prefer-return-this-type": "error",
124
+ "typescript/prefer-string-starts-ends-with": "error",
125
+ "typescript/related-getter-setter-pairs": "error",
126
+ "typescript/require-await": "error",
127
+ "typescript/restrict-plus-operands": [
128
+ "error",
129
+ {
130
+ "allowAny": false,
131
+ "allowBoolean": false,
132
+ "allowNullish": false,
133
+ "allowNumberAndString": false,
134
+ "allowRegExp": false
135
+ }
136
+ ],
137
+ "typescript/restrict-template-expressions": [
138
+ "error",
139
+ {
140
+ "allow": [
141
+ {
142
+ "from": "lib",
143
+ "name": ["Error", "URL", "URLSearchParams"]
144
+ }
145
+ ],
146
+ "allowAny": false,
147
+ "allowArray": false,
148
+ "allowBoolean": true,
149
+ "allowNever": false,
150
+ "allowNullish": false,
151
+ "allowNumber": true,
152
+ "allowRegExp": false
153
+ }
154
+ ],
155
+ "typescript/return-await": ["error", "error-handling-correctness-only"],
156
+ "typescript/switch-exhaustiveness-check": "error",
157
+ "typescript/triple-slash-reference": "error",
158
+ "typescript/unified-signatures": "warn",
159
+ "typescript/use-unknown-in-catch-callback-variable": "error"
160
+ }
161
+ },
162
+ {
163
+ "files": [
164
+ "**/*.test.{ts,cts,mts,tsx}",
165
+ "**/*.test-e2e.{ts,cts,mts,tsx}",
166
+ "**/__tests__/**/*.{ts,cts,mts,tsx}",
167
+ "**/__mocks__/**/*.{ts,cts,mts,tsx}"
168
+ ],
169
+ "rules": {
170
+ "typescript/explicit-function-return-type": "off",
171
+ "typescript/no-floating-promises": [
172
+ "error",
173
+ {
174
+ "allowForKnownSafeCalls": [
175
+ {
176
+ "from": "package",
177
+ "name": ["it", "describe", "test"],
178
+ "package": "node:test"
179
+ }
180
+ ]
181
+ }
182
+ ],
183
+ "typescript/no-unsafe-member-access": "off",
184
+ "typescript/no-unsafe-return": "off"
185
+ }
186
+ }
187
+ ]
188
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/eslint-config",
3
- "version": "67.4.0",
3
+ "version": "67.6.0",
4
4
  "description": "eslint config files",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/christophehurpeau/pob",
@@ -16,6 +16,12 @@
16
16
  },
17
17
  "files": [
18
18
  "lib",
19
+ "oxlint/allow-implicit-return-type.json",
20
+ "oxlint/allow-unsafe-as-warn.json",
21
+ "oxlint/allow-unsafe.json",
22
+ "oxlint/app.json",
23
+ "oxlint/base.json",
24
+ "oxlint/typescript.json",
19
25
  "utils.js"
20
26
  ],
21
27
  "type": "module",
@@ -27,6 +33,12 @@
27
33
  "./lib/rules/code-quality": "./lib/rules/code-quality.js",
28
34
  "./lib/rules/errors": "./lib/rules/errors.js",
29
35
  "./lib/rules/style": "./lib/rules/style.js",
36
+ "./oxlint/allow-implicit-return-type.json": "./oxlint/allow-implicit-return-type.json",
37
+ "./oxlint/allow-unsafe.json": "./oxlint/allow-unsafe.json",
38
+ "./oxlint/allow-unsafe-as-warn.json": "./oxlint/allow-unsafe-as-warn.json",
39
+ "./oxlint/app.json": "./oxlint/app.json",
40
+ "./oxlint/base.json": "./oxlint/base.json",
41
+ "./oxlint/typescript.json": "./oxlint/typescript.json",
30
42
  "./utils": "./utils.js",
31
43
  "./package.json": "./package.json"
32
44
  },
@@ -38,14 +50,14 @@
38
50
  "@eslint/json": "^1.2.0",
39
51
  "@typescript-eslint/eslint-plugin": "8.63.0",
40
52
  "@typescript-eslint/parser": "8.63.0",
41
- "check-package-dependencies": "^13.0.0",
53
+ "check-package-dependencies": "^13.2.0",
42
54
  "confusing-browser-globals": "^1.0.11",
43
55
  "eslint-plugin-import-x": "^4.17.1",
44
56
  "eslint-plugin-n": "^17.24.0",
45
57
  "eslint-plugin-regexp": "^3.1.0",
46
58
  "eslint-plugin-unicorn": "^64.0.0",
47
59
  "typescript-eslint": "^8.63.0",
48
- "@pob/eslint-plugin": "66.1.2"
60
+ "@pob/eslint-plugin": "66.3.0"
49
61
  },
50
62
  "devDependencies": {
51
63
  "@types/node": "24.13.3",
@@ -71,7 +83,8 @@
71
83
  },
72
84
  "pob": {},
73
85
  "scripts": {
74
- "lint": "pnpm run lint:eslint",
75
- "lint:eslint": "pnpm run --dir '../..' eslint --quiet '@pob/eslint-config'"
86
+ "lint": "pnpm run lint:oxlint && pnpm run lint:eslint",
87
+ "lint:eslint": "pnpm --dir '../..' exec eslint --quiet '@pob/eslint-config'",
88
+ "lint:oxlint": "pnpm --dir '../..' exec oxlint --quiet '@pob/eslint-config'"
76
89
  }
77
90
  }