eslint-config-seekingalpha-base 7.18.0 → 7.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 +7 -0
- package/README.md +1 -1
- package/package.json +3 -3
- package/rules/eslint-plugin-unicorn/index.js +13 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 7.19.0 - 2024-04-03
|
|
4
|
+
|
|
5
|
+
- [deps] update `eslint-plugin-unicorn` to version `52.0.0`
|
|
6
|
+
- [breaking] enable `unicorn/no-await-in-promise-methods` rule
|
|
7
|
+
- [breaking] enable `unicorn/no-single-promise-in-promise-methods` rule
|
|
8
|
+
-
|
|
9
|
+
|
|
3
10
|
## 7.18.0 - 2024-03-17
|
|
4
11
|
|
|
5
12
|
- [deps] update `@stylistic/eslint-plugin-js` to version `1.7.0`
|
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.0 @stylistic/eslint-plugin-js@1.7.0 eslint-plugin-array-func@4.0.0 eslint-plugin-import@2.29.1 eslint-plugin-no-use-extend-native@0.5.0 eslint-plugin-promise@6.1.1 eslint-plugin-unicorn@
|
|
9
|
+
npm install eslint@8.57.0 @stylistic/eslint-plugin-js@1.7.0 eslint-plugin-array-func@4.0.0 eslint-plugin-import@2.29.1 eslint-plugin-no-use-extend-native@0.5.0 eslint-plugin-promise@6.1.1 eslint-plugin-unicorn@52.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": "7.
|
|
3
|
+
"version": "7.19.0",
|
|
4
4
|
"description": "SeekingAlpha's sharable base ESLint config",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"eslint-plugin-import": "2.29.1",
|
|
55
55
|
"eslint-plugin-no-use-extend-native": "0.5.0",
|
|
56
56
|
"eslint-plugin-promise": "6.1.1",
|
|
57
|
-
"eslint-plugin-unicorn": "
|
|
57
|
+
"eslint-plugin-unicorn": "52.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@stylistic/eslint-plugin-js": "1.7.0",
|
|
@@ -64,6 +64,6 @@
|
|
|
64
64
|
"eslint-plugin-import": "2.29.1",
|
|
65
65
|
"eslint-plugin-no-use-extend-native": "0.5.0",
|
|
66
66
|
"eslint-plugin-promise": "6.1.1",
|
|
67
|
-
"eslint-plugin-unicorn": "
|
|
67
|
+
"eslint-plugin-unicorn": "52.0.0"
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -57,6 +57,12 @@ module.exports = {
|
|
|
57
57
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-abusive-eslint-disable.md
|
|
58
58
|
'unicorn/no-abusive-eslint-disable': 'error',
|
|
59
59
|
|
|
60
|
+
/*
|
|
61
|
+
* https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-anonymous-default-export.md
|
|
62
|
+
* Duplicates import/no-anonymous-default-export
|
|
63
|
+
*/
|
|
64
|
+
'unicorn/no-anonymous-default-export': 'off',
|
|
65
|
+
|
|
60
66
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-array-callback-reference.md
|
|
61
67
|
'unicorn/no-array-callback-reference': 'error',
|
|
62
68
|
|
|
@@ -75,6 +81,9 @@ module.exports = {
|
|
|
75
81
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-await-expression-member.md
|
|
76
82
|
'unicorn/no-await-expression-member': 'error',
|
|
77
83
|
|
|
84
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-await-in-promise-methods.md
|
|
85
|
+
'unicorn/no-await-in-promise-methods': 'error',
|
|
86
|
+
|
|
78
87
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-console-spaces.md
|
|
79
88
|
'unicorn/no-console-spaces': 'error',
|
|
80
89
|
|
|
@@ -137,7 +146,10 @@ module.exports = {
|
|
|
137
146
|
* https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-process-exit.md
|
|
138
147
|
* Already validated by EsLint node rule
|
|
139
148
|
*/
|
|
140
|
-
'unicorn/no-process-exit': '
|
|
149
|
+
'unicorn/no-process-exit': 'off',
|
|
150
|
+
|
|
151
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-single-promise-in-promise-methods.md
|
|
152
|
+
'unicorn/no-single-promise-in-promise-methods': 'error',
|
|
141
153
|
|
|
142
154
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-static-only-class.md
|
|
143
155
|
'unicorn/no-static-only-class': 'error',
|