📄 no-loss-of-precision¶
📊 Analysis Summary¶
| Metric | Count |
|---|---|
| 🔧 Functions | 1 |
| 📦 Imports | 4 |
| 📑 Type Aliases | 2 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 packages/eslint-plugin/src/rules/no-loss-of-precision.ts
📤 Default Export¶
| Property | Value |
|---|---|
name |
'no-loss-of-precision' |
meta.type |
'problem' |
meta.deprecated.deprecatedSince |
'8.0.0' |
meta.deprecated.replacedBy |
[ { rule: { name: 'no-loss-of-precision', url: 'https://eslint.org/docs/latest/rules/no-loss-of-precision', }, }, ] |
meta.deprecated.url |
'https://github.com/typescript-eslint/typescript-eslint/pull/8832' |
meta.docs.description |
'Disallow literal numbers that lose precision' |
meta.docs.extendsBaseRule |
true |
meta.hasSuggestions |
baseRule.meta.hasSuggestions |
meta.messages |
baseRule.meta.messages |
meta.schema |
[] |
defaultOptions |
[] |
Entry point: create — documented under Functions.
📦 Imports¶
| Name | Source |
|---|---|
InferMessageIdsTypeFromRule |
../util |
InferOptionsTypeFromRule |
../util |
createRule |
../util |
getESLintCoreRule |
../util/getESLintCoreRule |
Functions¶
create(context: any): any¶
Parameters:
contextany
Returns: any
Calls:
baseRule.create
Type Aliases¶
Options¶
MessageIds¶
Generated by Syntax Scribe