eslint-config-seekingalpha-base 5.35.0 → 5.37.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,10 @@
1
1
  # Change Log
2
2
 
3
+ ## 5.36.0 - 2022-11-06
4
+ - [deps] update `eslint` to version `8.27.0`
5
+ - [breaking] enable `no-new-native-nonconstructor` rule
6
+ - [breaking] enable `no-empty-static-block` rule
7
+
3
8
  ## 5.35.0 - 2022-10-23
4
9
  - [deps] update `eslint` to version `8.26.0`
5
10
 
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.26.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.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
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.35.0",
3
+ "version": "5.37.0",
4
4
  "description": "SeekingAlpha's sharable base ESLint config",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -45,10 +45,10 @@
45
45
  },
46
46
  "homepage": "https://github.com/seekingalpha/javascript#readme",
47
47
  "engines": {
48
- "node": ">= 16"
48
+ "node": ">= 18"
49
49
  },
50
50
  "peerDependencies": {
51
- "eslint": "8.26.0",
51
+ "eslint": "8.27.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",
@@ -56,7 +56,7 @@
56
56
  "eslint-plugin-unicorn": "44.0.2"
57
57
  },
58
58
  "devDependencies": {
59
- "eslint": "8.26.0",
59
+ "eslint": "8.27.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",
@@ -107,6 +107,9 @@ module.exports = {
107
107
  // https://eslint.org/docs/rules/no-misleading-character-class
108
108
  'no-misleading-character-class': 'error',
109
109
 
110
+ // https://eslint.org/docs/latest/rules/no-new-native-nonconstructor
111
+ 'no-new-native-nonconstructor': 'error',
112
+
110
113
  // https://eslint.org/docs/rules/no-new-symbol
111
114
  'no-new-symbol': 'error',
112
115
 
@@ -285,6 +285,9 @@ module.exports = {
285
285
  // https://eslint.org/docs/rules/no-eq-null
286
286
  'no-eq-null': 'error',
287
287
 
288
+ // https://eslint.org/docs/latest/rules/no-empty-static-block
289
+ 'no-empty-static-block': 'error',
290
+
288
291
  // https://eslint.org/docs/rules/no-eval
289
292
  'no-eval': 'error',
290
293
 
@@ -18,6 +18,10 @@ module.exports = {
18
18
  extensions: [
19
19
  '.js',
20
20
  '.jsx',
21
+ '.ts',
22
+ '.tsx',
23
+ '.mts',
24
+ '.cts',
21
25
  '.json',
22
26
  ],
23
27
  },
@@ -26,6 +30,10 @@ module.exports = {
26
30
  'import/extensions': [
27
31
  '.js',
28
32
  '.jsx',
33
+ '.ts',
34
+ '.tsx',
35
+ '.mts',
36
+ '.cts',
29
37
  ],
30
38
 
31
39
  'import/core-modules': [],
@@ -24,6 +24,8 @@ module.exports = {
24
24
  {
25
25
  js: 'never',
26
26
  jsx: 'never',
27
+ ts: 'never',
28
+ tsx: 'never',
27
29
  },
28
30
  ],
29
31