Skip to content

Use @api3/eslint-plugin-commons for eslint #2013

Description

@dcroote

A number of new rules require parserServices to be generated which results in the error:

You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser

Currently it isn't specified:

airnode/.eslintrc.js

Lines 9 to 12 in c43d981

parserOptions: {
ecmaVersion: 11,
sourceType: 'module',
},

Specifying this, however, isn't as easy as other repos given this monorepo structure and, I believe, how the packages' tsconfig.json files use references, potentially confusing ESLint on how to find the files.

Disabling these few rules allows it to run, but with quite a number of errors:

✖ 2921 problems (2921 errors, 0 warnings)
399 errors and 0 warnings potentially fixable with the `--fix` option.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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