@scayle/eslint-config-storefront 4.5.7 → 4.5.8
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 +16 -0
- package/config/flat/index.mjs +8 -4
- package/package.json +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @aboutyou/eslint-config-sfc
|
|
2
2
|
|
|
3
|
+
## 4.5.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Removed dependency `eslint-plugin-import-x@^4.15.2`
|
|
8
|
+
- Moved `import/no-extraneous-dependencies` rule to non-nuxt specific rule sets.
|
|
9
|
+
This change prevent issues in projects with strict dependency resolution and hoisting, e.g. when using package manager like `pnpm`.
|
|
10
|
+
|
|
11
|
+
Should you want to make specific tweaks to the default `import/no-extraneous-dependencies` behavior within a Nuxt application context, the following can be added to the projects `eslint.config.mjs`:
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
'import/no-extraneous-dependencies': ['warn', {
|
|
15
|
+
'includeTypes': true,
|
|
16
|
+
}],
|
|
17
|
+
```
|
|
18
|
+
|
|
3
19
|
## 4.5.7
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/config/flat/index.mjs
CHANGED
|
@@ -48,7 +48,14 @@ export const eslintConfigStorefront = function(config = {
|
|
|
48
48
|
? combine(
|
|
49
49
|
gitignore(),
|
|
50
50
|
ignores(),
|
|
51
|
-
imports(
|
|
51
|
+
imports(imports({
|
|
52
|
+
// Configure import plugin rules
|
|
53
|
+
rules: {
|
|
54
|
+
'import/no-extraneous-dependencies': ['warn', {
|
|
55
|
+
'includeTypes': true,
|
|
56
|
+
}],
|
|
57
|
+
},
|
|
58
|
+
})),
|
|
52
59
|
javascript(),
|
|
53
60
|
typescript(config.typescript),
|
|
54
61
|
jsdoc(),
|
|
@@ -94,9 +101,6 @@ export const eslintConfigStorefront = function(config = {
|
|
|
94
101
|
rules: {
|
|
95
102
|
// https://eslint.org/docs/latest/rules/curly
|
|
96
103
|
'curly': ['error', 'all'],
|
|
97
|
-
'import/no-extraneous-dependencies': ['warn', {
|
|
98
|
-
'includeTypes': true,
|
|
99
|
-
}],
|
|
100
104
|
},
|
|
101
105
|
},
|
|
102
106
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/eslint-config-storefront",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.8",
|
|
4
4
|
"description": "SCAYLE Commerce Engine specific eslint configuration",
|
|
5
5
|
"author": "SCAYLE Commerce Engine",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"@eslint/eslintrc": "^3.2.0",
|
|
47
47
|
"eslint-config-flat-gitignore": "^2.0.0",
|
|
48
48
|
"eslint-flat-config-utils": "^2.0.0",
|
|
49
|
-
"eslint-plugin-import-x": "^4.15.2",
|
|
50
49
|
"eslint-plugin-no-unsanitized": "^4.1.2",
|
|
51
50
|
"eslint-plugin-promise": "^7.2.1",
|
|
52
51
|
"eslint-plugin-sonarjs": "^3.0.1",
|