Skip to content

Commit

Permalink
eslint-config-seekingalpha-base ver. 6.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-halyn committed Aug 4, 2023
1 parent 21a6d63 commit 4d09463
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
8 changes: 8 additions & 0 deletions eslint-configs/eslint-config-seekingalpha-base/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change Log

## 6.16.0 - 2023-08-04

- [patch] disable the `multiline-ternary` rule
- [patch] disable the `operator-linebreak` rule
- [patch] disable the `import/max-dependencies` rule
- [patch] change the max `complexity` to 10
- [patch] change the `max-statements` config to 20

## 6.15.0 - 2023-07-28

- [deps] update `eslint` to version `8.46.0`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-seekingalpha-base",
"version": "6.15.0",
"version": "6.16.0",
"description": "SeekingAlpha's sharable base ESLint config",
"main": "index.js",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
complexity: 5,
complexity: 10,
maxClassesPerFile: 1,
arrayElementNewlineMinItems: 5,
idLengthMax: 50,
Expand All @@ -10,7 +10,7 @@ module.exports = {
maxLinesPerFunctionMax: 100,
maxNestedCallbacks: 3,
maxParams: 4,
maxStatements: 10,
maxStatements: 20,
maxStatementsPerLine: 1,
noMultipleEmptyLinesMax: 2,
noMultipleEmptyLinesEOF: 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,7 @@ module.exports = {
'import/prefer-default-export': 'off',

// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/max-dependencies.md
'import/max-dependencies': [
'error',
{
ignoreTypeImports: true,
max: config.importMaxDependenciesMax,
},
],
'import/max-dependencies': 'off',

// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unassigned-import.md
'import/no-unassigned-import': 'error',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ module.exports = {
],

// https://eslint.org/docs/rules/multiline-ternary
'multiline-ternary': ['error', 'never'],
'multiline-ternary': 'off',

// https://eslint.org/docs/rules/new-parens
'new-parens': 'error',
Expand Down Expand Up @@ -359,7 +359,7 @@ module.exports = {
],

// https://eslint.org/docs/rules/operator-linebreak
'operator-linebreak': ['error', 'none'],
'operator-linebreak': 'off',

// https://eslint.org/docs/rules/padded-blocks
'padded-blocks': [
Expand Down

0 comments on commit 4d09463

Please sign in to comment.