@jimmy.codes/eslint-config 5.2.0 → 5.3.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/dist/index.d.ts CHANGED
@@ -16012,8 +16012,15 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
16012
16012
  };
16013
16013
  };
16014
16014
  rules: {
16015
+ "n/handle-callback-err": ["error", string];
16016
+ "n/no-deprecated-api": "error";
16017
+ "n/no-exports-assign": "error";
16018
+ "n/no-new-require": "error";
16019
+ "n/no-path-concat": "error";
16015
16020
  "n/no-process-exit": "off";
16021
+ "n/prefer-global/console": ["error", "always"];
16016
16022
  "n/prefer-node-protocol": "error";
16023
+ "n/process-exit-as-throw": "error";
16017
16024
  };
16018
16025
  } | {
16019
16026
  name: string;
package/dist/index.js CHANGED
@@ -298,9 +298,16 @@ import nodePlugin2 from "eslint-plugin-n";
298
298
 
299
299
  // src/rules/node.ts
300
300
  var nodeRules = {
301
+ "n/handle-callback-err": ["error", "^(err|error)$"],
302
+ "n/no-deprecated-api": "error",
303
+ "n/no-exports-assign": "error",
304
+ "n/no-new-require": "error",
305
+ "n/no-path-concat": "error",
301
306
  "n/no-process-exit": "off",
302
307
  // TODO [2025-12-31]: enable this rule
303
- "n/prefer-node-protocol": "error"
308
+ "n/prefer-global/console": ["error", "always"],
309
+ "n/prefer-node-protocol": "error",
310
+ "n/process-exit-as-throw": "error"
304
311
  };
305
312
 
306
313
  // src/configs/node.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jimmy.codes/eslint-config",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
4
4
  "description": "A pragmatic and opinionated ESLint config for modern development.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -40,7 +40,7 @@
40
40
  "eslint-plugin-jest-dom": "^5.5.0",
41
41
  "eslint-plugin-jsdoc": "^50.6.8",
42
42
  "eslint-plugin-jsx-a11y": "^6.10.2",
43
- "eslint-plugin-n": "^17.15.1",
43
+ "eslint-plugin-n": "^17.16.2",
44
44
  "eslint-plugin-perfectionist": "^4.9.0",
45
45
  "eslint-plugin-playwright": "^2.2.0",
46
46
  "eslint-plugin-react": "^7.37.4",