@robinblomberg/eslint-config-robinblomberg 0.24.0 → 0.24.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 +6 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -66,7 +66,8 @@ module.exports = defineConfig({
|
|
|
66
66
|
warn,
|
|
67
67
|
{
|
|
68
68
|
disallowTypeAnnotations: true,
|
|
69
|
-
|
|
69
|
+
fixStyle: 'inline-type-imports',
|
|
70
|
+
prefer: 'type-imports',
|
|
70
71
|
},
|
|
71
72
|
],
|
|
72
73
|
'@typescript-eslint/default-param-last': warn,
|
|
@@ -968,8 +969,9 @@ module.exports = defineConfig({
|
|
|
968
969
|
'import/dynamic-import-chunkname': off,
|
|
969
970
|
'import/export': warn,
|
|
970
971
|
'import/exports-last': off,
|
|
972
|
+
// This should be opt-in. It's not necessary for Vite, for example.
|
|
971
973
|
'import/extensions': [
|
|
972
|
-
|
|
974
|
+
off,
|
|
973
975
|
{
|
|
974
976
|
js: 'always',
|
|
975
977
|
json: 'always',
|
|
@@ -1336,7 +1338,8 @@ module.exports = defineConfig({
|
|
|
1336
1338
|
},
|
|
1337
1339
|
],
|
|
1338
1340
|
'padding-line-between-statements': warn,
|
|
1339
|
-
|
|
1341
|
+
// You may want to use `fn(function () {})` for some advanced cases:
|
|
1342
|
+
'prefer-arrow-callback': off,
|
|
1340
1343
|
'prefer-const': [warn, { destructuring: 'all' }],
|
|
1341
1344
|
'prefer-destructuring': [off, { array: false, object: true }],
|
|
1342
1345
|
'prefer-named-capture-group': off,
|