@robinblomberg/eslint-config-robinblomberg 0.34.6 → 0.35.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.d.ts.map +1 -1
- package/index.js +13 -5
- package/package.json +1 -1
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":";AAyBA;;GAEG;AACH,sBAFU,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":";AAyBA;;GAEG;AACH,sBAFU,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CA2hDxC"}
|
package/index.js
CHANGED
|
@@ -106,10 +106,7 @@ const config = [
|
|
|
106
106
|
'id-length': off,
|
|
107
107
|
'id-match': [warn, '^[$_]$|^[$_]?[_A-Za-z][A-Za-z0-9_]*$'],
|
|
108
108
|
'implicit-arrow-linebreak': [off, 'beside'],
|
|
109
|
-
'import/consistent-type-specifier-style': [
|
|
110
|
-
warn,
|
|
111
|
-
'prefer-top-level-if-only-type-imports',
|
|
112
|
-
],
|
|
109
|
+
'import/consistent-type-specifier-style': [warn, 'prefer-top-level'],
|
|
113
110
|
'import/default': warn,
|
|
114
111
|
'import/dynamic-import-chunkname': off,
|
|
115
112
|
'import/export': warn,
|
|
@@ -382,7 +379,18 @@ const config = [
|
|
|
382
379
|
],
|
|
383
380
|
'no-restricted-modules': warn,
|
|
384
381
|
'no-restricted-properties': warn,
|
|
385
|
-
'no-restricted-syntax': [
|
|
382
|
+
'no-restricted-syntax': [
|
|
383
|
+
warn,
|
|
384
|
+
'WithStatement',
|
|
385
|
+
{
|
|
386
|
+
message: 'Use ++ instead of += 1.',
|
|
387
|
+
selector: "AssignmentExpression[operator='+='][right.value=1]",
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
message: 'Use -- instead of -= 1.',
|
|
391
|
+
selector: "AssignmentExpression[operator='-='][right.value=1]",
|
|
392
|
+
},
|
|
393
|
+
],
|
|
386
394
|
'no-return-assign': [warn, 'except-parens'],
|
|
387
395
|
'no-return-await': off,
|
|
388
396
|
'no-script-url': warn,
|