eslint-config-seekingalpha-base 6.14.0 → 6.16.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,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 6.16.0 - 2023-08-04
4
+
5
+ - [patch] disable the `multiline-ternary` rule
6
+ - [patch] disable the `operator-linebreak` rule
7
+ - [patch] disable the `import/max-dependencies` rule
8
+ - [patch] change the max `complexity` to 10
9
+ - [patch] change the `max-statements` config to 20
10
+
11
+ ## 6.15.0 - 2023-07-28
12
+
13
+ - [deps] update `eslint` to version `8.46.0`
14
+
3
15
  ## 6.14.0 - 2023-07-28
4
16
 
5
17
  - [deps] update `eslint-plugin-import` to version `2.28.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.45.0 eslint-plugin-array-func@3.1.8 eslint-plugin-import@2.28.0 eslint-plugin-no-use-extend-native@0.5.0 eslint-plugin-promise@6.1.1 eslint-plugin-unicorn@48.0.1 --save-dev
9
+ npm install eslint@8.46.0 eslint-plugin-array-func@3.1.8 eslint-plugin-import@2.28.0 eslint-plugin-no-use-extend-native@0.5.0 eslint-plugin-promise@6.1.1 eslint-plugin-unicorn@48.0.1 --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": "6.14.0",
3
+ "version": "6.16.0",
4
4
  "description": "SeekingAlpha's sharable base ESLint config",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -48,7 +48,7 @@
48
48
  "node": ">= 18"
49
49
  },
50
50
  "peerDependencies": {
51
- "eslint": "8.45.0",
51
+ "eslint": "8.46.0",
52
52
  "eslint-plugin-array-func": "3.1.8",
53
53
  "eslint-plugin-import": "2.28.0",
54
54
  "eslint-plugin-no-use-extend-native": "0.5.0",
@@ -56,7 +56,7 @@
56
56
  "eslint-plugin-unicorn": "48.0.1"
57
57
  },
58
58
  "devDependencies": {
59
- "eslint": "8.45.0",
59
+ "eslint": "8.46.0",
60
60
  "eslint-find-rules": "4.1.0",
61
61
  "eslint-plugin-array-func": "3.1.8",
62
62
  "eslint-plugin-import": "2.28.0",
package/rules/config.js CHANGED
@@ -1,5 +1,5 @@
1
1
  module.exports = {
2
- complexity: 5,
2
+ complexity: 10,
3
3
  maxClassesPerFile: 1,
4
4
  arrayElementNewlineMinItems: 5,
5
5
  idLengthMax: 50,
@@ -10,7 +10,7 @@ module.exports = {
10
10
  maxLinesPerFunctionMax: 100,
11
11
  maxNestedCallbacks: 3,
12
12
  maxParams: 4,
13
- maxStatements: 10,
13
+ maxStatements: 20,
14
14
  maxStatementsPerLine: 1,
15
15
  noMultipleEmptyLinesMax: 2,
16
16
  noMultipleEmptyLinesEOF: 0,
@@ -19,5 +19,4 @@ module.exports = {
19
19
  newlineObjectPatternMin: 4,
20
20
  newlineImportDeclarationMin: 4,
21
21
  newlineExportDeclarationMin: 4,
22
- importMaxDependenciesMax: 15,
23
22
  };
@@ -244,7 +244,7 @@ module.exports = {
244
244
  ],
245
245
 
246
246
  // https://eslint.org/docs/rules/multiline-ternary
247
- 'multiline-ternary': ['error', 'never'],
247
+ 'multiline-ternary': 'off',
248
248
 
249
249
  // https://eslint.org/docs/rules/new-parens
250
250
  'new-parens': 'error',
@@ -359,7 +359,7 @@ module.exports = {
359
359
  ],
360
360
 
361
361
  // https://eslint.org/docs/rules/operator-linebreak
362
- 'operator-linebreak': ['error', 'none'],
362
+ 'operator-linebreak': 'off',
363
363
 
364
364
  // https://eslint.org/docs/rules/padded-blocks
365
365
  'padded-blocks': [
@@ -490,9 +490,6 @@ module.exports = {
490
490
  // https://eslint.org/docs/rules/no-return-assign
491
491
  'no-return-assign': 'error',
492
492
 
493
- // https://eslint.org/docs/rules/no-return-await
494
- 'no-return-await': 'error',
495
-
496
493
  // https://eslint.org/docs/rules/no-script-url
497
494
  'no-script-url': 'error',
498
495
 
@@ -1,5 +1,3 @@
1
- const config = require('../config');
2
-
3
1
  // https://github.com/benmosher/eslint-plugin-import#style-guide
4
2
  module.exports = {
5
3
  rules: {
@@ -47,13 +45,7 @@ module.exports = {
47
45
  'import/prefer-default-export': 'off',
48
46
 
49
47
  // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/max-dependencies.md
50
- 'import/max-dependencies': [
51
- 'error',
52
- {
53
- ignoreTypeImports: true,
54
- max: config.importMaxDependenciesMax,
55
- },
56
- ],
48
+ 'import/max-dependencies': 'off',
57
49
 
58
50
  // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unassigned-import.md
59
51
  'import/no-unassigned-import': 'error',