toonvanstrijp / nestjs-i18n

The i18n module for nestjs.
https://nestjs-i18n.com
Other
626 stars 101 forks source link

Format problem of Type files #529

Closed cnoder-wgh closed 11 months ago

cnoder-wgh commented 11 months ago

Describe the bug

typesOutputPath: path.join(
        __dirname,
        '../src/common/generated/i18n.generated.ts',
)

The generated files are shrinking to 4, how can I control the indentation, or meet the ESLINT standard

Reproduction

Format problem of Type files

System Info

npx envinfo --system --binaries --browsers

Used Package Manager

npm

Validations

vsamofal commented 11 months ago

just exclude the generated files from eslint

rubiin commented 11 months ago

Screenshot from 2023-08-17 14-27-29 Like @vsamofal said, you should not lint any generated files . Look at the screenshot below and modify it according to the directory or file name you used. For this edit the eslintrc file, add in src/common/generated under ignore patterns