Skip to content

Commit 29a706c

Browse files
authored
eslint-config-seekingalpha-typescript ver. 8.66.0 (#593)
- [new] extend oxlint rules with type-aware rules
1 parent a0e6a79 commit 29a706c

4 files changed

Lines changed: 54 additions & 35 deletions

File tree

eslint-configs/eslint-config-seekingalpha-typescript/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 8.66.0 - 2026-03-02
4+
5+
- [new] extend oxlint rules with type-aware rules
6+
37
## 8.65.0 - 2026-02-24
48

59
- [deps] upgrade `typescript-eslint` to version `8.56.1`

eslint-configs/eslint-config-seekingalpha-typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-seekingalpha-typescript",
3-
"version": "8.65.0",
3+
"version": "8.66.0",
44
"description": "SeekingAlpha's sharable typescript ESLint config",
55
"main": "index.js",
66
"type": "module",

eslint-configs/eslint-config-seekingalpha-typescript/rules/typescript-eslint/oxlint-config.json

Lines changed: 47 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -86,64 +86,79 @@
8686
],
8787
"typescript/explicit-function-return-type": "off",
8888
"typescript/explicit-module-boundary-types": "off",
89-
// require type info
89+
90+
// typeaware
9091
"typescript/await-thenable": "off",
91-
"typescript/consistent-return": "off",
92-
"typescript/consistent-type-exports": "off",
93-
"typescript/dot-notation": "off",
94-
"typescript/no-array-delete": "off",
92+
"typescript/consistent-return": "error",
93+
"typescript/consistent-type-exports": [
94+
"error",
95+
{ "fixMixedExportsWithInlineTypeSpecifier": true }
96+
],
97+
"typescript/dot-notation": "error",
98+
"typescript/no-array-delete": "error",
99+
// should fix 25 errors
95100
"typescript/no-base-to-string": "off",
101+
// 598 errors, we should enable this gradually and fix errors over time
96102
"typescript/no-confusing-void-expression": "off",
103+
// should fix errors
97104
"typescript/no-deprecated": "off",
98-
"typescript/no-duplicate-type-constituents": "off",
105+
"typescript/no-duplicate-type-constituents": "error",
99106
"typescript/no-floating-promises": "off",
100-
"typescript/no-for-in-array": "off",
101-
"typescript/no-implied-eval": "off",
102-
"typescript/no-meaningless-void-operator": "off",
107+
"typescript/no-for-in-array": "error",
108+
"typescript/no-implied-eval": "error",
109+
"typescript/no-meaningless-void-operator": "error",
110+
// 232 errors
103111
"typescript/no-misused-promises": "off",
104-
"typescript/no-misused-spread": "off",
105-
"typescript/no-mixed-enums": "off",
106-
"typescript/no-redundant-type-constituents": "off",
112+
"typescript/no-misused-spread": "error",
113+
"typescript/no-mixed-enums": "error",
114+
"typescript/no-redundant-type-constituents": "error",
115+
// 27 errors, need carefull check
107116
"typescript/no-unnecessary-boolean-literal-compare": "off",
108-
"typescript/no-unnecessary-qualifier": "off",
109-
"typescript/no-unnecessary-template-expression": "off",
110-
"typescript/no-unnecessary-type-arguments": "off",
111-
"typescript/no-unnecessary-type-assertion": "off",
117+
// 2903 errors
118+
"typescript/no-unnecessary-condition": "off",
119+
"typescript/no-unnecessary-qualifier": "error",
120+
"typescript/no-unnecessary-template-expression": "error",
121+
"typescript/no-unnecessary-type-arguments": "error",
122+
"typescript/no-unnecessary-type-assertion": "error",
123+
// false-positives with generics, need carefull check
112124
"typescript/no-unnecessary-type-parameters": "off",
113125
"typescript/no-unsafe-argument": "off",
114126
"typescript/no-unsafe-assignment": "off",
115127
"typescript/no-unsafe-call": "off",
128+
// 41 errors, need carefull check
116129
"typescript/no-unsafe-enum-comparison": "off",
117130
"typescript/no-unsafe-member-access": "off",
118131
"typescript/no-unsafe-return": "off",
119132
"typescript/no-unsafe-type-assertion": "off",
120-
"typescript/no-unsafe-unary-minus": "off",
133+
"typescript/no-unsafe-unary-minus": "error",
134+
// 184 errors, need carefull check
121135
"typescript/no-useless-default-assignment": "off",
136+
// 34 errors, need carefull check
122137
"typescript/non-nullable-type-assertion-style": "off",
123-
"typescript/only-throw-error": "off",
124-
"typescript/prefer-find": "off",
125-
"typescript/prefer-includes": "off",
138+
"typescript/only-throw-error": "error",
139+
"typescript/prefer-find": "error",
140+
"typescript/prefer-includes": "error",
141+
// 1197 errors
126142
"typescript/prefer-nullish-coalescing": "off",
127-
"typescript/prefer-optional-chain": "off",
128-
"typescript/prefer-promise-reject-errors": "off",
129-
"typescript/prefer-readonly": "off",
143+
"typescript/prefer-optional-chain": "error",
144+
"typescript/prefer-promise-reject-errors": "error",
145+
"typescript/prefer-readonly": "error",
130146
"typescript/prefer-readonly-parameter-types": "off",
131-
"typescript/prefer-reduce-type-parameter": "off",
147+
"typescript/prefer-reduce-type-parameter": "error",
132148
"typescript/prefer-regexp-exec": "off",
133-
"typescript/prefer-return-this-type": "off",
134-
"typescript/prefer-string-starts-ends-with": "off",
149+
"typescript/prefer-return-this-type": "error",
150+
"typescript/prefer-string-starts-ends-with": "error",
135151
"typescript/promise-function-async": "off",
136-
"typescript/related-getter-setter-pairs": "off",
137-
"typescript/require-array-sort-compare": "off",
138-
"typescript/require-await": "off",
139-
"typescript/restrict-plus-operands": "off",
140-
"typescript/restrict-template-expressions": "off",
152+
"typescript/related-getter-setter-pairs": "error",
153+
"typescript/require-array-sort-compare": "error",
154+
"typescript/require-await": "error",
155+
"typescript/restrict-plus-operands": "error",
156+
"typescript/restrict-template-expressions": "error",
141157
"typescript/return-await": "off",
142158
"typescript/strict-boolean-expressions": "off",
143159
"typescript/strict-void-return": "off",
144160
"typescript/switch-exhaustiveness-check": "off",
145161
"typescript/unbound-method": "off",
146-
"typescript/unified-signatures": "error",
147162
"typescript/use-unknown-in-catch-callback-variable": "off"
148163
}
149164
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
"eslint-plugin-promise": "7.2.1",
5656
"eslint-plugin-unicorn": "63.0.0",
5757
"husky": "9.1.7",
58-
"lint-staged": "16.2.7",
59-
"oxlint": "1.50.0",
58+
"lint-staged": "16.3.1",
59+
"oxlint": "1.51.0",
6060
"prettier": "3.8.1"
6161
}
6262
}

0 commit comments

Comments
 (0)