eslint-config-salesforce-typescript 3.0.20 → 3.1.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.
Files changed (2) hide show
  1. package/index.js +20 -2
  2. package/package.json +6 -4
package/index.js CHANGED
@@ -22,6 +22,7 @@ module.exports = {
22
22
  plugins: ['@typescript-eslint', 'eslint-plugin-import', 'eslint-plugin-jsdoc', 'unicorn'],
23
23
  rules: {
24
24
  'unicorn/prefer-node-protocol': 'error',
25
+ 'import/no-extraneous-dependencies': ['off'],
25
26
  // Override @typescript-eslint/recommended
26
27
  '@typescript-eslint/no-explicit-any': 'error',
27
28
  '@typescript-eslint/no-namespace': 'off',
@@ -63,7 +64,7 @@ module.exports = {
63
64
  },
64
65
  ],
65
66
  '@typescript-eslint/member-ordering': 'error',
66
- "@typescript-eslint/no-shadow": "error",
67
+ '@typescript-eslint/no-shadow': 'error',
67
68
  '@typescript-eslint/return-await': 'error',
68
69
  // turning off the base rule is recommended by ts-eslint
69
70
  'no-return-await': 'off',
@@ -84,7 +85,24 @@ module.exports = {
84
85
  '@typescript-eslint/switch-exhaustiveness-check': 'error',
85
86
  '@typescript-eslint/type-annotation-spacing': 'error',
86
87
  '@typescript-eslint/unified-signatures': 'error',
87
- "no-shadow": "off",
88
+ 'no-shadow': 'off',
88
89
  },
89
90
  ignorePatterns: ['*.js'],
91
+ overrides: [
92
+ {
93
+ files: ['src/**'],
94
+ rules: {
95
+ 'import/no-extraneous-dependencies': [
96
+ 'error',
97
+ {
98
+ includeTypes: false,
99
+ devDependencies: false,
100
+ peerDependencies: false,
101
+ bundledDependencies: false,
102
+ optionalDependencies: false,
103
+ },
104
+ ],
105
+ },
106
+ },
107
+ ],
90
108
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-salesforce-typescript",
3
- "version": "3.0.20",
3
+ "version": "3.1.0",
4
4
  "description": "The eslint config for Salesforce typescript projects",
5
5
  "keywords": [
6
6
  "Salesforce",
@@ -19,6 +19,8 @@
19
19
  "url": "https://github.com/forcedotcom/eslint-config-salesforce-typescript/issues"
20
20
  },
21
21
  "devDependencies": {
22
+ "@salesforce/prettier-config": "^0.0.3",
23
+ "prettier": "^3.1.1",
22
24
  "typescript": "^5.3.3"
23
25
  },
24
26
  "publishConfig": {
@@ -29,8 +31,8 @@
29
31
  "build": "echo 'no build necessary'"
30
32
  },
31
33
  "dependencies": {
32
- "@typescript-eslint/eslint-plugin": "^6.16.0",
33
- "@typescript-eslint/parser": "^6.16.0",
34
+ "@typescript-eslint/eslint-plugin": "^6.17.0",
35
+ "@typescript-eslint/parser": "^6.17.0",
34
36
  "eslint": "^8.56.0",
35
37
  "eslint-config-prettier": "^9.1.0",
36
38
  "eslint-config-salesforce": "^2.0.2",
@@ -38,6 +40,6 @@
38
40
  "eslint-plugin-header": "^3.1.1",
39
41
  "eslint-plugin-import": "^2.29.1",
40
42
  "eslint-plugin-jsdoc": "^46.9.1",
41
- "eslint-plugin-unicorn": "^49.0.0"
43
+ "eslint-plugin-unicorn": "^50.0.1"
42
44
  }
43
45
  }