⬅️ Back to Table of Contents
📄 prefer-readonly-parameter-types.ts
📊 Analysis Summary
Metric |
Count |
📦 Imports |
8 |
📊 Variables & Constants |
1 |
📑 Type Aliases |
2 |
📚 Table of Contents
🛠️ File Location:
📂 packages/eslint-plugin/src/rules/prefer-readonly-parameter-types.ts
📦 Imports
Name |
Source |
TSESTree |
@typescript-eslint/utils |
AST_NODE_TYPES |
@typescript-eslint/utils |
TypeOrValueSpecifier |
../util |
createRule |
../util |
getParserServices |
../util |
isTypeReadonly |
../util |
readonlynessOptionsDefaults |
../util |
readonlynessOptionsSchema |
../util |
Variables & Constants
Name |
Type |
Kind |
Value |
Exported |
actualParam |
any |
const |
`param.type === AST_NODE_TYPES.TSParameterProperty |
|
? param.parameter |
|
|
|
|
: param` |
✗ |
|
|
|
Type Aliases
Options
type Options = [
{
allow?: TypeOrValueSpecifier[];
checkParameterProperties?: boolean;
ignoreInferredTypes?: boolean;
treatMethodsAsReadonly?: boolean;
},
];
MessageIds
type MessageIds = 'shouldBeReadonly';