@scayle/eslint-config-storefront 4.5.10 → 4.5.12

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @aboutyou/eslint-config-sfc
2
2
 
3
+ ## 4.5.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependency `typescript-eslint@8.35.0` to `typescript-eslint@8.35.1`
8
+
3
9
  ## 4.5.10
4
10
 
5
11
  ### Patch Changes
@@ -151,18 +157,18 @@
151
157
 
152
158
  ```js
153
159
  // eslint.config.mjs
154
- import eslintConfigStorefront from '@scayle/eslint-config-storefront'
160
+ import eslintConfigStorefront from "@scayle/eslint-config-storefront";
155
161
 
156
- export default eslintConfigStorefront()
162
+ export default eslintConfigStorefront();
157
163
  ```
158
164
 
159
165
  For Nuxt projects using `@nuxt/eslint` module:
160
166
 
161
167
  ```js
162
- import withNuxt from './.nuxt/eslint.config.mjs'
163
- import eslintConfigStorefront from '@scayle/eslint-config-storefront'
168
+ import withNuxt from "./.nuxt/eslint.config.mjs";
169
+ import eslintConfigStorefront from "@scayle/eslint-config-storefront";
164
170
 
165
- export default withNuxt(eslintConfigStorefront())
171
+ export default withNuxt(eslintConfigStorefront());
166
172
  ```
167
173
 
168
174
  The `@scayle/eslint-config-storefront` package exports a factory function `eslintConfigStorefront()`. The factory function is able to automatically detect if a project is using the `@nuxt/eslint` package and automatically disables certain duplicate rules that are provided by `@nuxt/eslint`. This can also manually be adjusted by passing `{ isNuxt: true }` as parameter to `eslintConfigStorefront()`.
@@ -55,12 +55,17 @@ export const eslintConfigStorefront = function(config = {
55
55
  tseslint.configs.recommended,
56
56
  [{
57
57
  rules: {
58
+ // https://eslint.org/docs/latest/rules/curly
59
+ 'curly': ['error', 'all'],
60
+ // https://typescript-eslint.io/rules/no-explicit-any/
58
61
  '@typescript-eslint/no-explicit-any': ['warn', {
59
62
  ignoreRestArgs: true,
60
63
  }],
64
+ // https://typescript-eslint.io/rules/no-empty-object-type/
61
65
  '@typescript-eslint/no-empty-object-type': ['error', {
62
66
  'allowInterfaces': 'always',
63
67
  }],
68
+ // https://typescript-eslint.io/rules/no-unused-vars/
64
69
  '@typescript-eslint/no-unused-vars': [
65
70
  'error',
66
71
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/eslint-config-storefront",
3
- "version": "4.5.10",
3
+ "version": "4.5.12",
4
4
  "description": "SCAYLE Commerce Engine specific eslint configuration",
5
5
  "author": "SCAYLE Commerce Engine",
6
6
  "license": "MIT",
@@ -29,14 +29,6 @@
29
29
  "./index.mjs",
30
30
  "./config/"
31
31
  ],
32
- "scripts": {
33
- "format": "dprint check",
34
- "format:fix": "dprint fmt",
35
- "lint": "eslint .",
36
- "lint:ci": "eslint . --format gitlab",
37
- "lint:fix": "eslint . --fix",
38
- "package:lint": "publint"
39
- },
40
32
  "peerDependencies": {
41
33
  "eslint": ">=9.0.0",
42
34
  "typescript": ">=5.4.0"
@@ -50,13 +42,21 @@
50
42
  "eslint-plugin-promise": "^7.2.1",
51
43
  "eslint-plugin-sonarjs": "^3.0.1",
52
44
  "local-pkg": "^1.0.0",
53
- "typescript-eslint": "8.34.1"
45
+ "typescript-eslint": "8.35.1"
54
46
  },
55
47
  "devDependencies": {
56
- "dprint": "0.50.0",
57
- "eslint": "9.29.0",
48
+ "dprint": "0.50.1",
49
+ "eslint": "9.30.0",
58
50
  "eslint-formatter-gitlab": "6.0.1",
59
- "publint": "0.2.12",
51
+ "publint": "0.3.12",
60
52
  "typescript": "5.8.3"
53
+ },
54
+ "scripts": {
55
+ "format": "dprint check",
56
+ "format:fix": "dprint fmt",
57
+ "lint": "eslint .",
58
+ "lint:ci": "eslint . --format gitlab",
59
+ "lint:fix": "eslint . --fix",
60
+ "package:lint": "publint"
61
61
  }
62
- }
62
+ }