eslint-config-salesforce-typescript 3.0.20 → 3.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.
Files changed (2) hide show
  1. package/index.js +23 -2
  2. package/package.json +6 -4
package/index.js CHANGED
@@ -22,6 +22,10 @@ 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
+ 'unicorn/numeric-separators-style': 'warn',
26
+ // turn the rule off everywhere. Then, in overrides, turn it on for just src
27
+ 'import/no-extraneous-dependencies': ['off'],
28
+
25
29
  // Override @typescript-eslint/recommended
26
30
  '@typescript-eslint/no-explicit-any': 'error',
27
31
  '@typescript-eslint/no-namespace': 'off',
@@ -63,7 +67,7 @@ module.exports = {
63
67
  },
64
68
  ],
65
69
  '@typescript-eslint/member-ordering': 'error',
66
- "@typescript-eslint/no-shadow": "error",
70
+ '@typescript-eslint/no-shadow': 'error',
67
71
  '@typescript-eslint/return-await': 'error',
68
72
  // turning off the base rule is recommended by ts-eslint
69
73
  'no-return-await': 'off',
@@ -84,7 +88,24 @@ module.exports = {
84
88
  '@typescript-eslint/switch-exhaustiveness-check': 'error',
85
89
  '@typescript-eslint/type-annotation-spacing': 'error',
86
90
  '@typescript-eslint/unified-signatures': 'error',
87
- "no-shadow": "off",
91
+ 'no-shadow': 'off',
88
92
  },
89
93
  ignorePatterns: ['*.js'],
94
+ overrides: [
95
+ {
96
+ files: ['src/**'],
97
+ rules: {
98
+ 'import/no-extraneous-dependencies': [
99
+ 'error',
100
+ {
101
+ includeTypes: false,
102
+ devDependencies: false,
103
+ peerDependencies: false,
104
+ bundledDependencies: false,
105
+ optionalDependencies: false,
106
+ },
107
+ ],
108
+ },
109
+ },
110
+ ],
90
111
  };
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.2.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
  }