eslint-config-seekingalpha-base 5.9.0 → 5.12.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 +13 -0
- package/README.md +1 -1
- package/package.json +7 -7
- package/rules/eslint-plugin-unicorn/index.js +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 5.12.0 - 2021-04-06
|
|
4
|
+
- [deps] update `eslint-plugin-import` to version `2.26.0`
|
|
5
|
+
|
|
6
|
+
## 5.11.0 - 2021-04-03
|
|
7
|
+
- [deps] update `eslint-plugin-unicorn` to version `42.0.0`
|
|
8
|
+
- [breaking] enable `unicorn/no-unreadable-iife` rule
|
|
9
|
+
- [breaking] enable `unicorn/no-useless-switch-case` rule
|
|
10
|
+
- [breaking] enable `unicorn/prefer-modern-math-apis` rule
|
|
11
|
+
- [breaking] enable `unicorn/prefer-native-coercion-functions` rule
|
|
12
|
+
|
|
13
|
+
## 5.10.0 - 2021-03-27
|
|
14
|
+
- [deps] update `eslint` to version `8.12.0`
|
|
15
|
+
|
|
3
16
|
## 5.9.0 - 2021-03-20
|
|
4
17
|
- [deps] update `eslint-plugin-unicorn` to version `41.0.1`
|
|
5
18
|
|
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.12.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@42.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.12.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": ">= 14"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"eslint": "8.
|
|
51
|
+
"eslint": "8.12.0",
|
|
52
52
|
"eslint-plugin-array-func": "3.1.7",
|
|
53
|
-
"eslint-plugin-import": "2.
|
|
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": "42.0.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"eslint": "8.
|
|
59
|
+
"eslint": "8.12.0",
|
|
60
60
|
"eslint-find-rules": "4.1.0",
|
|
61
61
|
"eslint-plugin-array-func": "3.1.7",
|
|
62
|
-
"eslint-plugin-import": "2.
|
|
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": "42.0.0"
|
|
66
66
|
}
|
|
67
67
|
}
|
|
@@ -147,6 +147,9 @@ module.exports = {
|
|
|
147
147
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-unreadable-array-destructuring.md
|
|
148
148
|
'unicorn/no-unreadable-array-destructuring': 'error',
|
|
149
149
|
|
|
150
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unreadable-iife.md
|
|
151
|
+
'unicorn/no-unreadable-iife': 'error',
|
|
152
|
+
|
|
150
153
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-unsafe-regex.md
|
|
151
154
|
'unicorn/no-unsafe-regex': 'error',
|
|
152
155
|
|
|
@@ -156,6 +159,9 @@ module.exports = {
|
|
|
156
159
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-spread.md
|
|
157
160
|
'unicorn/no-useless-spread': 'error',
|
|
158
161
|
|
|
162
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-switch-case.md
|
|
163
|
+
'unicorn/no-useless-switch-case': 'error',
|
|
164
|
+
|
|
159
165
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-fallback-in-spread.md
|
|
160
166
|
'unicorn/no-useless-fallback-in-spread': 'error',
|
|
161
167
|
|
|
@@ -253,12 +259,18 @@ module.exports = {
|
|
|
253
259
|
*/
|
|
254
260
|
'unicorn/prefer-modern-dom-apis': 'off',
|
|
255
261
|
|
|
262
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-modern-math-apis.md
|
|
263
|
+
'unicorn/prefer-modern-math-apis': 'error',
|
|
264
|
+
|
|
256
265
|
/*
|
|
257
266
|
* Enable after migration to nodejs 16 with esm
|
|
258
267
|
* https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-module.md
|
|
259
268
|
*/
|
|
260
269
|
'unicorn/prefer-module': 'off',
|
|
261
270
|
|
|
271
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-native-coercion-functions.md
|
|
272
|
+
'unicorn/prefer-native-coercion-functions': 'error',
|
|
273
|
+
|
|
262
274
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-negative-index.md
|
|
263
275
|
'unicorn/prefer-negative-index': 'error',
|
|
264
276
|
|