@allthings/eslint-config 2.2.0 → 2.2.1
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 +5 -1
- package/node.js +4 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -118,6 +118,7 @@ module.exports = {
|
|
|
118
118
|
},
|
|
119
119
|
],
|
|
120
120
|
'@typescript-eslint/consistent-type-assertions': 'error',
|
|
121
|
+
'@typescript-eslint/consistent-type-definitions': 'off',
|
|
121
122
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
122
123
|
'@typescript-eslint/explicit-module-boundary-types': [
|
|
123
124
|
'warn', // TODO: strict later
|
|
@@ -158,7 +159,7 @@ module.exports = {
|
|
|
158
159
|
'@typescript-eslint/no-unsafe-argument': 'warn',
|
|
159
160
|
'@typescript-eslint/no-unsafe-assignment': 'warn',
|
|
160
161
|
'@typescript-eslint/no-unsafe-call': 'warn',
|
|
161
|
-
'@typescript-eslint/no-unsafe-member-access': '
|
|
162
|
+
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
162
163
|
'@typescript-eslint/no-unsafe-return': 'warn',
|
|
163
164
|
'@typescript-eslint/no-unused-expressions': 'error',
|
|
164
165
|
'@typescript-eslint/no-unused-vars': [
|
|
@@ -327,6 +328,9 @@ module.exports = {
|
|
|
327
328
|
'unicorn/prevent-abbreviations': [
|
|
328
329
|
'error',
|
|
329
330
|
{
|
|
331
|
+
allowList: {
|
|
332
|
+
props: true,
|
|
333
|
+
},
|
|
330
334
|
replacements: {
|
|
331
335
|
props: {
|
|
332
336
|
properties: false,
|
package/node.js
CHANGED
|
@@ -107,6 +107,7 @@ module.exports = {
|
|
|
107
107
|
},
|
|
108
108
|
],
|
|
109
109
|
'@typescript-eslint/consistent-type-assertions': 'error',
|
|
110
|
+
'@typescript-eslint/consistent-type-definitions': 'off',
|
|
110
111
|
'@typescript-eslint/dot-notation': 'error',
|
|
111
112
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
112
113
|
'@typescript-eslint/explicit-module-boundary-types': [
|
|
@@ -148,7 +149,7 @@ module.exports = {
|
|
|
148
149
|
'@typescript-eslint/no-unsafe-argument': 'warn',
|
|
149
150
|
'@typescript-eslint/no-unsafe-assignment': 'warn',
|
|
150
151
|
'@typescript-eslint/no-unsafe-call': 'warn',
|
|
151
|
-
'@typescript-eslint/no-unsafe-member-access': '
|
|
152
|
+
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
152
153
|
'@typescript-eslint/no-unsafe-return': 'warn',
|
|
153
154
|
'@typescript-eslint/no-unused-expressions': 'error',
|
|
154
155
|
'@typescript-eslint/no-unused-vars': 'error',
|
|
@@ -279,6 +280,7 @@ module.exports = {
|
|
|
279
280
|
},
|
|
280
281
|
],
|
|
281
282
|
'unicorn/import-style': 'warn',
|
|
283
|
+
'unicorn/no-anonymous-default-export': 'off',
|
|
282
284
|
'unicorn/no-array-reduce': 'off',
|
|
283
285
|
'unicorn/no-console-spaces': 'off',
|
|
284
286
|
'unicorn/no-document-cookie': 'warn',
|
|
@@ -306,6 +308,7 @@ module.exports = {
|
|
|
306
308
|
'unicorn/prefer-string-raw': 'off',
|
|
307
309
|
'unicorn/prefer-string-replace-all': 'off',
|
|
308
310
|
'unicorn/prefer-structured-clone': 'warn',
|
|
311
|
+
'unicorn/prefer-node-protocol': 'off',
|
|
309
312
|
'unicorn/relative-url-style': 'off',
|
|
310
313
|
'unicorn/switch-case-braces': 'off',
|
|
311
314
|
'unicorn/template-indent': 'off',
|