@lvce-editor/eslint-config 1.15.0 → 1.17.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/index.js +6 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -115,6 +115,10 @@ const defaultConfig = tseslint.config(
|
|
|
115
115
|
version: 29,
|
|
116
116
|
},
|
|
117
117
|
},
|
|
118
|
+
rules: {
|
|
119
|
+
'@typescript-eslint/only-throw-error': 'off',
|
|
120
|
+
'@typescript-eslint/prefer-promise-reject-errors': 'off',
|
|
121
|
+
},
|
|
118
122
|
},
|
|
119
123
|
{
|
|
120
124
|
files: ['**/package.json'],
|
|
@@ -133,11 +137,13 @@ const defaultConfig = tseslint.config(
|
|
|
133
137
|
'unicorn/prefer-add-event-listener': 'off',
|
|
134
138
|
'unicorn/prefer-set-has': 'off',
|
|
135
139
|
'unicorn/prefer-node-protocol': 'off',
|
|
140
|
+
'unicorn/prefer-ternary': 'off',
|
|
136
141
|
'unicorn/new-for-builtins': 'off',
|
|
137
142
|
'unicorn/prefer-at': 'off',
|
|
138
143
|
'unicorn/prefer-math-trunc': 'off',
|
|
139
144
|
'unicorn/no-array-push-push': 'off',
|
|
140
145
|
'unicorn/no-array-callback-reference': 'off',
|
|
146
|
+
'unicorn/no-for-loop': 'off',
|
|
141
147
|
},
|
|
142
148
|
},
|
|
143
149
|
{
|