1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【備忘録】NestJSで発生するDelete `␍`eslint(prettier/prettier)を解決する

Posted at

はじめに

NestJSで発生するDelete eslint(prettier/prettier)を解決した備忘録です。
下記画像のようなエラーについての解決策です。

image.png

解決策

このエラーはESLintPrettierの競合によるものらしいので
ESLintのルールに下記のルールを足します。

.eslintrc.js
'prettier/prettier': ['error', { endOfLine: 'auto' }]

足した後のルールはこんな感じです。

.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' }],
}
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?