@types/eslint 8.4.8 → 9.6.1: deprecates 17 API(s)
Compared with 8.4.8: `Rule.RuleContext.getFilename`, `Rule.RuleContext.getPhysicalFilename`, `Rule.RuleContext.getCwd`, `Rule.RuleContext.getSourceCode`, `use-at-your-own-risk:builtinRules`, and 12 more. 4 newly deprecated.
registry.npmjs.orgquote checked
- 9.6.1from 8.4.8
- Your code17 things to find
Nemotron fixes
In its own wordsread from the page
- Rule.RuleContext.getFilename: Use property `filename` directly instead
- Rule.RuleContext.getPhysicalFilename: Use property `physicalFilename` directly instead
- Rule.RuleContext.getCwd: Use property `cwd` directly instead
- Rule.RuleContext.getSourceCode: Use property `sourceCode` directly instead
- rules:ESLintRules.indent-legacy: Rule to enforce consistent indentation. since 4.0.0, use [`indent`](https://eslint.org/docs/rules/indent) instead. https://eslint.org/docs/rules/indent-legacy
- rules:ESLintRules.lines-around-directive: Rule to require or disallow newlines around directives. since 4.0.0, use [`padding-line-between-statements`](https://eslint.org/docs/rules/padding-line-between-statements) instead. https://eslint.org/docs/rules/lines-around-directive
- rules:ESLintRules.newline-after-var: Rule to require or disallow an empty line after variable declarations. since 4.0.0, use [`padding-line-between-statements`](https://eslint.org/docs/rules/padding-line-between-statements) instead. https://eslint.org/docs/rules/newline-after-var
What Teire looks for in your code
- Rule.RuleContext.getFilename (ts)
- Rule.RuleContext.getPhysicalFilename (ts)
- Rule.RuleContext.getCwd (ts)
- Rule.RuleContext.getSourceCode (ts)
- use-at-your-own-risk:builtinRules (ts)
- use-at-your-own-risk:FileEnumerator (ts)
- rules:ESLintRules.indent-legacy (ts)
- rules:ESLintRules.lines-around-directive (ts)
- rules:ESLintRules.newline-after-var (ts)
- rules:ESLintRules.newline-before-return (ts)
- rules:ESLintRules.no-catch-shadow (ts)
- rules:ESLintRules.no-native-reassign (ts)
- rules:ESLintRules.no-negated-in-lhs (ts)
- rules:ESLintRules.no-spaced-func (ts)
- rules:ESLintRules.prefer-reflect (ts)
Does it reach your code?