@w5s/eslint-config 2.1.2 → 2.2.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/dist/rules/es/unicorn.js
CHANGED
|
@@ -46,7 +46,7 @@ const config = dev_1.ESLintConfig.concat(eslint_plugin_unicorn_1.default.configs
|
|
|
46
46
|
'unicorn/prefer-starts-ends-with': 'error',
|
|
47
47
|
'unicorn/prefer-text-content': 'error',
|
|
48
48
|
'unicorn/prefer-type-error': 'error',
|
|
49
|
-
'unicorn/throw-new-error': '
|
|
49
|
+
'unicorn/throw-new-error': 'off', // Creating errors with call signature is OK
|
|
50
50
|
},
|
|
51
51
|
}, {
|
|
52
52
|
overrides: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@w5s/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "ESLint configuration presets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
73
|
"sideEffect": false,
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "f58f8377bc54398236a7bc08869c7a77272cc510"
|
|
75
75
|
}
|
package/src/rules/es/unicorn.ts
CHANGED
|
@@ -46,7 +46,7 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
|
|
|
46
46
|
'unicorn/prefer-starts-ends-with': 'error',
|
|
47
47
|
'unicorn/prefer-text-content': 'error',
|
|
48
48
|
'unicorn/prefer-type-error': 'error',
|
|
49
|
-
'unicorn/throw-new-error': '
|
|
49
|
+
'unicorn/throw-new-error': 'off', // Creating errors with call signature is OK
|
|
50
50
|
},
|
|
51
51
|
},
|
|
52
52
|
{
|