Skip to content

Linebreak error when using with nest new project #641

@Serpentarius13

Description

@Serpentarius13

What version of eslint are you using?

8.42.0

What version of prettier are you using?

3.0.0

What version of eslint-plugin-prettier are you using?

5.0.0

Please paste any applicable config files that you're using (e.g. .prettierrc or .eslintrc files)

module.exports = {
  parser: '@typescript-eslint/parser',
  parserOptions: {
    tsconfigRootDir: __dirname,
    sourceType: 'module',
  },
  plugins: ['@typescript-eslint/eslint-plugin'],
  extends: [
    'plugin:@typescript-eslint/recommended',
    'plugin:prettier/recommended',
  ],
  root: true,
  env: {
    node: true,
    jest: true,
  },
  ignorePatterns: ['.eslintrc.js'],
  rules: {
    '@typescript-eslint/interface-name-prefix': 'off',
    '@typescript-eslint/explicit-function-return-type': 'off',
    '@typescript-eslint/explicit-module-boundary-types': 'off',
    '@typescript-eslint/no-explicit-any': 'off',
    'prettier/prettier': ['error', { endOfLine: 'auto' }],
  },
};

{
  "singleQuote": true,
  "trailingComma": "all",
  "endOfLine": "auto"
}

What source code are you linting?

https://github.com/Serpentarius13/nest-eslint-error.

What did you expect to happen?

Linting for endOfLine choosing should turn itself off when providing such a setting. However (im using Webstorm) even after few reloads, cache clean, npm reinstall with node_modules removal, error still happens to me. Even with all possible fixes I've looked upon, its still happening:
image

What actually happened?

Linting for EOL is not turning off and there's red underscores everywhere until I actually lint.

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