1 import { Linter } from "../index";
3 export interface NodeJSAndCommonJS extends Linter.RulesRecord {
5 * Rule to require `return` statements after callbacks.
8 * @see https://eslint.org/docs/rules/callback-return
10 "callback-return": Linter.RuleEntry<[string[]]>;
13 * Rule to require `require()` calls to be placed at top-level module scope.
16 * @see https://eslint.org/docs/rules/global-require
18 "global-require": Linter.RuleEntry<[]>;
21 * Rule to require error handling in callbacks.
24 * @see https://eslint.org/docs/rules/handle-callback-err
26 "handle-callback-err": Linter.RuleEntry<[string]>;
29 * Rule to disallow use of the `Buffer()` constructor.
31 * @since 4.0.0-alpha.0
32 * @see https://eslint.org/docs/rules/no-buffer-constructor
34 "no-buffer-constructor": Linter.RuleEntry<[]>;
37 * Rule to disallow `require` calls to be mixed with regular variable declarations.
40 * @see https://eslint.org/docs/rules/no-mixed-requires
42 "no-mixed-requires": Linter.RuleEntry<
58 * Rule to disallow `new` operators with calls to `require`.
61 * @see https://eslint.org/docs/rules/no-new-require
63 "no-new-require": Linter.RuleEntry<[]>;
66 * Rule to disallow string concatenation when using `__dirname` and `__filename`.
69 * @see https://eslint.org/docs/rules/no-path-concat
71 "no-path-concat": Linter.RuleEntry<[]>;
74 * Rule to disallow the use of `process.env`.
77 * @see https://eslint.org/docs/rules/no-process-env
79 "no-process-env": Linter.RuleEntry<[]>;
82 * Rule to disallow the use of `process.exit()`.
85 * @see https://eslint.org/docs/rules/no-process-exit
87 "no-process-exit": Linter.RuleEntry<[]>;
90 * Rule to disallow specified modules when loaded by `require`.
93 * @see https://eslint.org/docs/rules/no-restricted-modules
95 "no-restricted-modules": Linter.RuleEntry<
101 message?: string | undefined;
108 message?: string | undefined;
118 * Rule to disallow synchronous methods.
121 * @see https://eslint.org/docs/rules/no-sync
123 "no-sync": Linter.RuleEntry<
129 allowAtRootLevel: boolean;