@scayle/eslint-config-storefront 4.0.0 → 4.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @aboutyou/eslint-config-sfc
2
2
 
3
+ ## 4.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - `eslint-plugin-sonarjs` has been updated to support `eslint@9`. This update reenables the recommended `sonarjs` rules.
8
+
9
+ ## 4.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - Disable rule `sonarjs/no-duplicate-string` for test files
14
+
3
15
  ## 4.0.0
4
16
 
5
17
  ### Major Changes
@@ -2,24 +2,18 @@ import pluginSonarjs from 'eslint-plugin-sonarjs'
2
2
 
3
3
  export function sonarjs() {
4
4
  return [
5
+ pluginSonarjs.configs.recommended,
5
6
  {
6
7
  name: 'storefront/sonarjs/rules',
7
8
  // Legacy: eslint-plugin-sonarjs
8
9
  // Support for FlatConfig: <https://github.com/SonarSource/SonarJS/issues/3968>
9
10
  // Disabling currently incompatible rules per recommendation:
10
11
  // <https://github.com/SonarSource/eslint-plugin-sonarjs/issues/454#issuecomment-2051659694>
11
- plugins: {
12
- sonarjs: pluginSonarjs,
12
+ 'plugins': {
13
+ pluginSonarjs,
13
14
  },
14
15
  rules: {
15
- 'sonarjs/no-gratuitous-expressions': 'off',
16
- 'sonarjs/no-empty-collection': 'off',
17
- 'sonarjs/no-unused-collection': 'off',
18
- 'security/detect-child-process': 'off',
19
- 'sonarjs/no-use-of-empty-return-value': 'off',
20
- 'sonarjs/no-extra-arguments': 'off',
21
- 'sonarjs/no-redundant-jump': 'off',
22
- 'sonarjs/no-one-iteration-loop': 'off',
16
+ 'sonarjs/no-duplicate-string': 'warn',
23
17
  },
24
18
  },
25
19
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/eslint-config-storefront",
3
- "version": "4.0.0",
3
+ "version": "4.2.0",
4
4
  "description": "SCAYLE Commerce Engine specific eslint configuration",
5
5
  "author": "SCAYLE Commerce Engine",
6
6
  "license": "MIT",
@@ -36,17 +36,17 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "local-pkg": "0.5.0",
39
- "@antfu/eslint-config": "2.14.0",
39
+ "@antfu/eslint-config": "2.18.0",
40
40
  "@eslint/eslintrc": "3.0.2",
41
- "eslint-flat-config-utils": "0.2.3",
41
+ "eslint-flat-config-utils": "0.2.4",
42
42
  "eslint-config-flat-gitignore": "0.1.5",
43
43
  "eslint-plugin-no-unsanitized": "4.0.2",
44
44
  "eslint-plugin-promise": "6.1.1",
45
- "eslint-plugin-sonarjs": "0.25.1"
45
+ "eslint-plugin-sonarjs": "1.0.3"
46
46
  },
47
47
  "devDependencies": {
48
48
  "dprint": "0.45.1",
49
- "eslint": "9.0.0",
49
+ "eslint": "9.2.0",
50
50
  "eslint-formatter-gitlab": "5.1.0",
51
51
  "publint": "0.2.7"
52
52
  }