Skip to content

TypeScript 5: errors #34

@kormanowsky

Description

@kormanowsky
  1. ESlint 8.20.0 дает
    Parsing error: DeprecationError: 'originalKeywordKind' has been deprecated since v5.0.0 and can no longer be used. Use 'identifierToKeywordKind(identifier)' instead
  2. Обновление до 8.56.0 + обновление (см. https://stackoverflow.com/questions/76996326/parsing-error-deprecationerror-originalkeywordkind-has-been-deprecated-since)
"@typescript-eslint/eslint-plugin": "5.31.0",
    "@typescript-eslint/parser": "5.31.0",

до

"@typescript-eslint/eslint-plugin": "6.19.1",
    "@typescript-eslint/parser": "6.19.1",

дает

Oops! Something went wrong! :(

ESLint: 8.56.0

Error: .eslintrc.js#overrides[1]:
        Configuration for rule "@typescript-eslint/lines-between-class-members" is invalid:
        Value {"exceptAfterSingleLine":true} should NOT have additional properties.
        Value {"exceptAfterSingleLine":true} should be equal to one of the allowed values.
        Value {"exceptAfterSingleLine":true} should match some schema in anyOf.

    at ConfigValidator.validateRuleOptions (/.../node_modules/eslint/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2048:23)
    at /.../node_modules/eslint/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2103:18
    at Array.forEach (<anonymous>)
    at ConfigValidator.validateRules (/.../node_modules/eslint/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2100:34)
    at ConfigValidator.validateConfigArray (/.../node_modules/eslint/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2226:18)
    at CascadingConfigArrayFactory._finalizeConfigArray (/.../node_modules/eslint/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3985:23)
    at CascadingConfigArrayFactory.getConfigArrayForFile (/.../node_modules/eslint/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3791:21)
    at FileEnumerator._iterateFilesRecursive (/.../node_modules/eslint/lib/cli-engine/file-enumerator.js:486:49)
    at _iterateFilesRecursive.next (<anonymous>)
    at FileEnumerator.iterateFiles (/.../node_modules/eslint/lib/cli-engine/file-enumerator.js:299:49)

Пишут, что это правило deprecated, нужно использовать
@stylistic/ts/lines-between-class-members

Дальше пока не смотрел

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions