UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

23 lines (20 loc) 895 B
import type { RuleConfig } from '../rule-config'; /** * Prefer using the `node:` protocol when importing Node.js builtin modules. * * @see [prefer-node-protocol](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/prefer-node-protocol.md) */ export type PreferNodeProtocolRuleConfig = RuleConfig<[]>; /** * Prefer using the `node:` protocol when importing Node.js builtin modules. * * @see [prefer-node-protocol](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/prefer-node-protocol.md) */ export interface PreferNodeProtocolRule { /** * Prefer using the `node:` protocol when importing Node.js builtin modules. * * @see [prefer-node-protocol](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/prefer-node-protocol.md) */ 'unicorn/prefer-node-protocol': PreferNodeProtocolRuleConfig; }