@scayle/eslint-config-storefront 4.3.1 → 4.4.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/CHANGELOG.md +23 -0
- package/config/flat/index.mjs +6 -0
- package/config/flat/sanitized.mjs +0 -1
- package/config/flat/sonarjs.mjs +2 -2
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @aboutyou/eslint-config-sfc
|
|
2
2
|
|
|
3
|
+
## 4.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- We've updated to `eslint-plugin-sonarjs@3.x`. This fixes the executions of multiple SonarJS rules like "cognitive-complexity" during linting and also adds additional new rules.
|
|
8
|
+
|
|
9
|
+
- Check the official [`eslint-plugin-sonarjs` - CHANGELOG.md](https://github.com/SonarSource/SonarJS/blob/master/packages/jsts/src/rules/CHANGELOG.md) for more details.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependency `local-pkg@^0.5.0` to `local-pkg@^0.5.1`
|
|
14
|
+
- Updated dependency `@antfu/eslint-config@^3.0.0` to `@antfu/eslint-config@^3.11.2`
|
|
15
|
+
- Updated dependency `@eslint/eslintrc@^3.1.0` to `@eslint/eslintrc@^3.2.0`
|
|
16
|
+
- Updated dependency `eslint-plugin-no-unsanitized@^4.0.2` to `eslint-plugin-no-unsanitized@^4.1.2`
|
|
17
|
+
- Updated dependency `eslint-plugin-promise@^7.0.0` to `eslint-plugin-promise@^7.2.1`
|
|
18
|
+
- Updated dependency `eslint-plugin-sonarjs@^1.0.3` to `eslint-plugin-sonarjs@^3.0.1`
|
|
19
|
+
|
|
20
|
+
## 4.3.2
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Enable `curly` rule to enforce consistent brace style for all control statements
|
|
25
|
+
|
|
3
26
|
## 4.3.1
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/config/flat/index.mjs
CHANGED
|
@@ -66,6 +66,12 @@ export const eslintConfigStorefront = function(config = {
|
|
|
66
66
|
sanitized(),
|
|
67
67
|
),
|
|
68
68
|
nonNuxtRules,
|
|
69
|
+
{
|
|
70
|
+
rules: {
|
|
71
|
+
// https://eslint.org/docs/latest/rules/curly
|
|
72
|
+
'curly': ['error', 'all'],
|
|
73
|
+
},
|
|
74
|
+
},
|
|
69
75
|
{
|
|
70
76
|
// Disable default rules by imported @antfu/eslint-config
|
|
71
77
|
rules: {
|
package/config/flat/sonarjs.mjs
CHANGED
|
@@ -7,13 +7,13 @@ export function sonarjs() {
|
|
|
7
7
|
name: 'storefront/sonarjs/rules',
|
|
8
8
|
// Legacy: eslint-plugin-sonarjs
|
|
9
9
|
// Support for FlatConfig: <https://github.com/SonarSource/SonarJS/issues/3968>
|
|
10
|
-
// Disabling currently incompatible rules per recommendation:
|
|
11
|
-
// <https://github.com/SonarSource/eslint-plugin-sonarjs/issues/454#issuecomment-2051659694>
|
|
12
10
|
'plugins': {
|
|
13
11
|
pluginSonarjs,
|
|
14
12
|
},
|
|
15
13
|
rules: {
|
|
16
14
|
'sonarjs/no-duplicate-string': 'off',
|
|
15
|
+
'sonarjs/todo-tag': 'warn',
|
|
16
|
+
'sonarjs/fixme-tag': 'warn',
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
19
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/eslint-config-storefront",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "SCAYLE Commerce Engine specific eslint configuration",
|
|
5
5
|
"author": "SCAYLE Commerce Engine",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
"typescript": "^5.4.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"local-pkg": "^0.5.
|
|
39
|
-
"@antfu/eslint-config": "^3.
|
|
40
|
-
"@eslint/eslintrc": "^3.
|
|
38
|
+
"local-pkg": "^0.5.1",
|
|
39
|
+
"@antfu/eslint-config": "^3.11.2",
|
|
40
|
+
"@eslint/eslintrc": "^3.2.0",
|
|
41
41
|
"eslint-flat-config-utils": "^0.4.0",
|
|
42
42
|
"eslint-config-flat-gitignore": "^0.3.0",
|
|
43
|
-
"eslint-plugin-no-unsanitized": "^4.
|
|
44
|
-
"eslint-plugin-promise": "^7.
|
|
45
|
-
"eslint-plugin-sonarjs": "^
|
|
43
|
+
"eslint-plugin-no-unsanitized": "^4.1.2",
|
|
44
|
+
"eslint-plugin-promise": "^7.2.1",
|
|
45
|
+
"eslint-plugin-sonarjs": "^3.0.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"dprint": "0.47.
|
|
49
|
-
"eslint": "9.
|
|
48
|
+
"dprint": "0.47.6",
|
|
49
|
+
"eslint": "9.16.0",
|
|
50
50
|
"eslint-formatter-gitlab": "5.1.0",
|
|
51
|
-
"publint": "0.2.
|
|
51
|
+
"publint": "0.2.12"
|
|
52
52
|
}
|
|
53
53
|
}
|