@odg/eslint-config 1.16.0 → 1.18.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/README.md CHANGED
@@ -5659,6 +5659,7 @@ function foo() {
5659
5659
  Enforce a maximum number of parameters in function definitions
5660
5660
 
5661
5661
  <https://eslint.org/docs/latest/rules/max-params>
5662
+ <https://www.npmjs.com/package/eslint-plugin-better-max-params>
5662
5663
 
5663
5664
  👍 Examples of correct code
5664
5665
 
@@ -5690,7 +5691,7 @@ let foo = (bar, baz, qux, qxx) => {
5690
5691
 
5691
5692
  Enforce a maximum number of parameters in function definitions
5692
5693
 
5693
- <https://eslint.org/docs/latest/rules/max-params>
5694
+ <https://eslint.org/docs/latest/rules/max-statements>
5694
5695
 
5695
5696
  👍 Examples of correct code
5696
5697
 
package/index.js CHANGED
@@ -88,6 +88,7 @@ module.exports = {
88
88
  "sonarjs",
89
89
  "sort-class-members",
90
90
  "antfu",
91
+ "better-max-params",
91
92
  ],
92
93
  extends: [
93
94
  "./rules/javascript/best-practices.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odg/eslint-config",
3
- "version": "1.16.0",
3
+ "version": "1.18.0",
4
4
  "description": "Linter for JavaScript And Typescript project",
5
5
  "main": "index.js",
6
6
  "author": "Dragons Gamers <https://www.linkedin.com/in/victor-alves-odgodinho>",
@@ -28,8 +28,9 @@
28
28
  "any-eslint-parser": "^1.0.1",
29
29
  "eslint": "*",
30
30
  "eslint-import-resolver-typescript": "^3.5.5",
31
- "eslint-plugin-antfu": "^0.38.6",
31
+ "eslint-plugin-antfu": "^0.39.3",
32
32
  "eslint-plugin-array-func": "^3.1.8",
33
+ "eslint-plugin-better-max-params": "^0.0.1",
33
34
  "eslint-plugin-file-progress": "^1.3.0",
34
35
  "eslint-plugin-filenames": "^1.3.2",
35
36
  "eslint-plugin-html": "^7.1.0",
@@ -37,7 +38,7 @@
37
38
  "eslint-plugin-jsdoc": "^44.2.3",
38
39
  "eslint-plugin-json-schema-validator": "^4.5.0",
39
40
  "eslint-plugin-jsonc": "^2.8.0",
40
- "eslint-plugin-n": "^15.7.0",
41
+ "eslint-plugin-n": "^16.0.0",
41
42
  "eslint-plugin-no-constructor-bind": "^2.0.4",
42
43
  "eslint-plugin-php-markup": "^6.0.0",
43
44
  "eslint-plugin-promise": "^6.1.1",
@@ -242,7 +242,13 @@ module.exports = {
242
242
  } ], // Tamanho mínimo das variáveis
243
243
  "no-template-curly-in-string": [ "error" ], // Não faça templete string de forma incorreta
244
244
  "max-depth": [ "error", { "max": 3 } ], // Tamanho máximo do Hadouken
245
- "max-params": [ "error", { "max": 4 } ], // Máximo de parâmetros
245
+ "better-max-params/better-max-params": [
246
+ "error",
247
+ {
248
+ "func": 4,
249
+ "constructor": 8,
250
+ },
251
+ ],
246
252
  "max-statements": [ "error" ], // Máximo atribuição em função
247
253
  "operator-assignment": [ "error", "always" ], // Prefira atribuição curtas +=
248
254
  "prefer-rest-params": [ "error" ], // Prefira ..args em vez de arguments
@@ -477,6 +477,6 @@ module.exports = {
477
477
  },
478
478
  ], // Não permite numero mágicos
479
479
  "@typescript-eslint/prefer-for-of": "error",
480
- "@typescript-eslint/restrict-plus-operands": [ "error", { "checkCompoundAssignments": true } ],
480
+ "@typescript-eslint/restrict-plus-operands": [ "error" ],
481
481
  },
482
482
  };