eslint-config-seekingalpha-base 5.18.0 → 5.19.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 +10 -0
- package/README.md +1 -1
- package/package.json +5 -5
- package/rules/eslint-plugin-unicorn/index.js +22 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 5.19.0 - 2021-07-03
|
|
4
|
+
- [deps] update `eslint` to version `8.18.0`
|
|
5
|
+
- [deps] update `eslint-plugin-unicorn` to version `43.0.0`
|
|
6
|
+
- [breaking] enable `unicorn/prefer-dom-node-append` rule
|
|
7
|
+
- [breaking] enable `unicorn/prefer-dom-node-remove` rule
|
|
8
|
+
- [breaking] enable `unicorn/prefer-event-target` rule
|
|
9
|
+
- [breaking] enable `unicorn/prefer-logical-operator-over-ternary` rule
|
|
10
|
+
- [breaking] enable `unicorn/prefer-modern-dom-apis` rule
|
|
11
|
+
- [breaking] enable `unicorn/prefer-prototype-methods` rule
|
|
12
|
+
|
|
3
13
|
## 5.18.0 - 2021-06-19
|
|
4
14
|
- [deps] update `eslint` to version `8.18.0`
|
|
5
15
|
|
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.
|
|
9
|
+
npm install eslint@8.19.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.0.0 eslint-plugin-unicorn@43.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.
|
|
3
|
+
"version": "5.19.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": ">= 16"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"eslint": "8.
|
|
51
|
+
"eslint": "8.19.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.0.0",
|
|
56
|
-
"eslint-plugin-unicorn": "
|
|
56
|
+
"eslint-plugin-unicorn": "43.0.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"eslint": "8.
|
|
59
|
+
"eslint": "8.19.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.0.0",
|
|
65
|
-
"eslint-plugin-unicorn": "
|
|
65
|
+
"eslint-plugin-unicorn": "43.0.0"
|
|
66
66
|
}
|
|
67
67
|
}
|
|
@@ -220,24 +220,21 @@ module.exports = {
|
|
|
220
220
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-default-parameters.md
|
|
221
221
|
'unicorn/prefer-default-parameters': 'error',
|
|
222
222
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
* https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-dom-node-append.md
|
|
226
|
-
*/
|
|
227
|
-
'unicorn/prefer-dom-node-append': 'off',
|
|
223
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-dom-node-append.md
|
|
224
|
+
'unicorn/prefer-dom-node-append': 'error',
|
|
228
225
|
|
|
229
226
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-dom-node-dataset.md
|
|
230
227
|
'unicorn/prefer-dom-node-dataset': 'error',
|
|
231
228
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
* Android 50 does not support Node.remove(). Should be enabled only after IE support is dropped
|
|
235
|
-
*/
|
|
236
|
-
'unicorn/prefer-dom-node-remove': 'off',
|
|
229
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-dom-node-remove.md
|
|
230
|
+
'unicorn/prefer-dom-node-remove': 'error',
|
|
237
231
|
|
|
238
232
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-dom-node-text-content.md
|
|
239
233
|
'unicorn/prefer-dom-node-text-content': 'error',
|
|
240
234
|
|
|
235
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-event-target.md
|
|
236
|
+
'unicorn/prefer-event-target': 'error',
|
|
237
|
+
|
|
241
238
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-export-from.md
|
|
242
239
|
'unicorn/prefer-export-from': 'error',
|
|
243
240
|
|
|
@@ -250,14 +247,14 @@ module.exports = {
|
|
|
250
247
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-keyboard-event-key.md
|
|
251
248
|
'unicorn/prefer-keyboard-event-key': 'error',
|
|
252
249
|
|
|
250
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-logical-operator-over-ternary.md
|
|
251
|
+
'unicorn/prefer-logical-operator-over-ternary': 'error',
|
|
252
|
+
|
|
253
253
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-math-trunc.md
|
|
254
254
|
'unicorn/prefer-math-trunc': 'error',
|
|
255
255
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
* https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-modern-dom-apis.md
|
|
259
|
-
*/
|
|
260
|
-
'unicorn/prefer-modern-dom-apis': 'off',
|
|
256
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-modern-dom-apis.md
|
|
257
|
+
'unicorn/prefer-modern-dom-apis': 'error',
|
|
261
258
|
|
|
262
259
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-modern-math-apis.md
|
|
263
260
|
'unicorn/prefer-modern-math-apis': 'error',
|
|
@@ -283,17 +280,17 @@ module.exports = {
|
|
|
283
280
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-number-properties.md
|
|
284
281
|
'unicorn/prefer-number-properties': 'error',
|
|
285
282
|
|
|
286
|
-
|
|
283
|
+
/*
|
|
284
|
+
* proposal, enable when get into standard
|
|
285
|
+
* https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-object-from-entries.md
|
|
286
|
+
*/
|
|
287
287
|
'unicorn/prefer-object-from-entries': 'off',
|
|
288
288
|
|
|
289
289
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-optional-catch-binding.md
|
|
290
290
|
'unicorn/prefer-optional-catch-binding': 'error',
|
|
291
291
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
* https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-prototype-methods.md
|
|
295
|
-
*/
|
|
296
|
-
'unicorn/prefer-prototype-methods': 'off',
|
|
292
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-prototype-methods.md
|
|
293
|
+
'unicorn/prefer-prototype-methods': 'error',
|
|
297
294
|
|
|
298
295
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-query-selector.md
|
|
299
296
|
'unicorn/prefer-query-selector': 'error',
|
|
@@ -310,7 +307,10 @@ module.exports = {
|
|
|
310
307
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-spread.md
|
|
311
308
|
'unicorn/prefer-spread': 'off',
|
|
312
309
|
|
|
313
|
-
|
|
310
|
+
/*
|
|
311
|
+
* proposal, enable when get into standard
|
|
312
|
+
* https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-replace-all.md
|
|
313
|
+
*/
|
|
314
314
|
'unicorn/prefer-string-replace-all': 'off',
|
|
315
315
|
|
|
316
316
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-string-slice.md
|