eslint-config-seekingalpha-base 5.0.1 → 5.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Change Log
2
2
 
3
+ ## 5.2.2 - 2021-01-09
4
+ - [deps] update `eslint-plugin-import` to version `2.25.4`
5
+
6
+ ## 5.2.1 - 2021-01-09
7
+ - [deps] revert `eslint-plugin-import` to version `2.25.3`
8
+
9
+ ## 5.2.0 - 2021-01-06
10
+ - [deps] update `eslint-plugin-import` to version `2.25.4`
11
+ - [deps] update `eslint-find-rules` to version `4.1.0`
12
+
13
+ ## 5.1.0 - 2021-01-01
14
+ - [deps] update `eslint` to version `8.6.0`
15
+ - [deps] update `eslint-plugin-unicorn` to version `40.0.0`
16
+ - [breaking] enable `unicorn/no-thenable` rule
17
+ - [breaking] enable `unicorn/no-useless-promise-resolve-reject` rule
18
+ - [breaking] enable `unicorn/prefer-json-parse-buffer` rule
19
+ - [breaking] enable `unicorn/relative-url-style` rule
20
+
3
21
  ## 5.0.1 - 2021-12-18
4
22
  - [patch] disable `prefer-object-has-own` rule
5
23
 
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.5.0 eslint-plugin-array-func@3.1.7 eslint-plugin-import@2.25.3 eslint-plugin-no-use-extend-native@0.5.0 eslint-plugin-promise@6.0.0 eslint-plugin-unicorn@39.0.0 --save-dev
9
+ npm install eslint@8.6.0 eslint-plugin-array-func@3.1.7 eslint-plugin-import@2.25.4 eslint-plugin-no-use-extend-native@0.5.0 eslint-plugin-promise@6.0.0 eslint-plugin-unicorn@40.0.0 --save-dev
10
10
 
11
11
  Install SeekingAlpha shareable ESLint:
12
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-seekingalpha-base",
3
- "version": "5.0.1",
3
+ "version": "5.2.2",
4
4
  "description": "SeekingAlpha's sharable base ESLint config",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -48,20 +48,20 @@
48
48
  "node": ">= 14"
49
49
  },
50
50
  "peerDependencies": {
51
- "eslint": "8.5.0",
51
+ "eslint": "8.6.0",
52
52
  "eslint-plugin-array-func": "3.1.7",
53
- "eslint-plugin-import": "2.25.3",
53
+ "eslint-plugin-import": "2.25.4",
54
54
  "eslint-plugin-no-use-extend-native": "0.5.0",
55
55
  "eslint-plugin-promise": "6.0.0",
56
- "eslint-plugin-unicorn": "39.0.0"
56
+ "eslint-plugin-unicorn": "40.0.0"
57
57
  },
58
58
  "devDependencies": {
59
- "eslint": "8.5.0",
60
- "eslint-find-rules": "4.0.0",
59
+ "eslint": "8.6.0",
60
+ "eslint-find-rules": "4.1.0",
61
61
  "eslint-plugin-array-func": "3.1.7",
62
- "eslint-plugin-import": "2.25.3",
62
+ "eslint-plugin-import": "2.25.4",
63
63
  "eslint-plugin-no-use-extend-native": "0.5.0",
64
64
  "eslint-plugin-promise": "6.0.0",
65
- "eslint-plugin-unicorn": "39.0.0"
65
+ "eslint-plugin-unicorn": "40.0.0"
66
66
  }
67
67
  }
@@ -138,6 +138,9 @@ module.exports = {
138
138
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-static-only-class.md
139
139
  'unicorn/no-static-only-class': 'error',
140
140
 
141
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-thenable.md
142
+ 'unicorn/no-thenable': 'error',
143
+
141
144
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-this-assignment.md
142
145
  'unicorn/no-this-assignment': 'error',
143
146
 
@@ -159,6 +162,9 @@ module.exports = {
159
162
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-length-check.md
160
163
  'unicorn/no-useless-length-check': 'error',
161
164
 
165
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-promise-resolve-reject.md
166
+ 'unicorn/no-useless-promise-resolve-reject': 'error',
167
+
162
168
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-useless-undefined.md
163
169
  'unicorn/no-useless-undefined': 'error',
164
170
 
@@ -232,6 +238,9 @@ module.exports = {
232
238
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-includes.md
233
239
  'unicorn/prefer-includes': 'error',
234
240
 
241
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-json-parse-buffer.md
242
+ 'unicorn/prefer-json-parse-buffer': 'error',
243
+
235
244
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-keyboard-event-key.md
236
245
  'unicorn/prefer-keyboard-event-key': 'error',
237
246
 
@@ -265,12 +274,6 @@ module.exports = {
265
274
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-object-from-entries.md
266
275
  'unicorn/prefer-object-from-entries': 'off',
267
276
 
268
- /*
269
- * partial duplicated of ESLint rule
270
- * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-object-has-own.md
271
- */
272
- 'unicorn/prefer-object-has-own': 'off',
273
-
274
277
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-optional-catch-binding.md
275
278
  'unicorn/prefer-optional-catch-binding': 'error',
276
279
 
@@ -325,6 +328,10 @@ module.exports = {
325
328
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prevent-abbreviations.md
326
329
  'unicorn/prevent-abbreviations': 'off',
327
330
 
331
+ 'unicorn/relative-url-style': [
332
+ 'error', 'never',
333
+ ],
334
+
328
335
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-array-join-separator.md
329
336
  'unicorn/require-array-join-separator': 'error',
330
337