@autoguru/eslint-plugin 1.3.2 → 1.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @autoguru/eslint-plugin
2
2
 
3
+ ## 1.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - de55945: Adds sonarjs eslint rules to AutoGuru typescript eslint
8
+
3
9
  ## 1.3.2
4
10
 
5
11
  ### Patch Changes
@@ -4,6 +4,7 @@ module.exports = {
4
4
  'plugin:@typescript-eslint/eslint-recommended',
5
5
  'plugin:@typescript-eslint/recommended',
6
6
  'plugin:import/typescript',
7
+ 'plugin:sonarjs/recommended',
7
8
  ],
8
9
 
9
10
  parser: '@typescript-eslint/parser',
@@ -25,9 +26,9 @@ module.exports = {
25
26
  '@typescript-eslint/indent': 'off',
26
27
  '@typescript-eslint/no-require-imports': 'off',
27
28
  '@typescript-eslint/ban-types': 'off', // Complains about Omit so cya
29
+ 'sonarjs/no-duplicate-string': 'warn',
28
30
  '@typescript-eslint/no-explicit-any': 'warn',
29
31
  '@typescript-eslint/ban-ts-comment': 'warn',
30
-
31
32
  '@typescript-eslint/no-use-before-define': 'warn',
32
33
  },
33
34
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autoguru/eslint-plugin",
3
- "version": "1.3.2",
3
+ "version": "1.4.0",
4
4
  "description": "AutoGuru's shareable eslint config and custom plugins",
5
5
  "homepage": "https://github.com/autoguru-au/octane/tree/master/packages/eslint-plugin#readme",
6
6
  "repository": "https://github.com/autoguru-au/octane/tree/master/packages/eslint-plugin",
@@ -19,6 +19,7 @@
19
19
  "eslint-plugin-promise": "^5.1.0",
20
20
  "eslint-plugin-react": "^7.24.0",
21
21
  "eslint-plugin-react-hooks": "^4.2.0",
22
+ "eslint-plugin-sonarjs": "^0.19.0",
22
23
  "eslint-plugin-unicorn": "^33.0.1"
23
24
  },
24
25
  "peerDependencies": {