@scayle/eslint-config-storefront 4.7.0 → 4.7.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/CHANGELOG.md +6 -0
- package/config/flat/promise.mjs +2 -12
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/config/flat/promise.mjs
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import pluginPromise from 'eslint-plugin-promise'
|
|
2
2
|
|
|
3
3
|
// Pre-defined rule configurations for better performance
|
|
4
|
-
const
|
|
4
|
+
const PROMISE_RULES = {
|
|
5
5
|
'promise/no-multiple-resolved': 'error',
|
|
6
6
|
'promise/no-new-statics': 'error',
|
|
7
7
|
'promise/no-return-wrap': 'error',
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const WARN_RULES = {
|
|
11
8
|
'promise/always-return': 'warn',
|
|
12
9
|
'promise/avoid-new': 'warn',
|
|
13
10
|
'promise/catch-or-return': 'warn',
|
|
@@ -17,9 +14,6 @@ const WARN_RULES = {
|
|
|
17
14
|
'promise/no-return-in-finally': 'warn',
|
|
18
15
|
'promise/param-names': 'warn',
|
|
19
16
|
'promise/valid-params': 'warn',
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const OFF_RULES = {
|
|
23
17
|
'promise/no-native': 'off',
|
|
24
18
|
}
|
|
25
19
|
|
|
@@ -28,11 +22,7 @@ export function promise() {
|
|
|
28
22
|
{
|
|
29
23
|
name: 'storefront/promise/rules',
|
|
30
24
|
plugins: { promise: pluginPromise },
|
|
31
|
-
rules:
|
|
32
|
-
...ERROR_RULES,
|
|
33
|
-
...WARN_RULES,
|
|
34
|
-
...OFF_RULES,
|
|
35
|
-
},
|
|
25
|
+
rules: PROMISE_RULES,
|
|
36
26
|
},
|
|
37
27
|
]
|
|
38
28
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/eslint-config-storefront",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.1",
|
|
4
4
|
"description": "SCAYLE Commerce Engine specific eslint configuration",
|
|
5
5
|
"author": "SCAYLE Commerce Engine",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"typescript": ">=5.4.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@antfu/eslint-config": "^
|
|
37
|
+
"@antfu/eslint-config": "^5.0.0",
|
|
38
38
|
"@eslint/eslintrc": "^3.2.0",
|
|
39
39
|
"eslint-config-flat-gitignore": "^2.0.0",
|
|
40
40
|
"eslint-flat-config-utils": "^2.0.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"dprint": "0.50.1",
|
|
49
|
-
"eslint": "9.
|
|
49
|
+
"eslint": "9.32.0",
|
|
50
50
|
"eslint-formatter-gitlab": "6.0.1",
|
|
51
51
|
"publint": "0.3.12",
|
|
52
52
|
"typescript": "5.8.3"
|