arui-presets-lint 8.4.0 → 8.6.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.
Files changed (2) hide show
  1. package/eslint/index.js +4 -1
  2. package/package.json +1 -1
package/eslint/index.js CHANGED
@@ -59,6 +59,8 @@ module.exports = {
59
59
 
60
60
  // code smell detection
61
61
  complexity: ['warn', 20],
62
+ 'max-params': ['warn', 5],
63
+ 'max-lines': ['warn', 300],
62
64
  'max-nested-callbacks': 'warn',
63
65
  'no-restricted-properties': [
64
66
  'error',
@@ -123,7 +125,7 @@ module.exports = {
123
125
  'error',
124
126
  { functions: false, classes: true, variables: true },
125
127
  ],
126
- '@typescript-eslint/default-param-last': 'off',
128
+ '@typescript-eslint/default-param-last': 'warn',
127
129
  '@typescript-eslint/consistent-type-imports': [
128
130
  'error',
129
131
  {
@@ -137,6 +139,7 @@ module.exports = {
137
139
  fixMixedExportsWithInlineTypeSpecifier: true,
138
140
  },
139
141
  ],
142
+ '@typescript-eslint/prefer-optional-chain': 'error',
140
143
 
141
144
  // Imports, file extensions
142
145
  'import/no-extraneous-dependencies': [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arui-presets-lint",
3
- "version": "8.4.0",
3
+ "version": "8.6.0",
4
4
  "description": "Config files for arui-apps",
5
5
  "author": "core-ds contributors",
6
6
  "license": "MIT",