Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript 5: errors #34

Open
kormanowsky opened this issue Feb 8, 2024 · 0 comments
Open

TypeScript 5: errors #34

kormanowsky opened this issue Feb 8, 2024 · 0 comments

Comments

@kormanowsky
Copy link

kormanowsky commented Feb 8, 2024

  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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant