@paratco/eslint-config 1.0.9 → 1.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paratco/eslint-config",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "author": "Paratco",
@@ -138,7 +138,17 @@ export default {
138
138
  // https://typescript-eslint.io/rules/no-restricted-imports
139
139
  // Note: you must disable the base rule as it can report incorrect errors
140
140
  "no-restricted-imports": "off",
141
- "@typescript-eslint/no-restricted-imports": ["off"],
141
+ "@typescript-eslint/no-restricted-imports": [
142
+ "error",
143
+ {
144
+ patterns: [
145
+ {
146
+ regex: "(node:)?process",
147
+ message: "Please dont import node:process."
148
+ }
149
+ ]
150
+ }
151
+ ],
142
152
 
143
153
  // Disallow certain types
144
154
  // https://typescript-eslint.io/rules/no-restricted-types/
@@ -281,5 +291,5 @@ export default {
281
291
  // Enforce using concise optional chain expressions instead of chained logical ands, negated logical ors, or empty objects
282
292
  // https://typescript-eslint.io/rules/prefer-optional-chain
283
293
  // Note: This rule is in the recommended rules. But we remove it.
284
- "@typescript-eslint/prefer-optional-chain": ["off"],
294
+ "@typescript-eslint/prefer-optional-chain": ["off"]
285
295
  };