pickier 0.1.37 → 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.
- package/dist/bin/cli.js +654 -581
- package/dist/rules/node/prefer-global-buffer.d.ts +5 -3
- package/dist/rules/node/prefer-global-process.d.ts +5 -3
- package/dist/src/index.js +846 -773
- package/package.json +1 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
2
|
/**
|
|
3
|
-
* Enforce using the global `Buffer` instead of
|
|
4
|
-
* In Node.js
|
|
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
|
-
* -
|
|
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
|
|
4
|
-
* In Node.js
|
|
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
|
-
* -
|
|
8
|
+
* - `import process from 'process'` / `'node:process'`
|
|
9
|
+
* - `const process = require('process')`
|
|
8
10
|
*/
|
|
9
11
|
export declare const preferGlobalProcess: RuleModule;
|