eslint-config-seekingalpha-base 10.0.0 → 11.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 11.0.0 - 2025-03-09
4
+
5
+ - [deps] update `eslint` to version `9.22.0`
6
+ - [breaking] enable `unicorn/prefer-math-min-max` rule
7
+ - [breaking] enable `no-useless-assignment` rule
8
+
3
9
  ## 10.0.0 - 2025-03-09
4
10
 
5
11
  - [breaking] migrate to ESM and make flat config default
package/README.md CHANGED
@@ -6,7 +6,7 @@ This package includes the shareable ESLint config used by [SeekingAlpha](https:/
6
6
 
7
7
  Install ESLint and all [Peer Dependencies](https://nodejs.org/en/blog/npm/peer-dependencies/):
8
8
 
9
- npm install eslint@8.57.1 eslint-plugin-array-func@5.0.2 eslint-plugin-import@2.31.0 eslint-plugin-promise@7.2.1 eslint-plugin-unicorn@56.0.1 --save-dev
9
+ npm install eslint@9.22.0 eslint-plugin-array-func@5.0.2 eslint-plugin-import@2.31.0 eslint-plugin-promise@7.2.1 eslint-plugin-unicorn@56.0.1 --save-dev
10
10
 
11
11
  Install SeekingAlpha shareable ESLint:
12
12
 
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "eslint-config-seekingalpha-base",
3
- "version": "10.0.0",
3
+ "version": "11.0.0",
4
4
  "description": "SeekingAlpha's sharable base ESLint config",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
7
  "scripts": {
8
- "eslint-find-rules": "eslint-find-rules -u ./index.js",
8
+ "eslint-find-rules": "eslint-find-rules --flatConfig -u ./index.js",
9
9
  "test": "echo \"Error: no test specified\" && exit 1"
10
10
  },
11
11
  "repository": {
@@ -48,14 +48,14 @@
48
48
  "node": ">= 22"
49
49
  },
50
50
  "peerDependencies": {
51
- "eslint": "8.57.1",
51
+ "eslint": "9.22.0",
52
52
  "eslint-plugin-array-func": "5.0.2",
53
53
  "eslint-plugin-import": "2.31.0",
54
54
  "eslint-plugin-promise": "7.2.1",
55
55
  "eslint-plugin-unicorn": "56.0.1"
56
56
  },
57
57
  "devDependencies": {
58
- "eslint": "8.57.1",
58
+ "eslint": "9.22.0",
59
59
  "eslint-find-rules": "5.0.0",
60
60
  "eslint-plugin-array-func": "5.0.2",
61
61
  "eslint-plugin-import": "2.31.0",
@@ -1,15 +1,5 @@
1
1
  // https://eslint.org/docs/rules/#layout-formatting
2
2
  export default {
3
- // https://eslint.org/docs/rules/line-comment-position
4
- 'line-comment-position': [
5
- 'error',
6
- {
7
- position: 'above',
8
- ignorePattern: '',
9
- applyDefaultPatterns: true,
10
- },
11
- ],
12
-
13
3
  /*
14
4
  * https://eslint.org/docs/rules/unicode-bom
15
5
  * disabled to work with prettier
@@ -201,6 +201,9 @@ export default {
201
201
  },
202
202
  ],
203
203
 
204
+ // https://eslint.org/docs/latest/rules/no-useless-assignment
205
+ 'no-useless-assignment': 'error',
206
+
204
207
  // https://eslint.org/docs/rules/no-useless-backreference
205
208
  'no-useless-backreference': 'error',
206
209
 
@@ -182,9 +182,6 @@ export default {
182
182
  // https://eslint.org/docs/rules/max-statements
183
183
  'max-statements': ['error', config.maxStatements],
184
184
 
185
- // https://eslint.org/docs/rules/multiline-comment-style
186
- 'multiline-comment-style': ['error', 'starred-block'],
187
-
188
185
  // https://eslint.org/docs/rules/new-cap
189
186
  'new-cap': [
190
187
  'error',
@@ -55,6 +55,9 @@ export default {
55
55
  // https://github.com/xjamundx/eslint-plugin-promise/blob/master/docs/rules/prefer-await-to-then.md
56
56
  'promise/prefer-await-to-then': 'off',
57
57
 
58
+ // https://github.com/eslint-community/eslint-plugin-promise/blob/main/docs/rules/prefer-catch.md
59
+ 'promise/prefer-catch': 'error',
60
+
58
61
  // https://github.com/eslint-community/eslint-plugin-promise/blob/main/docs/rules/spec-only.md
59
62
  'promise/spec-only': 'error',
60
63
  },