eslint-config-seekingalpha-base 5.38.0 → 5.40.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,14 @@
1
1
  # Change Log
2
2
 
3
+ ## 5.40.0 - 2022-12-12
4
+ - [deps] update `eslint-plugin-unicorn` to version `45.0.2`
5
+
6
+ ## 5.39.0 - 2022-12-08
7
+ - [deps] update `eslint` to version `8.29.0`
8
+ - [deps] update `eslint-plugin-unicorn` to version `45.0.1`
9
+ - [breaking] enable `unicorn/no-typeof-undefined` rule
10
+ - [breaking] enable `unicorn/prefer-set-size` rule
11
+
3
12
  ## 5.38.0 - 2022-12-06
4
13
  - [breaking] `lines-around-comment` rule - ignore `@ts-expect-error` comments
5
14
 
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.27.0 eslint-plugin-array-func@3.1.7 eslint-plugin-import@2.26.0 eslint-plugin-no-use-extend-native@0.5.0 eslint-plugin-promise@6.1.1 eslint-plugin-unicorn@44.0.2 --save-dev
9
+ npm install eslint@8.29.0 eslint-plugin-array-func@3.1.7 eslint-plugin-import@2.26.0 eslint-plugin-no-use-extend-native@0.5.0 eslint-plugin-promise@6.1.1 eslint-plugin-unicorn@45.0.2 --save-dev
10
10
 
11
11
  Install SeekingAlpha shareable ESLint:
12
12
 
package/index.js CHANGED
@@ -23,7 +23,7 @@ module.exports = {
23
23
  ],
24
24
 
25
25
  parserOptions: {
26
- ecmaVersion: 12,
26
+ ecmaVersion: 11,
27
27
  sourceType: 'module',
28
28
  ecmaFeatures: {
29
29
  impliedStrict: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-seekingalpha-base",
3
- "version": "5.38.0",
3
+ "version": "5.40.0",
4
4
  "description": "SeekingAlpha's sharable base ESLint config",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -48,20 +48,20 @@
48
48
  "node": ">= 18"
49
49
  },
50
50
  "peerDependencies": {
51
- "eslint": "8.27.0",
51
+ "eslint": "8.29.0",
52
52
  "eslint-plugin-array-func": "3.1.7",
53
53
  "eslint-plugin-import": "2.26.0",
54
54
  "eslint-plugin-no-use-extend-native": "0.5.0",
55
55
  "eslint-plugin-promise": "6.1.1",
56
- "eslint-plugin-unicorn": "44.0.2"
56
+ "eslint-plugin-unicorn": "45.0.2"
57
57
  },
58
58
  "devDependencies": {
59
- "eslint": "8.27.0",
59
+ "eslint": "8.29.0",
60
60
  "eslint-find-rules": "4.1.0",
61
61
  "eslint-plugin-array-func": "3.1.7",
62
62
  "eslint-plugin-import": "2.26.0",
63
63
  "eslint-plugin-no-use-extend-native": "0.5.0",
64
64
  "eslint-plugin-promise": "6.1.1",
65
- "eslint-plugin-unicorn": "44.0.2"
65
+ "eslint-plugin-unicorn": "45.0.2"
66
66
  }
67
67
  }
@@ -110,6 +110,12 @@ module.exports = {
110
110
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-lonely-if.md
111
111
  'unicorn/no-lonely-if': 'error',
112
112
 
113
+ /*
114
+ * Disabled in favour of native ESLint no-negated-condition rule
115
+ * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-negated-condition.md
116
+ */
117
+ 'unicorn/no-negated-condition': 'off',
118
+
113
119
  /*
114
120
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-nested-ternary.md
115
121
  * Disabled in favour of ESLint's rule
@@ -144,6 +150,9 @@ module.exports = {
144
150
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-this-assignment.md
145
151
  'unicorn/no-this-assignment': 'error',
146
152
 
153
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-typeof-undefined.md
154
+ 'unicorn/no-typeof-undefined': 'error',
155
+
147
156
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-await.md
148
157
  'unicorn/no-unnecessary-await': 'error',
149
158
 
@@ -307,6 +316,9 @@ module.exports = {
307
316
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-set-has.md
308
317
  'unicorn/prefer-set-has': 'error',
309
318
 
319
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-size.md
320
+ 'unicorn/prefer-set-size': 'error',
321
+
310
322
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-spread.md
311
323
  'unicorn/prefer-spread': 'off',
312
324