eslint-config-seekingalpha-base 5.26.0 → 5.28.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 +10 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 5.28.0 - 2022-10-02
|
|
4
|
+
- [deps] update `eslint` to version `8.24.0`
|
|
5
|
+
- [deps] update `eslint-plugin-unicorn` to version `44.0.0`
|
|
6
|
+
- [breaking] enable `unicorn/no-document-cookie` rule
|
|
7
|
+
- [breaking] enable `unicorn/no-unnecessary-await` rule
|
|
8
|
+
- [breaking] enable `unicorn/switch-case-braces` rule
|
|
9
|
+
|
|
10
|
+
## 5.27.0 - 2022-09-19
|
|
11
|
+
- [deps] update `eslint` to version `8.23.1`
|
|
12
|
+
|
|
3
13
|
## 5.26.0 - 2022-08-27
|
|
4
14
|
- [deps] update `eslint` to version `8.23.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.24.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.1 eslint-plugin-unicorn@44.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.28.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.24.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.1",
|
|
56
|
-
"eslint-plugin-unicorn": "
|
|
56
|
+
"eslint-plugin-unicorn": "44.0.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"eslint": "8.
|
|
59
|
+
"eslint": "8.24.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.1",
|
|
65
|
-
"eslint-plugin-unicorn": "
|
|
65
|
+
"eslint-plugin-unicorn": "44.0.0"
|
|
66
66
|
}
|
|
67
67
|
}
|
|
@@ -81,7 +81,7 @@ module.exports = {
|
|
|
81
81
|
'unicorn/no-console-spaces': 'error',
|
|
82
82
|
|
|
83
83
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-document-cookie.md
|
|
84
|
-
'unicorn/no-document-cookie': '
|
|
84
|
+
'unicorn/no-document-cookie': 'error',
|
|
85
85
|
|
|
86
86
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-empty-file.md
|
|
87
87
|
'unicorn/no-empty-file': 'error',
|
|
@@ -144,6 +144,9 @@ module.exports = {
|
|
|
144
144
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-this-assignment.md
|
|
145
145
|
'unicorn/no-this-assignment': 'error',
|
|
146
146
|
|
|
147
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-await.md
|
|
148
|
+
'unicorn/no-unnecessary-await': 'error',
|
|
149
|
+
|
|
147
150
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-unreadable-array-destructuring.md
|
|
148
151
|
'unicorn/no-unreadable-array-destructuring': 'error',
|
|
149
152
|
|
|
@@ -356,6 +359,12 @@ module.exports = {
|
|
|
356
359
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/string-content.md
|
|
357
360
|
'unicorn/string-content': 'off',
|
|
358
361
|
|
|
362
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/switch-case-braces.md
|
|
363
|
+
'unicorn/switch-case-braces': [
|
|
364
|
+
'error',
|
|
365
|
+
'always',
|
|
366
|
+
],
|
|
367
|
+
|
|
359
368
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/template-indent.md
|
|
360
369
|
'unicorn/template-indent': 'off',
|
|
361
370
|
|