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.
- package/eslint/index.js +4 -1
- 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': '
|
|
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': [
|