darraghoriordan / eslint-plugin-nestjs-typed

Some eslint rules for working with NestJs projects
http://www.darraghoriordan.com
171 stars 34 forks source link

eslint error `No files matching the pattern "src/**/*.ts" were found.` when using microservices #37

Closed Mnigos closed 1 year ago

darraghoriordan commented 1 year ago

hey, you have to configure and tell the rule @darraghor/nestjs-typed/injectable-should-be-provided where to find the modules and services for your project. This will be unique for your project.

    "@darraghor/nestjs-typed/injectable-should-be-provided": [
            "error",
            {
                src: ["**/*.ts"], //                                <---- !!! Change this glob to the highest level where your code is !!!!
                filterFromPaths: ["node_modules", ".test.", ".spec."],
            },
        ],

or you can turn it off completely

    "@darraghor/nestjs-typed/injectable-should-be-provided":  "off"