eslint-config-salesforce-typescript 3.3.0 → 3.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.
Files changed (2) hide show
  1. package/index.js +10 -0
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -32,6 +32,7 @@ module.exports = {
32
32
  '@typescript-eslint/restrict-template-expressions': [
33
33
  'error',
34
34
  {
35
+ // true generally (so we get it in /test), we override it to false for src lower down
35
36
  allowNullish: true,
36
37
  allowBoolean: true,
37
38
  allowNumber: true,
@@ -94,8 +95,17 @@ module.exports = {
94
95
  ignorePatterns: ['*.js'],
95
96
  overrides: [
96
97
  {
98
+ // put stricter rules you only want to apply to production code here
97
99
  files: ['src/**'],
98
100
  rules: {
101
+ '@typescript-eslint/restrict-template-expressions': [
102
+ 'error',
103
+ {
104
+ allowNullish: false,
105
+ allowBoolean: true,
106
+ allowNumber: true,
107
+ },
108
+ ],
99
109
  'import/no-extraneous-dependencies': [
100
110
  'error',
101
111
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-salesforce-typescript",
3
- "version": "3.3.0",
3
+ "version": "3.4.0",
4
4
  "description": "The eslint config for Salesforce typescript projects",
5
5
  "keywords": [
6
6
  "Salesforce",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@salesforce/prettier-config": "^0.0.3",
23
- "prettier": "^3.2.5",
24
- "typescript": "^5.4.3"
23
+ "prettier": "^3.3.3",
24
+ "typescript": "^5.4.5"
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"