@allthings/eslint-config 2.2.1 → 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 +6 -2
  2. package/node.js +5 -2
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -117,6 +117,7 @@ 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',
121
122
  '@typescript-eslint/consistent-type-definitions': 'off',
122
123
  '@typescript-eslint/explicit-function-return-type': 'off',
@@ -142,7 +143,7 @@ module.exports = {
142
143
  ],
143
144
  '@typescript-eslint/no-empty-function': 'error',
144
145
  '@typescript-eslint/no-empty-interface': 'error',
145
- '@typescript-eslint/no-explicit-any': 'error',
146
+ '@typescript-eslint/no-explicit-any': 'warn',
146
147
  '@typescript-eslint/no-for-in-array': 'error',
147
148
  '@typescript-eslint/no-inferrable-types': 'error',
148
149
  '@typescript-eslint/no-misused-new': 'error',
@@ -156,9 +157,11 @@ module.exports = {
156
157
  },
157
158
  ],
158
159
  '@typescript-eslint/no-this-alias': 'error',
160
+ '@typescript-eslint/no-unnecessary-type-assertion': 'warn',
159
161
  '@typescript-eslint/no-unsafe-argument': 'warn',
160
162
  '@typescript-eslint/no-unsafe-assignment': 'warn',
161
163
  '@typescript-eslint/no-unsafe-call': 'warn',
164
+ '@typescript-eslint/no-unsafe-enum-comparison': 'off',
162
165
  '@typescript-eslint/no-unsafe-member-access': 'off',
163
166
  '@typescript-eslint/no-unsafe-return': 'warn',
164
167
  '@typescript-eslint/no-unused-expressions': 'error',
@@ -173,6 +176,7 @@ module.exports = {
173
176
  '@typescript-eslint/prefer-namespace-keyword': 'error',
174
177
  '@typescript-eslint/prefer-nullish-coalescing': 'off',
175
178
  '@typescript-eslint/prefer-promise-reject-errors': 'warn',
179
+ '@typescript-eslint/restrict-template-expressions': 'warn',
176
180
  '@typescript-eslint/triple-slash-reference': [
177
181
  'error',
178
182
  {
@@ -265,7 +269,7 @@ module.exports = {
265
269
  next: 'return',
266
270
  },
267
271
  ],
268
- 'prefer-arrow/prefer-arrow-functions': 'error',
272
+ 'prefer-arrow/prefer-arrow-functions': 'warn',
269
273
  'prefer-const': 'error',
270
274
  'prefer-object-spread': 'error',
271
275
  'prefer-template': 'error',
package/node.js CHANGED
@@ -106,6 +106,7 @@ 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',
110
111
  '@typescript-eslint/consistent-type-definitions': 'off',
111
112
  '@typescript-eslint/dot-notation': 'error',
@@ -132,7 +133,7 @@ module.exports = {
132
133
  ],
133
134
  '@typescript-eslint/no-empty-function': 'error',
134
135
  '@typescript-eslint/no-empty-interface': 'error',
135
- '@typescript-eslint/no-explicit-any': 'error',
136
+ '@typescript-eslint/no-explicit-any': 'warn',
136
137
  '@typescript-eslint/no-for-in-array': 'error',
137
138
  '@typescript-eslint/no-inferrable-types': 'error',
138
139
  '@typescript-eslint/no-misused-new': 'error',
@@ -149,6 +150,7 @@ module.exports = {
149
150
  '@typescript-eslint/no-unsafe-argument': 'warn',
150
151
  '@typescript-eslint/no-unsafe-assignment': 'warn',
151
152
  '@typescript-eslint/no-unsafe-call': 'warn',
153
+ '@typescript-eslint/no-unsafe-enum-comparison': 'off',
152
154
  '@typescript-eslint/no-unsafe-member-access': 'off',
153
155
  '@typescript-eslint/no-unsafe-return': 'warn',
154
156
  '@typescript-eslint/no-unused-expressions': 'error',
@@ -160,6 +162,7 @@ module.exports = {
160
162
  '@typescript-eslint/prefer-namespace-keyword': 'error',
161
163
  '@typescript-eslint/prefer-nullish-coalescing': 'off',
162
164
  '@typescript-eslint/prefer-promise-reject-errors': 'warn',
165
+ '@typescript-eslint/restrict-template-expressions': 'warn',
163
166
  '@typescript-eslint/triple-slash-reference': [
164
167
  'error',
165
168
  {
@@ -252,7 +255,7 @@ module.exports = {
252
255
  next: 'return',
253
256
  },
254
257
  ],
255
- 'prefer-arrow/prefer-arrow-functions': 'error',
258
+ 'prefer-arrow/prefer-arrow-functions': 'warn',
256
259
  'prefer-const': 'error',
257
260
  'prefer-object-spread': 'error',
258
261
  'prefer-template': 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allthings/eslint-config",
3
- "version": "2.2.1",
3
+ "version": "2.2.2-dev.0",
4
4
  "description": "ESlint shareable config for Allthings style",
5
5
  "main": "index.js",
6
6
  "files": [