pickier 0.1.36 → 0.1.38

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.
@@ -1,9 +1,11 @@
1
1
  import type { RuleModule } from '../../types';
2
2
  /**
3
- * Enforce using the global `Buffer` instead of `require("buffer").Buffer`.
4
- * In Node.js, `Buffer` is a global, so requiring it explicitly is unnecessary.
3
+ * Enforce using the global `Buffer` instead of importing it from the
4
+ * `buffer` module. In Node.js `Buffer` is a global, so importing or
5
+ * requiring it explicitly is unnecessary.
5
6
  *
6
7
  * Violations:
7
- * - Using `Buffer` without importing (should use require("buffer").Buffer)
8
+ * - `import { Buffer } from 'buffer'` / `'node:buffer'`
9
+ * - `const { Buffer } = require('buffer')`
8
10
  */
9
11
  export declare const preferGlobalBuffer: RuleModule;
@@ -1,9 +1,11 @@
1
1
  import type { RuleModule } from '../../types';
2
2
  /**
3
- * Enforce using the global `process` instead of `require("process")`.
4
- * In Node.js, `process` is a global, so requiring it explicitly is unnecessary.
3
+ * Enforce using the global `process` instead of importing it from the
4
+ * `process` module. In Node.js `process` is a global, so importing or
5
+ * requiring it explicitly is unnecessary.
5
6
  *
6
7
  * Violations:
7
- * - Using `process` without importing (should use require("process"))
8
+ * - `import process from 'process'` / `'node:process'`
9
+ * - `const process = require('process')`
8
10
  */
9
11
  export declare const preferGlobalProcess: RuleModule;