Skip to content

Commit 188340e

Browse files
authored
Ver/9.103.0 (#602)
* eslint-config-seekingalpha-base ver. 11.51.0 - [new] extend oxlint config * eslint-config-seekingalpha-react ver. 10.32.0 - [new] extend oxlint config * eslint-config-seekingalpha-tests ver. 4.56.0 - [new] extend oxlint config
1 parent 5f909c6 commit 188340e

14 files changed

Lines changed: 43 additions & 3 deletions

File tree

eslint-configs/eslint-config-seekingalpha-base/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+
## 11.51.0 - 2026-04-07
4+
5+
- [new] extend oxlint config
6+
37
## 11.50.0 - 2026-03-31
48

59
- [new] extend oxlint config

eslint-configs/eslint-config-seekingalpha-base/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-base",
3-
"version": "11.50.0",
3+
"version": "11.51.0",
44
"description": "SeekingAlpha's sharable base ESLint config",
55
"main": "index.js",
66
"type": "module",

eslint-configs/eslint-config-seekingalpha-base/rules/eslint-plugin-unicorn/oxlint-config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export default {
6565
'unicorn/no-useless-switch-case': 'error',
6666
'unicorn/no-useless-error-capture-stack-trace': 'error',
6767
'unicorn/no-useless-fallback-in-spread': 'error',
68+
'unicorn/no-useless-iterator-to-array': 'error',
6869
'unicorn/no-useless-length-check': 'error',
6970
'unicorn/no-useless-promise-resolve-reject': 'error',
7071
'unicorn/no-useless-undefined': 'error',
@@ -91,6 +92,7 @@ export default {
9192
'unicorn/prefer-dom-node-text-content': 'error',
9293
'unicorn/prefer-event-target': 'error',
9394
'unicorn/prefer-global-this': 'off',
95+
'unicorn/prefer-import-meta-properties': 'error',
9496
'unicorn/prefer-includes': 'error',
9597
'unicorn/prefer-keyboard-event-key': 'error',
9698
'unicorn/prefer-logical-operator-over-ternary': 'error',
@@ -129,6 +131,7 @@ export default {
129131
'unicorn/require-number-to-fixed-digits-argument': 'error',
130132
'unicorn/require-post-message-target-origin': 'error',
131133
'unicorn/switch-case-braces': ['error', 'always'],
134+
'unicorn/switch-case-break-position': 'error',
132135
'unicorn/text-encoding-identifier-case': 'error',
133136
'unicorn/throw-new-error': 'error',
134137
},

eslint-configs/eslint-config-seekingalpha-base/rules/eslint-plugin-unicorn/oxlint-disabled.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export const ESLintPluginUnicornDisabled = {
5858
'unicorn/no-useless-switch-case': 'off',
5959
'unicorn/no-useless-error-capture-stack-trace': 'off',
6060
'unicorn/no-useless-fallback-in-spread': 'off',
61+
'unicorn/no-useless-iterator-to-array': 'off',
6162
'unicorn/no-useless-length-check': 'off',
6263
'unicorn/no-useless-promise-resolve-reject': 'off',
6364
'unicorn/no-useless-undefined': 'off',
@@ -84,6 +85,7 @@ export const ESLintPluginUnicornDisabled = {
8485
'unicorn/prefer-dom-node-text-content': 'off',
8586
'unicorn/prefer-event-target': 'off',
8687
'unicorn/prefer-global-this': 'off',
88+
'unicorn/prefer-import-meta-properties': 'off',
8789
'unicorn/prefer-includes': 'off',
8890
'unicorn/prefer-keyboard-event-key': 'off',
8991
'unicorn/prefer-logical-operator-over-ternary': 'off',
@@ -122,6 +124,7 @@ export const ESLintPluginUnicornDisabled = {
122124
'unicorn/require-number-to-fixed-digits-argument': 'off',
123125
'unicorn/require-post-message-target-origin': 'off',
124126
'unicorn/switch-case-braces': 'off',
127+
'unicorn/switch-case-break-position': 'off',
125128
'unicorn/text-encoding-identifier-case': 'off',
126129
'unicorn/throw-new-error': 'off',
127130
};

eslint-configs/eslint-config-seekingalpha-base/rules/eslint/oxlint-config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ export default {
233233
'no-proto': 'error',
234234
'no-redeclare': 'error',
235235
'no-regex-spaces': 'error',
236+
'no-restricted-exports': 'off',
236237
'no-restricted-globals': [
237238
'error',
238239
{
@@ -276,6 +277,7 @@ export default {
276277
},
277278
],
278279
'no-unused-labels': 'error',
280+
'no-useless-assignment': 'error',
279281
'no-useless-call': 'error',
280282
'no-useless-catch': 'error',
281283
'no-useless-computed-key': 'error',
@@ -295,6 +297,14 @@ export default {
295297
'no-void': 'error',
296298
'no-warning-comments': 'off',
297299
'no-with': 'error',
300+
'object-shorthand': [
301+
'error',
302+
'always',
303+
{
304+
ignoreConstructors: false,
305+
avoidQuotes: true,
306+
},
307+
],
298308
'operator-assignment': ['error', 'never'],
299309
'prefer-const': [
300310
'error',

eslint-configs/eslint-config-seekingalpha-base/rules/eslint/oxlint-disabled.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ export const ESLintDisabled = {
127127
'no-proto': 'off',
128128
'no-redeclare': 'off',
129129
'no-regex-spaces': 'off',
130+
'no-restricted-exports': 'off',
130131
'no-restricted-globals': 'off',
131132
'no-restricted-imports': 'off',
132133
'no-return-assign': 'off',
@@ -141,6 +142,7 @@ export const ESLintDisabled = {
141142
'no-unreachable': 'off',
142143
'no-unused-expressions': 'off',
143144
'no-unused-labels': 'off',
145+
'no-useless-assignment': 'off',
144146
'no-useless-call': 'off',
145147
'no-useless-catch': 'off',
146148
'no-useless-computed-key': 'off',
@@ -153,6 +155,7 @@ export const ESLintDisabled = {
153155
'no-void': 'off',
154156
'no-warning-comments': 'off',
155157
'no-with': 'off',
158+
'object-shorthand': 'off',
156159
'operator-assignment': 'off',
157160
'prefer-const': 'off',
158161
'prefer-destructuring': 'off',

eslint-configs/eslint-config-seekingalpha-react/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+
## 10.32.0 - 2026-04-07
4+
5+
- [new] extend oxlint config
6+
37
## 10.31.1 - 2026-03-12
48

59
- [new] extend oxlint config

eslint-configs/eslint-config-seekingalpha-react/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-react",
3-
"version": "10.31.1",
3+
"version": "10.32.0",
44
"description": "SeekingAlpha's sharable React.js ESLint config",
55
"main": "index.js",
66
"type": "module",

eslint-configs/eslint-config-seekingalpha-react/rules/eslint-plugin-react/oxlint-config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ export default {
131131
},
132132
],
133133
'react/forward-ref-uses-ref': 'error',
134+
'react/hook-use-state': [
135+
'error',
136+
{
137+
allowDestructuredState: true,
138+
},
139+
],
134140
'react/iframe-missing-sandbox': 'error',
135141
'react/no-array-index-key': 'error',
136142
'react/no-children-prop': 'error',

eslint-configs/eslint-config-seekingalpha-react/rules/eslint-plugin-react/oxlint-disabled.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export const ESLintPluginReactDisabled = {
2323
'react/forbid-dom-props': 'off',
2424
'react/forbid-elements': 'off',
2525
'react/forward-ref-uses-ref': 'off',
26+
'react/hook-use-state': 'off',
2627
'react/iframe-missing-sandbox': 'off',
2728
'react/no-array-index-key': 'off',
2829
'react/no-children-prop': 'off',

0 commit comments

Comments
 (0)