@allthings/eslint-config 2.2.0 → 2.2.2-dev.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 (3) hide show
  1. package/index.js +11 -3
  2. package/node.js +9 -3
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -117,7 +117,9 @@ module.exports = {
117
117
  default: 'array',
118
118
  },
119
119
  ],
120
+ '@typescript-eslint/no-base-to-string': 'warn',
120
121
  '@typescript-eslint/consistent-type-assertions': 'error',
122
+ '@typescript-eslint/consistent-type-definitions': 'off',
121
123
  '@typescript-eslint/explicit-function-return-type': 'off',
122
124
  '@typescript-eslint/explicit-module-boundary-types': [
123
125
  'warn', // TODO: strict later
@@ -141,7 +143,7 @@ module.exports = {
141
143
  ],
142
144
  '@typescript-eslint/no-empty-function': 'error',
143
145
  '@typescript-eslint/no-empty-interface': 'error',
144
- '@typescript-eslint/no-explicit-any': 'error',
146
+ '@typescript-eslint/no-explicit-any': 'warn',
145
147
  '@typescript-eslint/no-for-in-array': 'error',
146
148
  '@typescript-eslint/no-inferrable-types': 'error',
147
149
  '@typescript-eslint/no-misused-new': 'error',
@@ -155,10 +157,12 @@ module.exports = {
155
157
  },
156
158
  ],
157
159
  '@typescript-eslint/no-this-alias': 'error',
160
+ '@typescript-eslint/no-unnecessary-type-assertion': 'warn',
158
161
  '@typescript-eslint/no-unsafe-argument': 'warn',
159
162
  '@typescript-eslint/no-unsafe-assignment': 'warn',
160
163
  '@typescript-eslint/no-unsafe-call': 'warn',
161
- '@typescript-eslint/no-unsafe-member-access': 'warn',
164
+ '@typescript-eslint/no-unsafe-enum-comparison': 'off',
165
+ '@typescript-eslint/no-unsafe-member-access': 'off',
162
166
  '@typescript-eslint/no-unsafe-return': 'warn',
163
167
  '@typescript-eslint/no-unused-expressions': 'error',
164
168
  '@typescript-eslint/no-unused-vars': [
@@ -172,6 +176,7 @@ module.exports = {
172
176
  '@typescript-eslint/prefer-namespace-keyword': 'error',
173
177
  '@typescript-eslint/prefer-nullish-coalescing': 'off',
174
178
  '@typescript-eslint/prefer-promise-reject-errors': 'warn',
179
+ '@typescript-eslint/restrict-template-expressions': 'warn',
175
180
  '@typescript-eslint/triple-slash-reference': [
176
181
  'error',
177
182
  {
@@ -264,7 +269,7 @@ module.exports = {
264
269
  next: 'return',
265
270
  },
266
271
  ],
267
- 'prefer-arrow/prefer-arrow-functions': 'error',
272
+ 'prefer-arrow/prefer-arrow-functions': 'warn',
268
273
  'prefer-const': 'error',
269
274
  'prefer-object-spread': 'error',
270
275
  'prefer-template': 'error',
@@ -327,6 +332,9 @@ module.exports = {
327
332
  'unicorn/prevent-abbreviations': [
328
333
  'error',
329
334
  {
335
+ allowList: {
336
+ props: true,
337
+ },
330
338
  replacements: {
331
339
  props: {
332
340
  properties: false,
package/node.js CHANGED
@@ -106,7 +106,9 @@ module.exports = {
106
106
  default: 'array',
107
107
  },
108
108
  ],
109
+ '@typescript-eslint/no-base-to-string': 'warn',
109
110
  '@typescript-eslint/consistent-type-assertions': 'error',
111
+ '@typescript-eslint/consistent-type-definitions': 'off',
110
112
  '@typescript-eslint/dot-notation': 'error',
111
113
  '@typescript-eslint/explicit-function-return-type': 'off',
112
114
  '@typescript-eslint/explicit-module-boundary-types': [
@@ -131,7 +133,7 @@ module.exports = {
131
133
  ],
132
134
  '@typescript-eslint/no-empty-function': 'error',
133
135
  '@typescript-eslint/no-empty-interface': 'error',
134
- '@typescript-eslint/no-explicit-any': 'error',
136
+ '@typescript-eslint/no-explicit-any': 'warn',
135
137
  '@typescript-eslint/no-for-in-array': 'error',
136
138
  '@typescript-eslint/no-inferrable-types': 'error',
137
139
  '@typescript-eslint/no-misused-new': 'error',
@@ -148,7 +150,8 @@ module.exports = {
148
150
  '@typescript-eslint/no-unsafe-argument': 'warn',
149
151
  '@typescript-eslint/no-unsafe-assignment': 'warn',
150
152
  '@typescript-eslint/no-unsafe-call': 'warn',
151
- '@typescript-eslint/no-unsafe-member-access': 'warn',
153
+ '@typescript-eslint/no-unsafe-enum-comparison': 'off',
154
+ '@typescript-eslint/no-unsafe-member-access': 'off',
152
155
  '@typescript-eslint/no-unsafe-return': 'warn',
153
156
  '@typescript-eslint/no-unused-expressions': 'error',
154
157
  '@typescript-eslint/no-unused-vars': 'error',
@@ -159,6 +162,7 @@ module.exports = {
159
162
  '@typescript-eslint/prefer-namespace-keyword': 'error',
160
163
  '@typescript-eslint/prefer-nullish-coalescing': 'off',
161
164
  '@typescript-eslint/prefer-promise-reject-errors': 'warn',
165
+ '@typescript-eslint/restrict-template-expressions': 'warn',
162
166
  '@typescript-eslint/triple-slash-reference': [
163
167
  'error',
164
168
  {
@@ -251,7 +255,7 @@ module.exports = {
251
255
  next: 'return',
252
256
  },
253
257
  ],
254
- 'prefer-arrow/prefer-arrow-functions': 'error',
258
+ 'prefer-arrow/prefer-arrow-functions': 'warn',
255
259
  'prefer-const': 'error',
256
260
  'prefer-object-spread': 'error',
257
261
  'prefer-template': 'error',
@@ -279,6 +283,7 @@ module.exports = {
279
283
  },
280
284
  ],
281
285
  'unicorn/import-style': 'warn',
286
+ 'unicorn/no-anonymous-default-export': 'off',
282
287
  'unicorn/no-array-reduce': 'off',
283
288
  'unicorn/no-console-spaces': 'off',
284
289
  'unicorn/no-document-cookie': 'warn',
@@ -306,6 +311,7 @@ module.exports = {
306
311
  'unicorn/prefer-string-raw': 'off',
307
312
  'unicorn/prefer-string-replace-all': 'off',
308
313
  'unicorn/prefer-structured-clone': 'warn',
314
+ 'unicorn/prefer-node-protocol': 'off',
309
315
  'unicorn/relative-url-style': 'off',
310
316
  'unicorn/switch-case-braces': 'off',
311
317
  'unicorn/template-indent': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allthings/eslint-config",
3
- "version": "2.2.0",
3
+ "version": "2.2.2-dev.0",
4
4
  "description": "ESlint shareable config for Allthings style",
5
5
  "main": "index.js",
6
6
  "files": [